Update Nest automations to go local.

This commit is contained in:
CCOSTAN
2016-10-13 16:07:27 +00:00
parent 57ad45d197
commit 47f4801fca
3 changed files with 42 additions and 4 deletions

View File

@@ -1,15 +1,20 @@
# Uses the Nest thermostat to turn on lights and turn them off.
# Uses the Nest thermostat to turn on lights and turn them off upstairs.
- alias: 'Upstairs Light Turn on'
trigger:
- platform: event
event_type: upstairs_light_on
- platform: state
entity_id: binary_sensor.upstairs_away_mode
to: 'off'
condition:
condition: state
- condition: state
entity_id: sun.sun
state: 'below_horizon'
- condition: time
before: '23:45'
action:
service: light.turn_on
entity_id: group.upstairs
@@ -18,7 +23,10 @@
trigger:
- platform: event
event_type: upstairs_light_off
- platform: state
entity_id: binary_sensor.upstairs_away_mode
to: 'on'
action:
service: light.turn_off
entity_id: group.upstairs