Archived
70 lines
2.3 KiB
YAML
70 lines
2.3 KiB
YAML
- 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" |