#Input boolean with button the correct way?

1 messages · Page 1 of 1 (latest)

round blade
#

So I have a room with a door and a door contact sensor on that door. I basically want to know whenever that door is opened, except if its opened by me. Would I be going down the right path to start tinkering with the following?

Using a boolean helper and a button. I will know of where the hidden button is at, and everytime i open the door i will press the button before hand. Pressing the button will set a boolean helper value from 0 to 1 for 15 seconds, then set back to 0. In my main automation of the door contact sensor state change, it will only notify me that the door opened if the boolean value is NOT 1.

clever plinth
#

It depends on how that button reports to HA that it was pressed

#

trigger on the button being pressed, state is on, auto_off with the delay you want
automation triggers on door opened, condition is that binary_sensor being off, action is to notify you