mirror of
https://github.com/CCOSTAN/Home-AssistantConfig.git
synced 2025-12-03 11:31:42 +00:00
Add grid status condition checks to climate automation in climate.yaml, ensuring HVAC operations only occur when the grid is normal. This prevents conflicts during power outages. Move the entire Nest schedule to Home Assistant.
Fixes #1509
This commit is contained in:
@@ -183,6 +183,10 @@ automation:
|
|||||||
entity_id: climate.upstairs
|
entity_id: climate.upstairs
|
||||||
attribute: temperature
|
attribute: temperature
|
||||||
below: 76
|
below: 76
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.grid_status
|
||||||
|
state: 'normal'
|
||||||
action:
|
action:
|
||||||
- delay: "00:03:00"
|
- delay: "00:03:00"
|
||||||
- service: climate.set_temperature
|
- service: climate.set_temperature
|
||||||
@@ -205,6 +209,9 @@ automation:
|
|||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed
|
entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed
|
||||||
state: 'on'
|
state: 'on'
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.grid_status
|
||||||
|
state: 'normal'
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: sun.sun
|
entity_id: sun.sun
|
||||||
state: 'below_horizon'
|
state: 'below_horizon'
|
||||||
@@ -238,6 +245,9 @@ automation:
|
|||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.guest_mode
|
entity_id: input_boolean.guest_mode
|
||||||
state: 'off'
|
state: 'off'
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.grid_status
|
||||||
|
state: 'normal'
|
||||||
action:
|
action:
|
||||||
- service: climate.set_hvac_mode
|
- service: climate.set_hvac_mode
|
||||||
data:
|
data:
|
||||||
@@ -323,6 +333,9 @@ automation:
|
|||||||
- condition: state
|
- condition: state
|
||||||
entity_id: input_boolean.guest_mode
|
entity_id: input_boolean.guest_mode
|
||||||
state: 'off'
|
state: 'off'
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.grid_status
|
||||||
|
state: 'normal'
|
||||||
action:
|
action:
|
||||||
- service: climate.set_preset_mode
|
- service: climate.set_preset_mode
|
||||||
data:
|
data:
|
||||||
@@ -367,6 +380,10 @@ automation:
|
|||||||
trigger:
|
trigger:
|
||||||
- platform: time
|
- platform: time
|
||||||
at: "03:00:00"
|
at: "03:00:00"
|
||||||
|
condition:
|
||||||
|
- condition: state
|
||||||
|
entity_id: binary_sensor.grid_status
|
||||||
|
state: 'normal'
|
||||||
action:
|
action:
|
||||||
- service: climate.set_hvac_mode
|
- service: climate.set_hvac_mode
|
||||||
data:
|
data:
|
||||||
@@ -397,6 +414,9 @@ automation:
|
|||||||
value_template: "{{ now().month in [10, 11, 12, 1, 2, 3] }}"
|
value_template: "{{ now().month in [10, 11, 12, 1, 2, 3] }}"
|
||||||
- condition: template # Only run if AC is idle (prevents fighting other automations)
|
- condition: template # Only run if AC is idle (prevents fighting other automations)
|
||||||
value_template: "{{ state_attr('climate.downstairs', 'hvac_action') == 'idle' }}"
|
value_template: "{{ state_attr('climate.downstairs', 'hvac_action') == 'idle' }}"
|
||||||
|
- condition: state # Never run if the grid is down and running on powerwall.
|
||||||
|
entity_id: binary_sensor.grid_status
|
||||||
|
state: 'normal'
|
||||||
action:
|
action:
|
||||||
- service: climate.set_preset_mode
|
- service: climate.set_preset_mode
|
||||||
data:
|
data:
|
||||||
|
|||||||
Reference in New Issue
Block a user