Change Thing State
change_thing_stateUpdate a thing's state in Donetick by setting a new value or incrementing/decrementing the current numeric state.
Instructions
Change a thing's state.
Provide set_value to set it directly, or op as a signed integer to add to a numeric state.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | No | Signed integer to add to the current numeric state (e.g. '-1') | |
| thing_id | Yes | The ID of the thing | |
| set_value | No | New state value to set |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |