Restored combined motion sensor

This commit is contained in:
Martin Bauer 2019-11-30 17:55:30 +01:00
parent 7156323ec8
commit 0820913f71
1 changed files with 16 additions and 16 deletions

View File

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