adjust structure

This commit is contained in:
2025-11-24 18:29:07 +01:00
parent 2b6c5b29d9
commit 1f0a485b89

View File

@@ -51,7 +51,7 @@ blueprint:
- domain: sensor - domain: sensor
device_class: temperature device_class: temperature
triggers: triggers:
- trigger: state - trigger: state
entity_id: entity_id:
- !input window_sensor - !input window_sensor
@@ -70,9 +70,9 @@ blueprint:
minutes: '29' minutes: '29'
id: SYNC_TEMPERATURE id: SYNC_TEMPERATURE
variables: variables:
trv: !input radiator_entity trv: !input radiator_entity
remote_temperature_entity: > remote_temperature_entity: >
{% set entities = device_entities(device_id(trv)) %} {% set entities = device_entities(device_id(trv)) %}
{% set remote_temperature_entity_id = namespace(id='') %} {% set remote_temperature_entity_id = namespace(id='') %}
{% for s in entities %} {% for s in entities %}
@@ -81,7 +81,7 @@ blueprint:
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{{ remote_temperature_entity_id.id }} {{ remote_temperature_entity_id.id }}
window_detection_entity: > window_detection_entity: >
{% set entities = device_entities(device_id(trv)) %} {% set entities = device_entities(device_id(trv)) %}
{% set window_detection_entity_id = namespace(id='') %} {% set window_detection_entity_id = namespace(id='') %}
{% for s in entities %} {% for s in entities %}
@@ -90,10 +90,10 @@ blueprint:
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{{ window_detection_entity_id.id }} {{ window_detection_entity_id.id }}
current_temperature: !input temperature_sensor current_temperature: !input temperature_sensor
actions: actions:
- if: - if:
- condition: trigger - condition: trigger
id: id:
- FENSTER_OPEN - FENSTER_OPEN
@@ -102,7 +102,7 @@ blueprint:
target: target:
entity_id: "{{ window_detection_entity }}" entity_id: "{{ window_detection_entity }}"
alias: Setze Fenster auf offen alias: Setze Fenster auf offen
- if: - if:
- condition: trigger - condition: trigger
id: id:
- FENSTER_CLOSED - FENSTER_CLOSED
@@ -112,7 +112,7 @@ blueprint:
entity_id: "{{ window_detection_entity }}" entity_id: "{{ window_detection_entity }}"
alias: Setze Fenster auf geschlossen alias: Setze Fenster auf geschlossen
# temperature sensor sync # temperature sensor sync
- if: - if:
- condition: trigger - condition: trigger
id: id:
- FENSTER_OPEN - FENSTER_OPEN