I’ve been using HA and ESPHome for several years, so I have a good understanding of how it works when reading in sensor data. What I’m trying to do is read the binary output of a Siemens FSPG140 whole house surge suppressor. It has a 3 wire data out with a Common, NO and NC circuits. When energized, and fully operational, the ports allow the end user to monitor the status of the device. A fault would invert the binary switch and that should be able to be read within ESPHome (I hope).
I really don’t know where to look for how to achieve this, using either a D1Mini or ESP8266 board. I’m hoping there is a small component available that could do what I’m looking for, and a bit of code that describes how it should be configured. I can take it from there.
Any suggestions or help would be appreciated.
I think it is as simple as this
But warning, do the no/nc carry a voltage?
Your description presents dry contact relay output, so you can wire Esp GND to COM and NO to Esp gpio pin.
Only gpio binary sensor component is needed to read the status.
Thanks to both for the responses. I marked @Karosm as the solution because he described the basic wiring that I had not seen elsewhere. As for the question @nickrout asked, once installation was complete I tested both NO & NC and each had ~ < 400mV. Is this something that may inhibit or otherwise damage a D1Mini? My gut says no but it wouldn’t be the first time the magic smoke escaped a project. :<).
Thanks again for the help. Much appreciated.