Like usual, in advance I would like to thank all you that offer me such great help every time I have a question.
I am looking to take my gfs setup to the next level, and make it run a house alarm for her. I noticed that on most of her doors I can easily drill from the door frame into the light switch box on the wall, where there is a D1 Min with Tasmota.
So far I’ve got the front door and the back door set up. Running a US1881 hall sensor on the front door, and a reed switch on the back door. The reed switches in theory are much easier to set up, but BOY ARE THEY FRAGILE! I busted like 4 of them trying to set it up inside the hole I made on the door frame.
First thing that I learned was that if I just added it as another switch to the D1 Mini, but didn’t assign a relay to it, it would actually switch the number 1 relay. For example, in the back door tasmota I had relay1 with switch 1 and relay2 with switch 2. I added switch 3 as the input of the door sensor, and when opening and closing the door it would toggle the relay1.
Recently I had set up a tasmota with extra switches, and using rules I get the switches to control the right relays on a totally different tasmota. So to stop the door from triggering the relays I set up a rule for it to send a command to a device that doesn’t exist.
So finally I get to my question. How can I now integrate this sensor/switch onto HomeAssistant to know when the doors are open or closed? I am guessing is a two step solution and I already have the 2nd step. First I need to create something on home assistant, like a binary sensor, then the 2nd step would be to set a rule on the tasmota to update binary sensor state via mqtt.