Update climate.yaml to replace grid status conditions with powerwall grid status checks, ensuring HVAC operations are only triggered when the powerwall is active. Enhance powerwall.yaml with detailed comments on binary sensors, power and energy sensors, and switches for better clarity and documentation.

This commit is contained in:
Carlo Costanzo
2025-11-26 15:16:21 -05:00
parent 64d9e6c6ac
commit cd4b8ab19f
2 changed files with 42 additions and 14 deletions

View File

@@ -231,8 +231,8 @@ automation:
below: 76
condition:
- condition: state
entity_id: binary_sensor.grid_status
state: 'normal'
entity_id: binary_sensor.powerwall_grid_status
state: 'on'
action:
- delay: "00:03:00"
- service: climate.set_temperature
@@ -256,8 +256,8 @@ automation:
entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed
state: 'on'
- condition: state
entity_id: binary_sensor.grid_status
state: 'normal'
entity_id: binary_sensor.powerwall_grid_status
state: 'on'
- condition: state
entity_id: sun.sun
state: 'below_horizon'
@@ -292,8 +292,8 @@ automation:
entity_id: input_boolean.guest_mode
state: 'off'
- condition: state
entity_id: binary_sensor.grid_status
state: 'normal'
entity_id: binary_sensor.powerwall_grid_status
state: 'on'
action:
- service: climate.set_hvac_mode
data:
@@ -348,8 +348,8 @@ automation:
entity_id: input_boolean.guest_mode
state: 'off'
- condition: state
entity_id: binary_sensor.grid_status
state: 'normal'
entity_id: binary_sensor.powerwall_grid_status
state: 'on'
action:
- service: climate.set_preset_mode
data:
@@ -375,8 +375,8 @@ automation:
at: "03:00:00"
condition:
- condition: state
entity_id: binary_sensor.grid_status
state: 'normal'
entity_id: binary_sensor.powerwall_grid_status
state: 'on'
action:
- service: climate.set_hvac_mode
data:
@@ -408,8 +408,8 @@ automation:
- condition: template # Only run if AC is idle (prevents fighting other automations)
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'
entity_id: binary_sensor.powerwall_grid_status
state: 'on'
action:
- service: climate.set_preset_mode
data: