Update Good Morning and Good Night routines to add in Kid's Hue Gos

This commit is contained in:
CCOSTAN
2016-12-27 18:08:51 +00:00
parent 502e67c286
commit 651ef5137f
2 changed files with 41 additions and 19 deletions

View File

@@ -15,7 +15,7 @@
state: home
- condition: state
entity_id: input_boolean.school_mode
state: 'off'
state: 'on'
- condition: time
weekday:
- mon
@@ -37,6 +37,12 @@
- service: switch.turn_on
entity_id: switch.kitchen_accents
- delay: 00:50:00
- service: light.turn_on
entity_id:
- light.justin_go
data:
transition: 3000
color_name: 'Yellow'
# 6:50am now.
- service: light.turn_on
entity_id:
@@ -48,16 +54,24 @@
- service: light.turn_off
entity_id:
- group.dining_room_lights
- light.justin_go
data:
transition: 600
- service: switch.turn_off
entity_id: switch.kitchen_accents
- delay: 01:00:00
- service: light.turn_on
entity_id:
- light.Paige_go
data:
transition: 3000
color_name: 'Yellow'
# 7:50am now.
- service: light.turn_on
entity_id:
- group.kitchen_lights
data:
brightness: 200
- delay: 00:40:00
# 8:30am now.
- service: light.turn_off

View File

@@ -1,18 +1,26 @@
######################################################################
## Good night Routine
######################################################################
- alias: 'Good Night Routine'
trigger:
- platform: event
event_type: good_night
# condition:
# - condition: state
# entity_id: group.family
# state: home
action:
- service: script.interior_off
######################################################################
## Good night Routine
######################################################################
- alias: 'Good Night Routine'
trigger:
- platform: event
event_type: good_night
- platform: state
entity_id: sensor.samsungtv
state: 'Offline'
condition:
- condition: state
entity_id: group.family
state: home
- condition: time
after: '20:00:00'
- condition: state
entity_id: input_boolean.guest_mode
state: 'off'
action:
- service: script.interior_off