mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-18 03:15:45 +00:00
Update Nest automations to go local.
This commit is contained in:
@@ -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
|
Reference in New Issue
Block a user