Pin always high!

I’m moving my multinodes from ESP Easy to ESPHome and I’ve run into a problem. I have a AM312 PIR connected to GPIO16 on a wemos d1 mini pro and it worked great on ESPEasy, the problem is that now when I’ve installed ESPHome instead the pin is always high with a voltage of 2.2. I’ve tried changin the mode to both INPUT and INPUT_PULLDOWN_16 but it still says there’s movement all the time.

On the last one I built I just moved the data pin until I found a pin that worked but this node is already mounted and cables are soldered!
That’s the main problem… second one is probably easier!

I have a DHT22 configured as normal and the display lambda looks like this:
it.printf(127, 60, id(font3), TextAlign::BASELINE_RIGHT , "%.1f", id(office_humidity).state); and the result looks like this:

I think the humidity (3.8) got the decimal placed wrong and it should be 38 and I want to add %

Cannot help with the first problem, but putting in a literal % is done with %%, eg

%.1f%%"

(this is in the docs by the way https://esphome.io/components/display/index.html)

1 Like