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