Bypass Sensor by button press

Hello @ all !

I am pretty new to Home Assistant and spent a week now, setting up my home to be smart… :slight_smile:

I was reading forums a lot to setup everything, but now, I reached a point, where I don’t find any solution… I have integrated contact sensors from SwitchBot via ESD32 and MQTT. These have a button, which is recognized as a button entity (binary sensor) in the devices setup, so I can read out its state with on (pressed) and off (released) .

As I have these sensors now on all doors and windows, I would like to set up HA that if the alarm is armed and if I would press the button on the sensor, that the sensor will be inactive for lets say 5 minutes, so that I can open the door without disarming the alarm completely…

Do you have an idea, how to set this up ? - Maybe a piece of code or step by step instructions ?

I am afraid my wife will kill me, if she would have to disable and re-enable the alarm everytime she has to let the dog out for a pee at night… :crazy_face:

HELP !!! :slight_smile:

1 Like