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

55
Todo.md
View File

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