mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-18 14:56:53 +00:00
Button: add screenshot of state (#34807)
This commit is contained in:
parent
cea669d89c
commit
3de89cae97
@ -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:
|
||||
|
BIN
source/images/integrations/button/state_button.png
Normal file
BIN
source/images/integrations/button/state_button.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
Loading…
x
Reference in New Issue
Block a user