Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- blueprint:
- name: PV Überschuss Steuerung – Start
- description: |
- Startet bis zu 3 Phasen abhängig vom PV-Überschuss, Batterie-Ladung und Schalterzuständen.
- Jede Phase wird nur aktiviert, wenn die vorherige bereits eingeschaltet ist.
- Optional: Benachrichtigungen mit dynamischem Inhalt (abschaltbar).
- domain: automation
- input:
- trigger_entity:
- name: Überschuss-Sensor
- description: Sensor, der den PV-Überschuss in Watt misst (z. B. "sensor.grid_export_power")
- selector:
- entity:
- domain: sensor
- trigger_above:
- name: Schwellenwert (Watt)
- description: Mindest-PV-Überschuss zum Starten (in Watt)
- default: 1500
- selector:
- number:
- min: 0
- max: 10000
- unit_of_measurement: W
- duration:
- name: Mindestdauer Überschuss über Schwelle
- description: Wie lange muss der Überschuss den Schwellenwert überschreiten?
- default: "00:05:00"
- selector:
- duration:
- battery_sensor:
- name: Batteriesensor (in %)
- description: Sensor, der den Batterieladestand anzeigt (z. B. "sensor.battery_level")
- selector:
- entity:
- domain: sensor
- battery_threshold:
- name: Mindest-Batterieladung (%)
- description: Nur starten, wenn Batterie über diesem Wert liegt
- default: 90
- selector:
- number:
- min: 0
- max: 100
- unit_of_measurement: '%'
- phase_1:
- name: Schalter Phase 1 (input_boolean)
- selector:
- entity:
- domain: input_boolean
- phase_2:
- name: Schalter Phase 2 (input_boolean)
- selector:
- entity:
- domain: input_boolean
- phase_3:
- name: Schalter Phase 3 (input_boolean)
- selector:
- entity:
- domain: input_boolean
- message_phase_1:
- name: Nachricht Phase 1
- default: >-
- ☀️ Phase 1 aktiviert
- Grund: {{ trigger_type }}
- PV-Export: {{ export_value }} W ≥ {{ export_threshold }} W
- Batterie: {{ battery_value }} % ≥ {{ battery_threshold }} %
- Zeit: {{ timestamp }}
- selector:
- text:
- message_phase_2:
- name: Nachricht Phase 2
- default: >-
- ☀️ Phase 2 aktiviert
- Grund: {{ trigger_type }}
- PV-Export: {{ export_value }} W ≥ {{ export_threshold }} W
- Batterie: {{ battery_value }} % ≥ {{ battery_threshold }} %
- Zeit: {{ timestamp }}
- selector:
- text:
- message_phase_3:
- name: Nachricht Phase 3
- default: >-
- ☀️ Phase 3 aktiviert
- Grund: {{ trigger_type }}
- PV-Export: {{ export_value }} W ≥ {{ export_threshold }} W
- Batterie: {{ battery_value }} % ≥ {{ battery_threshold }} %
- Zeit: {{ timestamp }}
- selector:
- text:
- enable_notifications:
- name: Benachrichtigungen aktivieren
- description: Nur wenn aktiviert, werden Nachrichten versendet
- selector:
- entity:
- domain: input_boolean
- notify_service:
- name: Benachrichtigungsdienst
- description: z. B. notify.mobile_app_dein_handy
- selector:
- text:
- trigger:
- - platform: numeric_state
- entity_id: !input trigger_entity
- above: !input trigger_above
- for: !input duration
- - platform: numeric_state
- entity_id: !input battery_sensor
- above: !input battery_threshold
- condition:
- - condition: and
- conditions:
- - condition: numeric_state
- entity_id: !input battery_sensor
- above: !input battery_threshold
- - condition: numeric_state
- entity_id: !input trigger_entity
- above: !input trigger_above
- - condition: state
- entity_id: !input phase_3
- state: "off"
- action:
- - variables:
- export_entity: !input trigger_entity
- battery_entity: !input battery_sensor
- export_threshold: !input trigger_above
- battery_threshold: !input battery_threshold
- export_value: "{{ states(export_entity) | float | round(1) }}"
- battery_value: "{{ states(battery_entity) | float | round(1) }}"
- timestamp: "{{ now().strftime('%H:%M') }}"
- trigger_type: >
- {% if trigger.platform == 'numeric_state' %}
- Wertänderung
- {% else %}
- Zeit-Trigger
- {% endif %}
- - choose:
- - conditions:
- - condition: state
- entity_id: !input phase_1
- state: "off"
- sequence:
- - service: input_boolean.turn_on
- target:
- entity_id: !input phase_1
- - if:
- - condition: state
- entity_id: !input enable_notifications
- state: "on"
- then:
- - service: !input notify_service
- data:
- title: "PV-Überschuss: Phase 1 aktiviert"
- message: !input message_phase_1
- - conditions:
- - condition: state
- entity_id: !input phase_1
- state: "on"
- - condition: state
- entity_id: !input phase_2
- state: "off"
- sequence:
- - service: input_boolean.turn_on
- target:
- entity_id: !input phase_2
- - if:
- - condition: state
- entity_id: !input enable_notifications
- state: "on"
- then:
- - service: !input notify_service
- data:
- title: "PV-Überschuss: Phase 2 aktiviert"
- message: !input message_phase_2
- - conditions:
- - condition: state
- entity_id: !input phase_1
- state: "on"
- - condition: state
- entity_id: !input phase_2
- state: "on"
- - condition: state
- entity_id: !input phase_3
- state: "off"
- sequence:
- - service: input_boolean.turn_on
- target:
- entity_id: !input phase_3
- - if:
- - condition: state
- entity_id: !input enable_notifications
- state: "on"
- then:
- - service: !input notify_service
- data:
- title: "PV-Überschuss: Phase 3 aktiviert"
- message: !input message_phase_3
- - delay: "00:01:00"
- mode: restart
Advertisement
Comments
-
- Benachrichtigung Text der Stop - Vorlage angepasst und deaktivierbar
Add Comment
Please, Sign In to add comment