Set an entity state
ha_set_stateOverwrite a Home Assistant entity's state and attributes to update its internal representation, creating the entity if needed; does not control the physical device.
Instructions
Overwrite an entity's state and attributes. This only changes the representation inside Home Assistant — it does NOT talk to the physical device. To control a device, use ha_call_service instead. Args: entityId (required), state (required), attributes (optional). Creates the entity when it does not exist yet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| state | Yes | New state value | |
| entityId | Yes | Entity id to set | |
| attributes | No | Attributes to store with the state |