Hi!
Did you get the reed switch to work with ESPhome?
I wrote some code for the NodeMCU that work with a reed switch that connected a GPIO pin with GND but I would like to move that over to ESPhome for comfort reasons.
Sorry, but I do not understand what it means. For example:
GPIO16: pin is high at BOOT
GPIO0: boot failure if pulled LOW
GPIO2: pin is high on BOOT, boot failure if pulled LOW
GPIO15: boot failure if pulled HIGH
GPIO3: pin is high at BOOT
GPIO1: pin is high at BOOT, boot failure if pulled LOW
GPIO10: pin is high at BOOT
GPIO9: pin is high at BOOT
Some of them say that boot will fail if pulled LOW or pulled HIGH. I do not know what it means. Does it matter that some com high on BOOT? Does it matter if I use reed switches? Maybe it is for something else.
I’m just throwing this out there: are you certain that the reed switch is working?
Depending on the kind, the magnet is either pulling two tiny pieces of metal together, or pushing them apart. Either way, because this is a mechanical switch, there will be a very small audible click when the magnet is brought close to the reed, even when there is no power to the circuit.
Test this first, before you look for a software issue. Not all reed switches are made to the same standard.
Thank you for your reply, but they are not the same. The nerd page shows the board with 18 pins on each side, but the one that is on Amazon has 15 pins on each side.
The pins are labelled in the Amazon ad. Perhaps you missed this part of the esp32 page I pointed you to
Note: not all GPIOs are accessible in all development boards, but each specific GPIO works in the same way regardless of the development board you’re using.
@nickrout, I see that pins are labeled, but there is something else after GPIO signs and I do not know if I can use those pins, for example,
What does it mean when the pin marked ADC0? Can I use it? Can I use pins that after ACDx have sign TOUCHx? I do not know what TOUCH means.
Some of them have VSPxxxxx or VPSTxxx. Can I use those?
I appreciate you including the link and I tried to read that article because I like to learn instead of just follow, but it still not clear to me and I want to be sure that I connect correct pins.