Break lights into rooms via Groups

This commit is contained in:
CCOSTAN
2016-10-11 22:15:08 +00:00
parent 763fb923e1
commit e4d8d7f4dc
2 changed files with 61 additions and 29 deletions

53
Todo.md
View File

@@ -1,35 +1,34 @@
#Todo List
# Break out configuration files. HASS user.
# AUTOMATE LAMP UPSTAIRS USING ifttt AND Nest thermostat.
# Put Dash Buttons out there.
# Put door sensor on garage door
* AUTOMATE LAMP UPSTAIRS USING ifttt AND Nest thermostat.
* Put Dash Buttons out there.
* Put door sensor on garage door
### Future Ideas
# - alias: 'Get Random Time'
# trigger:
# platform: time
# after: '21:00:00'
# action:
# - service: input_slider.select_value
# data_template:
# entity_id: input_slider.hour
# value: '{{ (range(22, 23) | random) }}'
# - service: input_slider.select_value
# data_template:
# entity_id: input_slider.random_minute
# value: '{{ (range(30, 45) | random) }}'
# Then simply use that in your light turn off automation:
- alias: 'Get Random Time'
trigger:
platform: time
after: '21:00:00'
action:
- service: input_slider.select_value
data_template:
entity_id: input_slider.hour
value: '{{ (range(22, 23) | random) }}'
- service: input_slider.select_value
data_template:
entity_id: input_slider.random_minute
value: '{{ (range(30, 45) | random) }}'
# - alias: 'Turn lights off'
# trigger:
# platform: template
# value_template: '{{ now.hour == (states.input_slider.random_hour.state | int) and now.minute == (states.input_slider.random_minute.state | int) }}'
# action:
# - service: light.turn_off
# data:
# entity_id: light.hue_color_lamp_1
Then simply use that in your light turn off automation:
- alias: 'Turn lights off'
trigger:
platform: template
value_template: '{{ now.hour == (states.input_slider.random_hour.state | int) and now.minute == (states.input_slider.random_minute.state | int) }}'
action:
- service: light.turn_off
data:
entity_id: light.hue_color_lamp_1

33
group/lights.yaml Executable file
View File

@@ -0,0 +1,33 @@
Bedroom:
entities:
- light.bedroom_stacey_light
Living Room:
entities:
- light.living_room_back_left
- light.living_room_back_right
- light.living_room_front_left
- light.living_room_front_right
- light.living_room_slider
Living Room Accents:
entities:
- light.living_room_couch_1
- light.living_room_couch_2
- light.couch_tv_light
Dinette:
entities:
- light.dinette_light_1
- light.dinette_light_2
Study:
entities:
- light.front_office_lamp
Office:
entities:
- light.office_lamp
Upstairs:
- light.upstairs_lamp