Compare commits
5 Commits
2eba16f2e7
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
| edc4cabde5 | |||
| bf5409d36e | |||
| 3491ac64db | |||
| c6301b9f76 | |||
| b8839bac3a |
@@ -221,6 +221,10 @@ variables:
|
||||
# Konstanten
|
||||
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
|
||||
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
|
||||
remote_temperature_entity: >
|
||||
@@ -350,7 +354,6 @@ triggers:
|
||||
- platform: state
|
||||
entity_id: !input alarm_control_panel
|
||||
from: "armed_away"
|
||||
to: "disarmed"
|
||||
id: ALARM_DISARMED
|
||||
- platform: state
|
||||
entity_id: !input heating_period_switch
|
||||
@@ -405,8 +408,10 @@ actions:
|
||||
- if:
|
||||
- condition: 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:
|
||||
- delay:
|
||||
seconds: "{{ random_delay_seconds }}"
|
||||
- service: climate.set_temperature
|
||||
target:
|
||||
entity_id: !input trv
|
||||
@@ -459,11 +464,15 @@ actions:
|
||||
- service: switch.turn_off
|
||||
target:
|
||||
entity_id: "{{ window_detection_entity }}"
|
||||
- delay:
|
||||
minutes: 1
|
||||
- if:
|
||||
- condition: template
|
||||
value_template: >
|
||||
{{ is_valid_temperature and is_temperature_change_needed }}
|
||||
then:
|
||||
- delay:
|
||||
seconds: "{{ random_delay_seconds }}"
|
||||
- service: climate.set_temperature
|
||||
target:
|
||||
entity_id: !input trv
|
||||
@@ -525,6 +534,8 @@ actions:
|
||||
- condition: template
|
||||
value_template: "{{ override_duration_exceeded }}"
|
||||
sequence:
|
||||
- delay:
|
||||
seconds: "{{ random_delay_seconds }}"
|
||||
- service: climate.set_temperature
|
||||
target:
|
||||
entity_id: !input trv
|
||||
@@ -553,8 +564,10 @@ actions:
|
||||
- if:
|
||||
- condition: 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:
|
||||
- delay:
|
||||
seconds: "{{ random_delay_seconds }}"
|
||||
- service: climate.set_temperature
|
||||
target:
|
||||
entity_id: !input trv
|
||||
|
||||
Reference in New Issue
Block a user