Needed some sunlight conditions for the good night routine.

This commit is contained in:
CCOSTAN
2017-02-19 21:04:05 +00:00
parent 676c554698
commit cd71193b87
2 changed files with 6 additions and 22 deletions

View File

@@ -8,23 +8,7 @@
event_type: brooklyn_dash
- platform: event
event_type: simplehuman_dash
action:
- service: light.toggle
entity_id: light.office_lamp
# - alias: 'Toggle Office Light off if on'
# trigger:
# - platform: event
# event_type: brooklyn_dash
# condition:
# - condition: state
# entity_id: light.office_lamp
# state: 'on'
# action:
# - service: light.turn_off
# entity_id: light.office_lamp

View File

@@ -7,12 +7,15 @@
- platform: event
event_type: good_night
- platform: state
entity_id:
entity_id:
- binary_sensor.sleepnumber_carlo_carlo_is_in_bed
- binary_sensor.sleepnumber_carlo_stacey_is_in_bed
state: 'on'
condition:
- condition: state
entity_id: sun.sun
state: 'below_horizon'
- condition: state
entity_id: input_boolean.guest_mode
state: 'off'
@@ -22,7 +25,7 @@
- condition: state
entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed
state: 'on'
action:
- service: script.Voice_notify
data_template:
@@ -38,6 +41,3 @@
"Stuff your worries in your pillow, wrap your troubles in your blanket and spread your anxieties on your sheets. When you wake up tomorrow, you may have dirty linen, but more importantly, youll have a fresh mind and a happy heart. Good night."
] | random }}
- service: script.interior_off