State
This integration (state) listens to the state changes of an entity, and the new state is used as the action. Add the attribute parameter if you want to listen to the changes of an attribute instead. Read more about the options here.
Parameters
| Parameter | Description | Default |
|---|---|---|
name* |
Integration name. | state |
attribute |
The attribute to listen to for state changes. | - |
* Required fields
How to extract the controller attribute
To find the controller ID for State, go to Developer Tools > States and find the entity ID of the sensor you want to use.
Example
Listening for the attribute click from the sensor sensor.my_custom_button: