mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-08-17 19:06:53 +00:00
Update Nest automations to go local.
This commit is contained in:
19
Todo.md
19
Todo.md
@@ -5,6 +5,25 @@
|
||||
* Put Dash Buttons out there.
|
||||
* Put door sensor on garage door
|
||||
|
||||
binary_sensor:
|
||||
- platform: template
|
||||
sensors:
|
||||
upstairs_away_mode:
|
||||
entity_id: climate.upstairs
|
||||
value_template: "{{ is_state_attr('climate.upstairs', 'away_mode', 'on') }}"
|
||||
|
||||
automation:
|
||||
- alias: Trigger When Away
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.upstairs_away_mode
|
||||
to: 'on'
|
||||
condition:
|
||||
...
|
||||
action:
|
||||
...
|
||||
|
||||
|
||||
|
||||
### Future Ideas
|
||||
|
||||
|
@@ -1,14 +1,19 @@
|
||||
# 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
|
||||
@@ -18,6 +23,9 @@
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: upstairs_light_off
|
||||
- platform: state
|
||||
entity_id: binary_sensor.upstairs_away_mode
|
||||
to: 'on'
|
||||
|
||||
action:
|
||||
service: light.turn_off
|
||||
|
11
sensor/nest.yaml
Executable file
11
sensor/nest.yaml
Executable file
@@ -0,0 +1,11 @@
|
||||
- platform: template
|
||||
sensors:
|
||||
upstairs_away_mode:
|
||||
entity_id: climate.upstairs
|
||||
value_template: "{{ is_state_attr('climate.upstairs', 'away_mode', 'on') }}"
|
||||
|
||||
- platform: template
|
||||
sensors:
|
||||
upstairs_away_mode:
|
||||
entity_id: climate.downstairs
|
||||
value_template: "{{ is_state_attr('climate.downstairs', 'away_mode', 'on') }}"
|
Reference in New Issue
Block a user