Compare commits

...

5 Commits

View File

@@ -221,6 +221,10 @@ variables:
# Konstanten # Konstanten
temperature_change_tolerance: 0.4 # °C - Minimale Differenz für Temperaturänderung temperature_change_tolerance: 0.4 # °C - Minimale Differenz für Temperaturänderung
sensor_sync_max_age: 1499 # Sekunden (25 Minuten - 1 Sekunde) - Max Alter für Sensor-Sync sensor_sync_max_age: 1499 # Sekunden (25 Minuten - 1 Sekunde) - Max Alter für Sensor-Sync
random_delay_max_seconds: 30
# Zufalls-Delay für climate.set_temperature
random_delay_seconds: "{{ range(0, random_delay_max_seconds + 1) | random }}"
# Entity-Discovery # Entity-Discovery
remote_temperature_entity: > remote_temperature_entity: >
@@ -350,7 +354,6 @@ triggers:
- platform: state - platform: state
entity_id: !input alarm_control_panel entity_id: !input alarm_control_panel
from: "armed_away" from: "armed_away"
to: "disarmed"
id: ALARM_DISARMED id: ALARM_DISARMED
- platform: state - platform: state
entity_id: !input heating_period_switch entity_id: !input heating_period_switch
@@ -405,8 +408,10 @@ actions:
- if: - if:
- condition: template - condition: template
value_template: > value_template: >
{{ is_valid_temperature and is_temperature_change_needed }} {{ is_valid_temperature and is_temperature_change_needed and is_state(window_detection_entity, 'off') }}
then: then:
- delay:
seconds: "{{ random_delay_seconds }}"
- service: climate.set_temperature - service: climate.set_temperature
target: target:
entity_id: !input trv entity_id: !input trv
@@ -459,11 +464,15 @@ actions:
- service: switch.turn_off - service: switch.turn_off
target: target:
entity_id: "{{ window_detection_entity }}" entity_id: "{{ window_detection_entity }}"
- delay:
minutes: 1
- if: - if:
- condition: template - condition: template
value_template: > value_template: >
{{ is_valid_temperature and is_temperature_change_needed }} {{ is_valid_temperature and is_temperature_change_needed }}
then: then:
- delay:
seconds: "{{ random_delay_seconds }}"
- service: climate.set_temperature - service: climate.set_temperature
target: target:
entity_id: !input trv entity_id: !input trv
@@ -525,6 +534,8 @@ actions:
- condition: template - condition: template
value_template: "{{ override_duration_exceeded }}" value_template: "{{ override_duration_exceeded }}"
sequence: sequence:
- delay:
seconds: "{{ random_delay_seconds }}"
- service: climate.set_temperature - service: climate.set_temperature
target: target:
entity_id: !input trv entity_id: !input trv
@@ -553,8 +564,10 @@ actions:
- if: - if:
- condition: template - condition: template
value_template: > value_template: >
{{ is_valid_temperature and is_temperature_change_needed }} {{ is_valid_temperature and is_temperature_change_needed and is_state(window_detection_entity, 'off') }}
then: then:
- delay:
seconds: "{{ random_delay_seconds }}"
- service: climate.set_temperature - service: climate.set_temperature
target: target:
entity_id: !input trv entity_id: !input trv