Button: add screenshot of state (#34807)

This commit is contained in:
c0ffeeca7 2024-09-18 10:55:51 +02:00 committed by GitHub
parent cea669d89c
commit 3de89cae97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 6 additions and 3 deletions

View File

@ -29,9 +29,12 @@ form of a stateless switch.
The button {% term entity %} is stateless, as in, it cannot have a state like the `on` or
`off` state that, for example, a normal switch entity has.
Every button entity does keep track of the timestamp of when the last time
the button entity has been pressed in the Home Assistant UI or pressed via
an action.
The state of a button is a timestamp showing the date and time of the last time the button had been pressed in the Home Assistant UI or via an action.
<p class='img'>
<img src='/images/integrations/button/state_button.png' alt='Screenshot showing the state of a button entity in the developer tools' />
Screenshot showing the state of a button entity in the developer tools.
</p>
Because the {% term state %} of a button entity in Home Assistant is a timestamp, it
means we can use it in our automations. For example:

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB