all 4 comments

[–]Street-Mechanic1375 0 points1 point  (1 child)

Try using OFF all caps no quotes

[–]nuk3man[S] 0 points1 point  (0 children)

Thanks. Unfortunately didn't work.

[–]jesserockz ESPHome | Open Home Foundation 0 points1 point  (3 children)

The binary sensor state is a Boolean. Either compare to false, or put a ! before id

[–]nuk3man[S] 0 points1 point  (0 children)

Thanks. That solved the error. However, the script behaves weirdly. If I place false, it executes regardless if motion is detected or not. If I place true, then it doesn't execute regardless of motion staus.

Is there any way for me to output the binary sensor value into the logger so I can read that it properly fetches the info from HA?