Add automation to shut down non-essential devices when Powerwall charge drops below 75%. Include kitchen and bathroom accent switches in existing automations.

This commit is contained in:
Carlo Costanzo
2025-11-21 17:11:17 -05:00
parent 30fb8a8415
commit 8bf8f51b0b

View File

@@ -45,6 +45,8 @@ automation:
entity_id: entity_id:
- group.interior_lights - group.interior_lights
- group.exterior_lights - group.exterior_lights
- switch.kitchen_accent_2
- switch.master_bathroom_accent_2
- service: script.notify_engine - service: script.notify_engine
data: data:
title: "Electrical Grid Status {{ (trigger.to_state.state)|replace('True', 'up')|replace('False', 'down') }}." title: "Electrical Grid Status {{ (trigger.to_state.state)|replace('True', 'up')|replace('False', 'down') }}."
@@ -58,6 +60,8 @@ automation:
entity_id: entity_id:
- group.interior_lights - group.interior_lights
- group.exterior_lights - group.exterior_lights
- switch.kitchen_accent_2
- switch.master_bathroom_accent_2
- service: script.speech_engine - service: script.speech_engine
data: data:
@@ -69,6 +73,8 @@ automation:
entity_id: entity_id:
- group.interior_lights - group.interior_lights
- group.exterior_lights - group.exterior_lights
- switch.kitchen_accent_2
- switch.master_bathroom_accent_2
- service: script.speech_engine - service: script.speech_engine
data: data:
@@ -95,6 +101,30 @@ automation:
who: 'parents' who: 'parents'
group: 'information' group: 'information'
- alias: "Shut down Docker hosts and camera PoE at 75% Powerwall"
id: 25b3d3d8-92fa-454a-9f1c-6d3fd0f3af58
description: "Protect battery by shutting down non-essentials when Powerwall drops below 75%"
mode: single
trigger:
- platform: numeric_state
entity_id: sensor.powerwall_charge
below: 75
for:
minutes: 3
action:
- service: button.press
target:
entity_id:
- button.qemu_docker2_101_shutdown
- button.qemu_docker69_169_shutdown
- service: switch.turn_off
target:
entity_id:
- switch.poe_garage_port_3_poe
- switch.poe_garage_port_4_poe
- switch.poe_garage_port_5_poe
- switch.poe_garage_port_6_poe
# https://github.com/CCOSTAN/Home-AssistantConfig/issues/547 # https://github.com/CCOSTAN/Home-AssistantConfig/issues/547
- alias: Turn off the Nest Thermostats during a Power Outage - alias: Turn off the Nest Thermostats during a Power Outage
id: 022bd9da-ab7c-4c1b-9e95-2ff4ffe5f9cc id: 022bd9da-ab7c-4c1b-9e95-2ff4ffe5f9cc