diff --git a/config_creation/manual_config.yaml b/config_creation/manual_config.yaml index 21c300f..0a9a007 100644 --- a/config_creation/manual_config.yaml +++ b/config_creation/manual_config.yaml @@ -152,22 +152,22 @@ vacuum: token: !secret vacuum_token -#sensor: -# - platform: template -# sensors: -# motion_combined: -# friendly_name: Bewegung -# value_template: > -# {%- set pirs = {'Arbeitszimmer': states.binary_sensor.arbeitszimmer_martin_bewegungsmelder_bewegung, -# 'Gang Mitte': states.binary_sensor.gang_bewegungsmelder_mitte, -# 'Eingang': states.binary_sensor.gang_bewegungsmelder_ost, -# 'Gang Hinten': states.binary_sensor.gang_bewegungsmelder_schlafzimmer, -# 'Gang Wohnzimmer': states.binary_sensor.gang_bewegungsmelder_wohnzimmer} %} -# {% for pir_name, pir in pirs.items() %} -# {% if as_timestamp(pir.last_changed) == as_timestamp(pirs.values() | map(attribute='last_changed') | max) %} -# {{ pir_name }} -# {% endif %} -# {% endfor %} +sensor: + - platform: template + sensors: + motion_combined: + friendly_name: Bewegung + value_template: > + {%- set pirs = {'Arbeitszimmer': states.binary_sensor.arbeitszimmer_martin_bewegungsmelder_bewegung, + 'Gang Mitte': states.binary_sensor.gang_bewegungsmelder_mitte, + 'Eingang': states.binary_sensor.gang_bewegungsmelder_ost, + 'Gang Hinten': states.binary_sensor.gang_bewegungsmelder_schlafzimmer, + 'Gang Wohnzimmer': states.binary_sensor.gang_bewegungsmelder_wohnzimmer} %} + {% for pir_name, pir in pirs.items() %} + {% if as_timestamp(pir.last_changed) == as_timestamp(pirs.values() | map(attribute='last_changed') | max) %} + {{ pir_name }} + {% endif %} + {% endfor %} # - platform: history_stats # name: Pool Pumpe Heute # entity_id: switch.pool_pumpe