mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-17 14:26:51 +00:00
Add button device classes (#20519)
This commit is contained in:
parent
35ab5280e1
commit
75e17c0941
@ -52,3 +52,12 @@ This service can be called to trigger a button press for that entity.
|
|||||||
target:
|
target:
|
||||||
entity_id: button.my_button
|
entity_id: button.my_button
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Device Class
|
||||||
|
|
||||||
|
The way these buttons are displayed in the frontend can be modified in the [customize section](/docs/configuration/customizing-devices/).
|
||||||
|
The following device classes are supported for buttons:
|
||||||
|
|
||||||
|
- **None**: Generic button. This is the default and doesn't need to be set.
|
||||||
|
- **restart**: The button restarts the device.
|
||||||
|
- **update**: The button updates the software of the device.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user