Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- alias: "WP: Sub-Logik Normalbetrieb (Finale Version mit Auto-Off)"
- description: >-
- Regelt im Normalbetrieb die Frequenz. Erkennt dynamisch den PV-Boost und
- erweitert das Limit auf 60Hz.
- triggers:
- - entity_id: sensor.vorlauf_stabil
- trigger: state
- - minutes: /10
- trigger: time_pattern
- - entity_id: sensor.oelrueckfuehrung
- from: "1"
- to: "0"
- trigger: state
- conditions:
- - condition: state
- entity_id: input_boolean.wp_modus_normalbetrieb
- state: "on"
- actions:
- - if:
- - condition: template
- value_template: "{{ is_state('automation.warmepumpe_frequenzregelung_sanft', 'off') }}"
- then:
- - action: input_boolean.turn_off
- target:
- entity_id: input_boolean.wp_modus_normalbetrieb
- - stop: Haupt-Automation ist aus. Normalbetrieb-Schalter wurde deaktiviert.
- - if:
- - condition: or
- conditions:
- - condition: state
- entity_id: sensor.oelrueckfuehrung
- state: "1"
- - condition: state
- entity_id: sensor.oelrueckfuehrung
- state: "1"
- for:
- seconds: 30
- then:
- - stop: Ölrückführung aktiv oder Pufferzeit läuft.
- - variables:
- is_boost: "{{ is_state('input_boolean.wp_pv_boost', 'on') }}"
- current_f: "{{ states('sensor.frequenz_vd') | int(20) }}"
- soll_f: "{{ states('input_number.sollfrequenz') | int(20) }}"
- soll_vl: |-
- {% 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_vl: "{{ states('sensor.vorlauf_stabil') | float(0) }}"
- d: "{{ soll_vl - ist_vl }}"
- - variables:
- new_f: >
- {% set val = soll_f %} {% if d > 0.2 %}
- {% set val = soll_f + 1 %}
- {% elif d < -0.2 %}
- {% set val = soll_f - 1 %}
- {% endif %}
- {# NEU: Dynamisches Maximum: 60Hz im Boost, sonst 45Hz #} {% set max_f =
- 60 if is_boost else 45 %}
- {% if val > max_f %}
- {{ max_f }}
- {% elif val < 20 %}
- 20
- {% else %}
- {{ val }}
- {% endif %}
- - condition: template
- value_template: "{{ new_f | int != soll_f | int }}"
- - action: input_number.set_value
- target:
- entity_id: input_number.sollfrequenz
- data:
- value: "{{ new_f }}"
Advertisement
Add Comment
Please, Sign In to add comment