excess pv boiler stuff

This commit is contained in:
Constantin Pascal
2026-02-07 14:15:20 +02:00
commit 6f69cc1421
5 changed files with 178 additions and 0 deletions
+70
View File
@@ -0,0 +1,70 @@
- alias: DHW Boiler Heater Relay Automation
description: >-
This automation makes sure the boiler auxiliary heater only works when the
boost is required and the heatpump aux heater is not on
triggers:
- trigger: state
entity_id:
- binary_sensor.dhw_use_boiler_aux_heater
conditions: []
actions:
- if:
- condition: state
entity_id: binary_sensor.dhw_use_boiler_aux_heater
state: "on"
then:
- type: turn_on
device_id: b6129664e9bea24cdab57a9c743b885d
entity_id: 1b7e7c5bd07a3823f8df13b623f95e0a
domain: switch
else:
- type: turn_off
device_id: b6129664e9bea24cdab57a9c743b885d
entity_id: 1b7e7c5bd07a3823f8df13b623f95e0a
domain: switch
mode: single
- alias: DHW Manage PV Thermostat
description: Controls shadow thermostat based on PV excess availability
mode: restart
trigger:
# Trigger when PV power becomes sufficient (with delay)
- platform: state
entity_id: binary_sensor.dhw_pv_power_enough_for_aux_heater
to: "on"
for:
minutes: "{{ states('input_number.dhw_pv_excess_usage_start_delay')|int }}"
id: "turn_on"
# Trigger when PV power becomes insufficient (with delay)
- platform: state
entity_id: binary_sensor.dhw_pv_power_enough_for_aux_heater
to: "off"
for:
minutes: "{{ states('input_number.dhw_pv_excess_usage_stop_delay')|int }}"
id: "turn_off"
action:
- choose:
- conditions:
- condition: state
entity_id: input_boolean.dhw_use_excess_pv_for_aux_heater
state: "on"
- condition: trigger
id: "turn_on"
sequence:
- service: climate.set_temperature
target:
entity_id: climate.dhw_pv_excess_heating
data:
temperature: "{{ states('input_number.dhw_pv_target_temperature') | float }}"
hvac_mode: "heat"
- conditions:
- condition: trigger
id: "turn_off"
sequence:
- service: climate.set_hvac_mode
target:
entity_id: climate.dhw_pv_excess_heating
data:
hvac_mode: "off"