I am trying to get a magnetic reedswitch into Hassio, but I am failing.
What I try to accomplisch is to integrate my gasmeter readings into Hassio.
After that I also would like to see the daily en montly usage *(utility meter)
I need to count the times the switch goes from LOW to HIGH.
My problem is I have a switch and I don’t know how to make it a sensor…
My instance Hassio 0.103.5 on a RPi 3b+.
I have tried it with arduino’s (via usb serial) and nodemcu’s/wemos D1 via Esphome but I can’t
get it to work.
I prefer the arduino solution but maybe it is possible to connect the reed switch directly to the Pi?
I still prefer to connect the pulse directly to the pi or via arduinio/usb serial.
The pi is in the same place as the gasmeter so doesn’t have to be wireless.
I also tried the pi project but I am not able to get any readings from the pi.
My reed switch is a potential free reed switch. I don’t know how to wire the switch/sensor to the pi.
Does it or does it not need 3.3V, wich gpio should I use, do I need to add resistors to it and do I need to configure the gpio as a pull-up or pull down?
I am compleetly lost