Skip to content

Commit f090a46

Browse files
isabellaalstromfabaff
authored andcommitted
Update group.markdown to show that you can customize order of groups. (home-assistant#4037)
* Update group.markdown * Remove blank lines
1 parent daf517b commit f090a46

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

source/_components/group.markdown

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ Notice in the example below that in order to refer to the group "Living Room", y
7979
entities:
8080
- light.light_family_1
8181
- binary_sensor.motion_living
82-
8382
Bedroom: light.light_bedroom, switch.sleeping
84-
8583
Rooms:
8684
view: yes
8785
name: Rooms
@@ -93,6 +91,7 @@ Notice in the example below that in order to refer to the group "Living Room", y
9391
## {% linkable_title Default groups %}
9492

9593
Some components automatically create special groups containing component entities. These groups are named like `group.all_...`, for example:
94+
9695
- `group.all_switches`
9796
- `group.all_lights`
9897
- `group.all_devices`
@@ -105,13 +104,11 @@ Default groups appear in the HOME tab, if not overridden by user views and group
105104

106105
```yaml
107106
# Example configuration.yaml to include default groups in custom view
108-
109107
customize:
110108
group.all_automations:
111109
hidden: false
112110
group.all_scripts:
113111
hidden: false
114-
115112
group:
116113
automation_view:
117114
name: Automation
@@ -124,3 +121,22 @@ group:
124121
## {% linkable_title Group behaviour %}
125122

126123
When any member of a group is `on` then the group will also be `on`. Similarly with a device tracker, when any member of the group is `home` then the group is `home`.
124+
125+
## {% linkable_title Customize group order %}
126+
You can also order your groups using [customize](/docs/configuration/customizing-devices/) with `order: ` if they don't show up in the order you want them in.
127+
128+
```yaml
129+
# Example configuration.yaml to order groups with order:
130+
customize:
131+
group.all_automations:
132+
order: 1
133+
group.all_scripts:
134+
order: 2
135+
group:
136+
automation_view:
137+
name: Automation
138+
view: yes
139+
entities:
140+
- group.all_automations
141+
- group.all_scripts
142+
```

0 commit comments

Comments
 (0)