Restored combined motion sensor
This commit is contained in:
parent
7156323ec8
commit
0820913f71
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue