mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 14:17:45 +00:00
Add views to demo
This commit is contained in:
parent
5c3ad5d4c0
commit
125ad8630d
@ -62,10 +62,17 @@ def setup(hass, config):
|
|||||||
lights = sorted(hass.states.entity_ids('light'))
|
lights = sorted(hass.states.entity_ids('light'))
|
||||||
switches = sorted(hass.states.entity_ids('switch'))
|
switches = sorted(hass.states.entity_ids('switch'))
|
||||||
media_players = sorted(hass.states.entity_ids('media_player'))
|
media_players = sorted(hass.states.entity_ids('media_player'))
|
||||||
group.Group(hass, 'living room', [lights[2], lights[1], switches[0],
|
group.Group(hass, 'living room', [
|
||||||
media_players[1]])
|
lights[2], lights[1], switches[0], media_players[1],
|
||||||
|
'scene.romantic_lights'])
|
||||||
group.Group(hass, 'bedroom', [lights[0], switches[1],
|
group.Group(hass, 'bedroom', [lights[0], switches[1],
|
||||||
media_players[0]])
|
media_players[0]])
|
||||||
|
group.Group(hass, 'Rooms', [
|
||||||
|
'group.living_room', 'group.bedroom',
|
||||||
|
'scene.romantic_lights', 'rollershutter.kitchen_window',
|
||||||
|
'rollershutter.living_room_window',
|
||||||
|
], view=True)
|
||||||
|
|
||||||
|
|
||||||
# Setup scripts
|
# Setup scripts
|
||||||
bootstrap.setup_component(
|
bootstrap.setup_component(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user