This is quite embarrassing, but I can not get my basic “Turn on light when door opens” automation. I have Telldus door switch and ONOFF switch which I can read and control from dashboard. But the automation does not work. IT is defined in the Automation configuration.
Can anybody point me in the rigth direction?
- id: '1536954990810'
alias: Loftbod på
trigger:
- entity_id: switch.loftbod_dr
from: 'Av'
platform: state
to: 'På'
condition: []
action:
- condition: state
entity_id: switch.loftbod_lys
state: 'På'
- id: '1536955071235'
alias: Loftbod av
trigger:
- entity_id: switch.loftbod_dr
from: 'På'
platform: state
to: 'Av'
condition: []
action:
- condition: state
entity_id: switch.loftbod_lys
state: 'Av'
Great sense of achievement when one gets even just these little thing to work - isn’t it?
For the benefit of the other forum participants, would you mind marking the topic as ‘Solved’?
all triggers are ‘or’ by default and can’t be changed (I don’t think…).
conditions can be either ‘and’, ‘or’ or a combination of the two.
and usually when you mark something as ‘solved’ you normally give the ‘solved’ attribution to the person who helped you solve the problem, not to yourself. otherwise you wouldn’t have come here to ask for help.
Is that specified in the docs anywhere? Because the link you supplied doesn’t say it’s relevant to triggers, only conditions.
If that’s the case then that seems to be a pretty big oversight and I’m positive I’m not the only one with that misconception.
EDIT:
and I’m honestly not sure how that would work in practice.
When is it that you would have two triggers happening at EXACTLY the same time? If they don’t need to happen at the same time then how is a trigger distinguishable from a condition?