State
This integration (state
) listens for the state of a sensor and the action is fired with the changed event. You can add attribute
parameter if you want to listen to state change on the state attribute level. Read more about the options in 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 extract the controller ID for State, you can 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
: