mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-07-23 01:06:52 +00:00
Add button group support (#33681)
Co-authored-by: c0ffeeca7 <38767475+c0ffeeca7@users.noreply.github.com>
This commit is contained in:
parent
e5bcebc49c
commit
77410e8178
@ -3,6 +3,7 @@ title: Group
|
|||||||
description: Instructions on how to setup groups within Home Assistant.
|
description: Instructions on how to setup groups within Home Assistant.
|
||||||
ha_category:
|
ha_category:
|
||||||
- Binary sensor
|
- Binary sensor
|
||||||
|
- Button
|
||||||
- Cover
|
- Cover
|
||||||
- Event
|
- Event
|
||||||
- Fan
|
- Fan
|
||||||
@ -62,6 +63,13 @@ Binary sensor, light, and switch groups allow you set the "All entities" option.
|
|||||||
- Otherwise, the group state is `off` if at least one group member is `off`.
|
- Otherwise, the group state is `off` if at least one group member is `off`.
|
||||||
- Otherwise, the group state is `on`.
|
- Otherwise, the group state is `on`.
|
||||||
|
|
||||||
|
### Button groups
|
||||||
|
|
||||||
|
The group state is the last time the grouped button was pressed.
|
||||||
|
|
||||||
|
- The group state is `unavailable` if all group members are `unavailable`.
|
||||||
|
- Otherwise, the group state is the last time the grouped button was pressed.
|
||||||
|
|
||||||
### Cover groups
|
### Cover groups
|
||||||
In short, when any group member entity is `open`, the group will also be `open`. A complete overview of how cover groups behave:
|
In short, when any group member entity is `open`, the group will also be `open`. A complete overview of how cover groups behave:
|
||||||
|
|
||||||
@ -144,6 +152,19 @@ binary_sensor:
|
|||||||
- binary_sensor.door_right_contact
|
- binary_sensor.door_right_contact
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Example YAML configuration of a button group:
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
# Example configuration.yaml entry
|
||||||
|
button:
|
||||||
|
- platform: group
|
||||||
|
name: "Restart all ESPHome devices"
|
||||||
|
device_class: opening
|
||||||
|
entities:
|
||||||
|
- button.device_1_restart
|
||||||
|
- button.device_2_restart
|
||||||
|
```
|
||||||
|
|
||||||
Example YAML configuration of a cover group:
|
Example YAML configuration of a cover group:
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user