#Binary sensor only triggering automation once if off->on and on->off happen in same second

1 messages · Page 1 of 1 (latest)

prisma carbon
#

I have a bunch of Z-wave water/leak sensors. I have setup automation for any state changes of 2 of the binary sensors in each device: water leak detected, low battery level.

If the "water leak detected" binary sensor goes from off->on, then a second or more later goes from on->off, the automation triggers twice, just as I wanted. However if both state transitions occur in the same second, I only get the automation for the off->on state change. Similarly, if the state first goes on->off then goes off->on in the same second, the automation only triggers for the on->off state change. Logs show all state transitions being detected correctly, only automation is the issue.

river needle
#

what does the HA log say?

prisma carbon
#

yeah i just noticed that setting when i was about to post the yaml

#

which HA log exactly?

#

i did see the log for the device showing all the state changes, but only automation for the first change within the second

river needle
#

settings > system > logs

prisma carbon
#

based on the automation mode docs i think you're right

#

let me try either queued or parallel

#

i did see some warnings in my log that automation was already running

#

now i understand what that means

#

i thought it meant the automation system was already running. didn't realize it meant THIS automation was already running

#

PRAISE JEBUS! lol

#

thank you

#

that was it

#

i found the setting in the UI but why it's in its own popup separate from the rest of the automation settings 🤦‍♂️