I’m looking to integrate an ESP8266 (NodeMCU) into my existing alarm sensors. According to the link below, it can potentially be done to allow sensors to be recognised by HA and would be useful to trigger events, etc.
I have already managed to integrate arm/disarm/garage (on aux) by running wires to an existing key fob so being able to add the existing sensors without affecting the existing setup would be ideal for me. I’ve looked at stuff like Konnected but I’d like to be able to easily reverse if I ever move out of this home.
It’s a dumb alarm system, hard wired throughout the house to it’s own alarm panel. There are no smarts around it as yet (besides me adding simulated keypresses through a keyfob for arming/disarming the alarm).
Would the link I provided in the first post be something to consider for my needs?
We did this about 6 months ago. Our new construction home came pre-wired with contact sensors on each door, the furnace, and the A/C unit, and a PIR motion sensor in the entry. We were able to use an ESP8266 to tap into the wires coming into the alarm panel and pull the state of each sensor into HA while still retaining full functionality of the alarm system itself.
I think the process for doing this will vary a bit based on your alarm panel manufacturer, but I don’t think the instructable is too far off from what you’d be looking to do. Seems like there are some extra steps in that than we took, but we have a different panel from the one in that write up.
The system I have is a Bosch ICP488, fairly generic. So you went through the same process as the link? Did you have to use the LM339 as well as voltage divider resistors?
Curious to know more about your setup if you’re willing to share?
We have a Honeywell Ademco panel, which made our setup different from the link actually. The concept is fundamentally the same, but we didn’t have to use the LM339 because we only have one sensor per zone and no voltage dividers like the Bosch needs.
Since you have the same panel as the instructable you’re probably best off following that method. @cwfchris2 can probably give you more detail than I, as he did all of our wiring
@talondnb, Brett’s right, but in talking about this, we’ve actually discovered a problem with our own design, so I suppose I owe you a thank you!
Our system is different because we only have one zone per pair of screw terminals in the panel. To answer your question for what we did, we used optocouplers (PC817s) in series with the sensors, and the other end of that hooked up to the ESP8266 to show us a change in state (logic high vs. low). It works great for our automation system, and we’ve had no issues at all with that, but we’ve noticed a problem with our actual alarm system where for some zones the keypad doesn’t give an indication of which zone has been triggered (it just beeps at us and says “Not Clear” - still sets off the alarm…). Our optocoupler solution evidently works well enough for some of the (lower-resistance?) circuits on our system, but for the others, the system probably thinks we’re trying to double up on our zones like your Bosch system because the optocoupler introduces a voltage drop that the panel doesn’t account for. Either because our panel’s zones aren’t set up like that, or because the voltage is at a strange enough level, the keypad doesn’t give a zone indication, probably just because it can’t tell which one’s been triggered.
Our system does seem to work really well on the home automation side, and hopefully once we go in and tweak a few things (resistor values maybe?) it’ll be up at 100% on the actual alarm side too. I’d be happy to report back on how we fix ours in the end if you’re interested, but rather than follow our example you might want to try that instructable’s approach
Thanks for the replies guys, really appreciate it. I’ll probably go through and attempt the instructions on that link and see how things go.
I’d be keen to hear how you go in about resolving your issues too. I’m not a software guy unfortunately so hopefully the new esphomeyaml libraries will help!
I’ve managed to implement the above successfully. It’s not pretty but works a charm. I had to use the LM339 as per the instructable link and so far an LM7805 with a heatsink isn’t hot at all, very mildly warm to touch.
I’ve been adding more sensors to my setup (Xiaomi motion and door/window sensors) and have integrated the MQTT manual alarm component so I can use all of the currently attached sensors. This works fine but we arm the alarm system primarily from the keyfob, skipping HA.
Can anyone suggest how I can add alarm state sensing of my retrofitted panel to HA?
No, but everything you need to have them manufactured is on github (gerbers files). It’s only around $20 shipped to get 5 made and usually delivered in less than a week.