diff --git a/Climate/bosch_bth-ra_control.yaml b/Climate/bosch_bth-ra_control.yaml index 9d1bfd6..95be74e 100644 --- a/Climate/bosch_bth-ra_control.yaml +++ b/Climate/bosch_bth-ra_control.yaml @@ -216,12 +216,12 @@ actions: data: temperature: "{{ target_temperature | float }}" alias: Setze Fenster auf geschlossen und setze Solltemperatur auf Wert aus Zeitplan (wenn vorhanden) + alias: Fensterstatus Änderung # temperature sensor sync - choose: - conditions: - condition: trigger id: - - SYNC_TEMPERATURE - TEMP_CHANGED - condition: template value_template: > @@ -232,7 +232,25 @@ actions: value: "{{ states(temperature_sensor) | float }}" target: entity_id: "{{ remote_temperature_entity }}" - alias: Synchronisiere Temperatur am TRV + alias: Synchronisiere Temperatur am TRV (bei Änderung) + - conditions: + - condition: trigger + id: + - SYNC_TEMPERATURE + - condition: template + value_template: > + {{ temperature_sensor is defined and states(temperature_sensor) | is_number }} + - condition: template + value_template: > + {{ (now() - states[temperature_sensor].last_changed).total_seconds() > 1199 }} + sequence: + - service: number.set_value + data: + value: "{{ states(temperature_sensor) | float }}" + target: + entity_id: "{{ remote_temperature_entity }}" + alias: Synchronisiere Temperatur am TRV (zeitbasiert, wenn länger als 20min unverändert) + alias: Temperatursynchronisation # setze Solltemperatur basierend auf Alarm-Status - choose: - conditions: @@ -251,4 +269,5 @@ actions: entity_id: !input trv data: temperature: "{{ target_temperature | float }}" - alias: Setze Solltemperatur basierend auf Alarm-Status \ No newline at end of file + alias: Setze Solltemperatur basierend auf Alarm-Status + alias: Solltemperatur setzen \ No newline at end of file