Add a generic sample and some more details

This commit is contained in:
Fabian Affolter 2015-12-12 10:00:40 +01:00
parent d71a30d7b3
commit 145f1f046a

View File

@ -10,18 +10,35 @@ footer: true
ha_category: Organization ha_category: Organization
--- ---
Groups allow the user to combine multiple entities into one. If all entities are switches or lights they can be controlled as one with a switch at the top of the card. Groups allow the user to combine multiple entities into one.
Check the **Set State** page from the **Developer Tools** and browse the **Current entities:** listing for all available entities.
```yaml
# Example configuration.yaml entry
group:
information:
- sensor.time
living_room:
- binary_sensor.tv
- sensor.living_room_temperature
kitchen:
- switch.kitchen_pin_3
- sensor.oven_temperature
```
If all entities are switches or lights they can be controlled as one with a switch at the top of the card. Grouped states should share the same type of states (ON/OFF or HOME/NOT_HOME).
```yaml ```yaml
# Example configuration.yaml entry # Example configuration.yaml entry
# A comma seperated list of states that have to be tracked as a single group
# Grouped states should share the same type of states (ON/OFF or HOME/NOT_HOME)
group: group:
living_room: living_room:
- light.Bowl - light.bowl
- light.Ceiling - light.ceiling
- light.TV_back_light - light.tv_back_light
children: children:
- device_tracker.child_1 - device_tracker.child_1
- device_tracker.child_2 - device_tracker.child_2
``` ```