ha_set_state
Set or create the state of a Home Assistant entity to override its current state or create a virtual sensor.
Instructions
Set or create the state of an entity. Useful for creating virtual sensors or overriding states.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity_id | Yes | Entity ID to set (e.g. 'sensor.my_custom_sensor') | |
| state | Yes | The state value to set | |
| attributes | No | Optional attributes to set on the entity |