Skip to content

Commit 8bf8f51

Browse files
committed
Add automation to shut down non-essential devices when Powerwall charge drops below 75%. Include kitchen and bathroom accent switches in existing automations.
1 parent 30fb8a8 commit 8bf8f51

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

config/packages/powerwall.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ automation:
4545
entity_id:
4646
- group.interior_lights
4747
- group.exterior_lights
48+
- switch.kitchen_accent_2
49+
- switch.master_bathroom_accent_2
4850
- service: script.notify_engine
4951
data:
5052
title: "Electrical Grid Status {{ (trigger.to_state.state)|replace('True', 'up')|replace('False', 'down') }}."
@@ -58,6 +60,8 @@ automation:
5860
entity_id:
5961
- group.interior_lights
6062
- group.exterior_lights
63+
- switch.kitchen_accent_2
64+
- switch.master_bathroom_accent_2
6165

6266
- service: script.speech_engine
6367
data:
@@ -69,6 +73,8 @@ automation:
6973
entity_id:
7074
- group.interior_lights
7175
- group.exterior_lights
76+
- switch.kitchen_accent_2
77+
- switch.master_bathroom_accent_2
7278

7379
- service: script.speech_engine
7480
data:
@@ -95,6 +101,30 @@ automation:
95101
who: 'parents'
96102
group: 'information'
97103

104+
- alias: "Shut down Docker hosts and camera PoE at 75% Powerwall"
105+
id: 25b3d3d8-92fa-454a-9f1c-6d3fd0f3af58
106+
description: "Protect battery by shutting down non-essentials when Powerwall drops below 75%"
107+
mode: single
108+
trigger:
109+
- platform: numeric_state
110+
entity_id: sensor.powerwall_charge
111+
below: 75
112+
for:
113+
minutes: 3
114+
action:
115+
- service: button.press
116+
target:
117+
entity_id:
118+
- button.qemu_docker2_101_shutdown
119+
- button.qemu_docker69_169_shutdown
120+
- service: switch.turn_off
121+
target:
122+
entity_id:
123+
- switch.poe_garage_port_3_poe
124+
- switch.poe_garage_port_4_poe
125+
- switch.poe_garage_port_5_poe
126+
- switch.poe_garage_port_6_poe
127+
98128
# https://github.com/CCOSTAN/Home-AssistantConfig/issues/547
99129
- alias: Turn off the Nest Thermostats during a Power Outage
100130
id: 022bd9da-ab7c-4c1b-9e95-2ff4ffe5f9cc

0 commit comments

Comments
 (0)