rename trigger ids
This commit is contained in:
@@ -306,21 +306,21 @@ triggers:
|
|||||||
from: "off"
|
from: "off"
|
||||||
to: "on"
|
to: "on"
|
||||||
for: !input window_delay_open
|
for: !input window_delay_open
|
||||||
id: FENSTER_OPEN
|
id: WINDOW_OPENED
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id:
|
entity_id:
|
||||||
- !input window_sensor
|
- !input window_sensor
|
||||||
from: "on"
|
from: "on"
|
||||||
to: "off"
|
to: "off"
|
||||||
for: !input window_delay_close
|
for: !input window_delay_close
|
||||||
id: FENSTER_CLOSED
|
id: WINDOW_CLOSED
|
||||||
- platform: time_pattern
|
- platform: time_pattern
|
||||||
# Periodische Überprüfung alle 5 Minuten (Temperatursynchronisation, Override-Check)
|
# Periodische Überprüfung alle 5 Minuten (Temperatursynchronisation, Override-Check)
|
||||||
minutes: "/5"
|
minutes: "/5"
|
||||||
id: PERIODIC_CHECK
|
id: PERIODIC_CHECK
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: !input temperature_sensor
|
entity_id: !input temperature_sensor
|
||||||
id: TEMP_CHANGED
|
id: SENSOR_TEMPERATURE_CHANGED
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: !input alarm_control_panel
|
entity_id: !input alarm_control_panel
|
||||||
to: "armed_away"
|
to: "armed_away"
|
||||||
@@ -329,22 +329,22 @@ triggers:
|
|||||||
entity_id: !input alarm_control_panel
|
entity_id: !input alarm_control_panel
|
||||||
from: "armed_away"
|
from: "armed_away"
|
||||||
to: "disarmed"
|
to: "disarmed"
|
||||||
id: ALARM_DISARMED_AWAY
|
id: ALARM_DISARMED
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: !input heating_period_switch
|
entity_id: !input heating_period_switch
|
||||||
to: "on"
|
to: "on"
|
||||||
id: HEATING_PERIOD_ON
|
id: HEATING_PERIOD_STARTED
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: !input heating_period_switch
|
entity_id: !input heating_period_switch
|
||||||
to: "off"
|
to: "off"
|
||||||
id: HEATING_PERIOD_OFF
|
id: HEATING_PERIOD_ENDED
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: !input radiator_schedules
|
entity_id: !input radiator_schedules
|
||||||
attribute: temp
|
attribute: temp
|
||||||
id: SCHEDULE_TEMP_CHANGED
|
id: SCHEDULE_TEMPERATURE_CHANGED
|
||||||
- platform: state
|
- platform: state
|
||||||
entity_id: !input active_scheduler_selector
|
entity_id: !input active_scheduler_selector
|
||||||
id: SCHEDULER_CHANGED
|
id: SCHEDULE_SELECTOR_CHANGED
|
||||||
|
|
||||||
# Hinweis zur Wartbarkeit: climate.set_temperature wird an 4 Stellen verwendet:
|
# Hinweis zur Wartbarkeit: climate.set_temperature wird an 4 Stellen verwendet:
|
||||||
# 1. Heizperiode aktiviert - Setzt Temperatur beim Einschalten der Heizung
|
# 1. Heizperiode aktiviert - Setzt Temperatur beim Einschalten der Heizung
|
||||||
@@ -358,14 +358,14 @@ actions:
|
|||||||
- conditions:
|
- conditions:
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
id:
|
id:
|
||||||
- HEATING_PERIOD_ON
|
- HEATING_PERIOD_STARTED
|
||||||
- HEATING_PERIOD_OFF
|
- HEATING_PERIOD_ENDED
|
||||||
sequence:
|
sequence:
|
||||||
- choose:
|
- choose:
|
||||||
- conditions:
|
- conditions:
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
id:
|
id:
|
||||||
- HEATING_PERIOD_ON
|
- HEATING_PERIOD_STARTED
|
||||||
sequence:
|
sequence:
|
||||||
- service: climate.set_hvac_mode
|
- service: climate.set_hvac_mode
|
||||||
target:
|
target:
|
||||||
@@ -394,7 +394,7 @@ actions:
|
|||||||
- conditions:
|
- conditions:
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
id:
|
id:
|
||||||
- HEATING_PERIOD_OFF
|
- HEATING_PERIOD_ENDED
|
||||||
sequence:
|
sequence:
|
||||||
- service: switch.turn_off
|
- service: switch.turn_off
|
||||||
target:
|
target:
|
||||||
@@ -417,7 +417,7 @@ actions:
|
|||||||
- conditions:
|
- conditions:
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
id:
|
id:
|
||||||
- FENSTER_OPEN
|
- WINDOW_OPENED
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: >
|
value_template: >
|
||||||
{{ is_state(window_detection_entity, 'off') }}
|
{{ is_state(window_detection_entity, 'off') }}
|
||||||
@@ -429,7 +429,7 @@ actions:
|
|||||||
- conditions:
|
- conditions:
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
id:
|
id:
|
||||||
- FENSTER_CLOSED
|
- WINDOW_CLOSED
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: >
|
value_template: >
|
||||||
{{ is_state(window_detection_entity, 'on') }}
|
{{ is_state(window_detection_entity, 'on') }}
|
||||||
@@ -454,7 +454,7 @@ actions:
|
|||||||
- conditions:
|
- conditions:
|
||||||
- condition: trigger
|
- condition: trigger
|
||||||
id:
|
id:
|
||||||
- TEMP_CHANGED
|
- SENSOR_TEMPERATURE_CHANGED
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: >
|
value_template: >
|
||||||
{{ temperature_sensor is defined and states(temperature_sensor) | is_number }}
|
{{ temperature_sensor is defined and states(temperature_sensor) | is_number }}
|
||||||
@@ -516,12 +516,12 @@ actions:
|
|||||||
- condition: trigger
|
- condition: trigger
|
||||||
id:
|
id:
|
||||||
- ALARM_ARMED_AWAY
|
- ALARM_ARMED_AWAY
|
||||||
- ALARM_DISARMED_AWAY
|
- ALARM_DISARMED
|
||||||
- SCHEDULE_TEMP_CHANGED
|
- SCHEDULE_TEMPERATURE_CHANGED
|
||||||
- SCHEDULER_CHANGED
|
- SCHEDULE_SELECTOR_CHANGED
|
||||||
- condition: template
|
- condition: template
|
||||||
value_template: >
|
value_template: >
|
||||||
{% if trigger.id == 'SCHEDULE_TEMP_CHANGED' %}
|
{% if trigger.id == 'SCHEDULE_TEMPERATURE_CHANGED' %}
|
||||||
{% set selected_friendly_name = states(active_scheduler_selector) %}
|
{% set selected_friendly_name = states(active_scheduler_selector) %}
|
||||||
{{ state_attr(trigger.entity_id, 'friendly_name') == selected_friendly_name }}
|
{{ state_attr(trigger.entity_id, 'friendly_name') == selected_friendly_name }}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
|||||||
Reference in New Issue
Block a user