Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: Wärmepumpe Frequenzregelung sanft
- description: >-
- Zentrale Weiche: Steuert Aufheizen und Normalbetrieb mit dynamischer
- Ziel-Weiche
- triggers:
- - seconds: /30
- trigger: time_pattern
- - trigger: template
- value_template: |-
- {% if is_state('input_boolean.wp_pv_boost', 'on') %}
- {% set boost_temp = states('input_number.wp_pv_boost_temp') | float(45) %}
- {% set ist = states('sensor.vorlauf_stabil') | float(0) %}
- {{ (boost_temp - ist) | abs <= 0.5 }}
- {% else %}
- false
- {% endif %}
- for:
- seconds: 90
- id: boost_landung
- actions:
- - variables:
- soll_aktiv: |-
- {% if is_state('input_boolean.wp_pv_boost', 'on') %}
- {{ states('input_number.wp_pv_boost_temp') | float(45) }}
- {% else %}
- {{ states('number.heizkurve') | float(35) }}
- {% endif %}
- ist_raw: "{{ states('sensor.vorlauf_stabil') | float(0) }}"
- at: "{{ states('sensor.outdoor_meter_53_temperatur') | float(0) }}"
- f_vd: "{{ states('sensor.frequenz_vd') | int(0) }}"
- - choose:
- - conditions:
- - condition: or
- conditions:
- - condition: template
- value_template: >
- {{ at > 12.0 and ist_raw >= (soll_aktiv - 0.1) and f_vd <= 25
- }}
- - condition: template
- value_template: >
- {{ at <= 12.0 and ist_raw >= (soll_aktiv - 0.1) and f_vd <= 35
- }}
- - condition: template
- value_template: |
- {{ trigger.id == 'boost_landung' }}
- sequence:
- - action: input_boolean.turn_on
- target:
- entity_id: input_boolean.wp_modus_normalbetrieb
- - action: input_boolean.turn_off
- target:
- entity_id: input_boolean.wp_modus_aufheizen
- - conditions:
- - condition: template
- value_template: "{{ ist_raw < (soll_aktiv - 0.5) }}"
- sequence:
- - action: input_boolean.turn_on
- target:
- entity_id: input_boolean.wp_modus_aufheizen
- - action: input_boolean.turn_off
- target:
- entity_id: input_boolean.wp_modus_normalbetrieb
Advertisement
Add Comment
Please, Sign In to add comment