Shopping List

This commit is contained in:
Martin Bauer 2019-07-21 17:51:10 +02:00
parent e4da3d56cb
commit ad3146de33
2 changed files with 21 additions and 1 deletions

View File

@ -30,7 +30,11 @@ hallway:
outside:
name: Außen
entities:
- light.garten_spot_beet
- light.garten_spot_birke
- light.garten_spot_magnolie
- light.garten_stehleuchte
office_martin:
name: Arbeitszimmer

View File

@ -58,6 +58,7 @@ homekit:
recorder:
history:
ios:
shopping_list:
#http:
@ -146,6 +147,21 @@ vacuum:
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