Hallo zusammen,
ich habe eine Automatisierung, die bisher funktioniert hat. Sie schaltete jeden Morgen (Mo-Fr) für eine bestimmte Zeit das Radio im Bad ein, wenn mindestens einer von uns zu Hause ist. Das tat er allerdings auch wenn wir zu Hause waren und Urlaub haben, oder wenn Feiertag war.
Daher hatte ich die Bedingungen etwas angepasst, wie folgt:
conditions:
- type: is_on
condition: device
device_id: c28b5af5144a47fa07e726b6a204b9ab
entity_id: 5cc8de657b87134fb121236f609e0e70
domain: binary_sensor
for:
hours: 0
minutes: 0
seconds: 5
- condition: or
conditions:
- condition: zone
entity_id: person1
zone: zone.home
- condition: zone
entity_id: person2
zone: zone.home
- condition: not
conditions:
- condition: template
value_template: |-
{{ 'Urlaub' in state_attr('calendar.standardkalender',
'message') }}
Die erste Bedingung ist Workday Sensor an, die zweite Bedingung ist einer von beiden zu Hause, die dritte Bedingung soll der Eintrag “Urlaub” im Standardkalender sein.
Und der bringt jetzt eine Fehlermeldung:
Error evaluating condition in 'Guten Morgen Neu': In 'condition' (item 3 of 3): In 'not': In 'template' condition: TypeError: argument of type 'NoneType' is not iterable
Fehlt da noch etwas?