diff --git a/Climate/bosch_bth-ra_control_dev.yaml b/Climate/bosch_bth-ra_control_dev.yaml index 5fe305a..71aa078 100644 --- a/Climate/bosch_bth-ra_control_dev.yaml +++ b/Climate/bosch_bth-ra_control_dev.yaml @@ -5,8 +5,9 @@ blueprint: An automation to set Bosch TRV radiator valve to a desired temperature. domain: automation author: Me + min_version: "2024.6.0" input: - radiator_section: + radiator_settings: name: Radiator Konfiguration description: Konfiguration für den Bosch BTH-RA Radiator collapsed: false @@ -23,7 +24,7 @@ blueprint: - model_id: BTH-RA entity: - domain: climate - window_section: + window_config: name: Fenster-/Türsensor Konfiguration description: Konfiguration für den Fenster-/Türsensor. collapsed: true @@ -57,7 +58,7 @@ blueprint: max: 3600.0 unit_of_measurement: seconds step: 1.0 - remaining_section: + remaining_config: name: Weitere Konfiguration description: Sonstige Konfigurationen für die Automation collapsed: true @@ -104,7 +105,8 @@ triggers: variables: trv: !input radiator_entity - schedules: !input radiator_schedules + radiator_schedules: !input radiator_schedules + temperature_sensor: !input temperature_sensor remote_temperature_entity: > {% set entities = device_entities(device_id(trv)) %} {% set remote_temperature_entity_id = namespace(id='') %} @@ -123,10 +125,9 @@ variables: {% endif %} {% endfor %} {{ window_detection_entity_id.id }} - current_temperature_entity_id: !input temperature_sensor scheduled_temperature: > {% set ns = namespace(current_temperature = none) %} - {% for schedule in schedules %} + {% for schedule in radiator_schedules %} {% if states(schedule) == 'on' and state_attr(schedule, 'current_slot') is not none %} {% set current_slot = state_attr(schedule, 'current_slot') %} {% set actions = state_attr(schedule, 'actions') %} @@ -173,7 +174,7 @@ actions: sequence: - service: number.set_value data: - value: "{{ states(current_temperature_entity_id) | float }}" + value: "{{ states(temperature_sensor) | float }}" target: entity_id: "{{ remote_temperature_entity }}" alias: Synce Temperatur zum TRV \ No newline at end of file