mirror of
https://github.com/esphome/esphome-docs.git
synced 2024-12-26 17:27:47 +01:00
on_state gets only called on state change (#1961)
This commit is contained in:
parent
86e197e831
commit
09f26185c6
@ -41,7 +41,7 @@ Automations:
|
||||
- **on_release** (*Optional*, :ref:`Automation <automation>`): An automation to perform
|
||||
when the button is released. See :ref:`binary_sensor-on_release`.
|
||||
- **on_state** (*Optional*, :ref:`Automation <automation>`): An automation to perform
|
||||
when a state is published. See :ref:`binary_sensor-on_state`.
|
||||
when a state change is published. See :ref:`binary_sensor-on_state`.
|
||||
- **on_click** (*Optional*, :ref:`Automation <automation>`): An automation to perform
|
||||
when the button is held down for a specified period of time.
|
||||
See :ref:`binary_sensor-on_click`.
|
||||
|
Loading…
Reference in New Issue
Block a user