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.
Hi. I’m not very experienced in electronics schemes development, can you please give me an advice.
I have an old hardwired alarm system with a wired door sensor and external status led.
I want to connect and read the status of the external led and door sensor with ESP8266 without disconnecting them from the alarm system.
What do I start from? Mesure voltage on the LED and sensor? What additional components do I need?
Something else that can be used instead of the ESP8266 board is an Arduino Uno/Mega flashed with OpenMQTTGateway and an ethernet shield so that it improves on the reliability of connection (however, it requires running ethernet cables…).
Also, I should mention that LDR does need a little tinkering with calibration until getting the correct values in HA as that module is analog.
What kind of door sensor you want to monitor (i.e wired/wireless; if wireless what technology: RF433Mhz/Zigbee/Zwave/Wifi/etc)?
I have 2 wired sensors connected in series directly to the alarm system. There is also a wire coming to the external LED on the front door.
I’m thinking, maybe I can use optocouplers to check sensors and led state?
Here are connections that i want to connect to.
You could use a hall effect sensor to measure voltage, however you need a voltage divider to be able to connect it to an Arduino/ESP board in order to have continuous readings.
Also, keep in mind that those wires are probably running 12 V thus, although not sufficient to cause direct electrical shock problems, an incorrect wiring can lead to damages to the alarm’s motherboard or even fire hazard.
Thus, I would totally advise against messing with the wiring if not an electrician.
Instead, if able to access the led that turns on when sensors trigger (I assume that, since the two sensors are connected in series, you don’t have multiple zones for the alarm to monitor), a LDR connected to Arduino/ESP is still a solid option as it doesn’t involve any invasive wiring. LDR readings are instantly sent to the MQTT broker and you only need to take care of HA’s logic.