Hi,
Since the new event based actions update, it sometimes happens (once or twice a week) that some of my switches trigger an action event on their own without anyone having pressed them.
This is problematic in itself, but it happens especially in the middle of the night. Just last night at 5am I found myself with all the lights in the house on (it’s a rude awakening…).
For example, for the bedroom light, in an automation I use:
trigger: state
entity_id:
- event.interrupteur_sf_chambre_benjamin_action
And after I use some conditions based on the attribute event_type (single, double, etc).
I’ve even added a check to confirm that the state is indeed changing:
{{ trigger.to_state.state != trigger.from_state.state }}
But as you can see here, the state changed by itself at 5:01 in the morning while we were sleeping:
And it’s not the only one, because as I said, several switches do it at the same time and I end up with the whole house lit up…
My question is: how can I avoid this kind of behaviour, which didn’t exist before the update and which I was using the action attribute?
The advantage of the old action attribute was that it only indicated the action at the time of the event and then emptied, whereas now the action remains until it changes.