on_state gets only called on state change (#1961)

This commit is contained in:
spacemanspiff2007 2022-04-22 04:16:46 +02:00 committed by GitHub
parent 86e197e831
commit 09f26185c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`.