Skip to content

Commit 6615179

Browse files
committed
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.
1 parent bf972d7 commit 6615179

File tree

2 files changed

+42
-14
lines changed

2 files changed

+42
-14
lines changed

config/packages/climate.yaml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,8 @@ automation:
231231
below: 76
232232
condition:
233233
- condition: state
234-
entity_id: binary_sensor.grid_status
235-
state: 'normal'
234+
entity_id: binary_sensor.powerwall_grid_status
235+
state: 'on'
236236
action:
237237
- delay: "00:03:00"
238238
- service: climate.set_temperature
@@ -256,8 +256,8 @@ automation:
256256
entity_id: binary_sensor.sleepnumber_carlo_stacey_is_in_bed
257257
state: 'on'
258258
- condition: state
259-
entity_id: binary_sensor.grid_status
260-
state: 'normal'
259+
entity_id: binary_sensor.powerwall_grid_status
260+
state: 'on'
261261
- condition: state
262262
entity_id: sun.sun
263263
state: 'below_horizon'
@@ -292,8 +292,8 @@ automation:
292292
entity_id: input_boolean.guest_mode
293293
state: 'off'
294294
- condition: state
295-
entity_id: binary_sensor.grid_status
296-
state: 'normal'
295+
entity_id: binary_sensor.powerwall_grid_status
296+
state: 'on'
297297
action:
298298
- service: climate.set_hvac_mode
299299
data:
@@ -348,8 +348,8 @@ automation:
348348
entity_id: input_boolean.guest_mode
349349
state: 'off'
350350
- condition: state
351-
entity_id: binary_sensor.grid_status
352-
state: 'normal'
351+
entity_id: binary_sensor.powerwall_grid_status
352+
state: 'on'
353353
action:
354354
- service: climate.set_preset_mode
355355
data:
@@ -375,8 +375,8 @@ automation:
375375
at: "03:00:00"
376376
condition:
377377
- condition: state
378-
entity_id: binary_sensor.grid_status
379-
state: 'normal'
378+
entity_id: binary_sensor.powerwall_grid_status
379+
state: 'on'
380380
action:
381381
- service: climate.set_hvac_mode
382382
data:
@@ -408,8 +408,8 @@ automation:
408408
- condition: template # Only run if AC is idle (prevents fighting other automations)
409409
value_template: "{{ state_attr('climate.downstairs', 'hvac_action') == 'idle' }}"
410410
- condition: state # Never run if the grid is down and running on powerwall.
411-
entity_id: binary_sensor.grid_status
412-
state: 'normal'
411+
entity_id: binary_sensor.powerwall_grid_status
412+
state: 'on'
413413
action:
414414
- service: climate.set_preset_mode
415415
data:

config/packages/powerwall.yaml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,36 @@
55
# Read more about this on https://www.vcloudinfo.com
66
# Tesla Powerwall added via UI Integration
77
# Tesla Powerwall Monitoring #272
8-
######################################################################################################
9-
8+
######################################################################
9+
# --------------------------------------------------------------
10+
# Binary Sensors:
11+
# - binary_sensor.powerwall_charging ............. battery_charging (on=charging)
12+
# - binary_sensor.powerwall_connected_to_tesla ... connectivity (on=connected)
13+
# - binary_sensor.powerwall_grid_services_active .. power (on=active)
14+
# - binary_sensor.powerwall_grid_status .......... power (on=grid up)
15+
# - binary_sensor.powerwall_status ............... power (on=system ok)
16+
#
17+
# Power & Energy Sensors:
18+
# - sensor.powerwall_charge ...................... battery %, 0–100
19+
# - sensor.powerwall_backup_reserve .............. reserve %, 0–100
20+
# - sensor.powerwall_battery_power ............... kW (+discharge / -charge)
21+
# - sensor.powerwall_load_power .................. kW house load
22+
# - sensor.powerwall_site_power .................. kW (+export / -import)
23+
# - sensor.powerwall_solar_power ................. kW solar production
24+
#
25+
# Lifetime kWh Meters:
26+
# - sensor.powerwall_battery_export .............. kWh → grid/load
27+
# - sensor.powerwall_battery_import .............. kWh ← battery charged
28+
# - sensor.powerwall_load_export ................. kWh exported from loads
29+
# - sensor.powerwall_load_import ................. kWh imported to loads
30+
# - sensor.powerwall_site_export ................. kWh site → grid
31+
# - sensor.powerwall_site_import ................. kWh site ← grid
32+
# - sensor.powerwall_solar_export ................ kWh solar → site/battery/grid
33+
# - sensor.powerwall_solar_import ................ kWh solar ← grid (rare)
34+
#
35+
# Switches:
36+
# - switch.powerwall_off_grid_operation .......... island mode toggle
37+
######################################################################
1038

1139
#-------------------------------------------
1240
automation:

0 commit comments

Comments
 (0)