I have automation that is using state
condition and trigger. I read in documentation that if you use list in state
condition or from
in trigger it will act as or
on listed states. Debug I have done on my automation shows otherwise:
result: false
state: cloudy
wanted_state: cloudy,snowy,rainy
I can make it work with multiple triggers and or
condition but I would like to know what am I doing wrong. Would be grateful for any feedback
Full automation code:
id: '1638088596150'
alias: Włącz doświetlacz przenośny po zachodzie lub gdy jest ciemno
description: ''
trigger:
- platform: state
entity_id: weather.miloszyce
to: cloudy,snowy,rainy
for:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
- platform: sun
event: sunset
offset: '0'
- platform: time
at: '07:00'
condition:
- condition: time
after: '07:00'
before: '21:00'
- condition: or
conditions:
- condition: sun
after: sunset
- condition: state
entity_id: weather.miloszyce
state: cloudy,snowy,rainy
for:
hours: 0
minutes: 0
seconds: 0
milliseconds: 0
action:
- type: turn_on
device_id: 29e0f59e4aa58ad01673a4d992bd1405
entity_id: light.mobile_plant_light
domain: light
mode: single
1 post - 1 participant