Skip to content

Commit 9ed887e

Browse files
teodocLandrash
authored andcommitted
Add option to hide the group card switch (home-assistant#1516)
* Add option to hide the group card switch * Changed hide_switch to control
1 parent fe91174 commit 9ed887e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

source/_components/group.markdown

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,15 @@ Configuration variables:
4545
- **view** (*Optional*): If yes then the entry will be shown as a view (tab).
4646
- **name** (*Optional*): Name of the group.
4747
- **icon** (*Optional*): If the group is a view, this icon will show at the top in the frontend instead of the name. If it's not a view, then the icon shows when this group is used in another group.
48+
- **control** (*Optional*): If hidden then the group switch will be hidden.
4849
- **entities** (*Required*): array or comma delimited string, list of entities to group.
4950
5051
<p class='img'>
5152
<img src='/images/blog/2016-01-release-12/views.png'>
5253
Example of groups shown as views in the frontend.
5354
</p>
5455
55-
If all entities in a group are switches or lights then Home Assistant adds a switch at the top of the card that turns them all on/off at once.
56+
If all entities in a group are switches or lights then Home Assistant adds a switch at the top of the card that turns them all on/off at once. If you want to hide this switch, set `control` to `hidden`.
5657

5758
You can create views (tabs) that contain other groups.
5859
Notice in the example below that in order to refer to the group "Living Room", you use `group.living_room` (lowercase and spaces replaced with underscores).

0 commit comments

Comments
 (0)