Set device state
set_device_stateChange a smart-home device's state, such as locking a door or adjusting a thermostat, by specifying the device and the fields to modify.
Instructions
Changes a device's state, such as locking a door or setting a thermostat. Needs the device and the fields to change.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | Fields to change, merged into the current state: lock {locked}, thermostat {mode, target_c}, light {on, brightness}, plug {on}. | |
| device | Yes | The device's name or id. | |
| member | No | Who is asking, if known: a member id or name. Used for per-member policies and the audit trail. | |
| dry_run | No | When true, return the preview only. Nothing is written and nothing is queued. | |
| idempotency_key | No | Optional client-chosen key. Repeating a call with the same key returns the original outcome instead of acting twice. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||