Hello there =)
I am currently starting with ESPHome while following this blogpost. Everything went great until I stumbled across one issue I am currently not able to fix:
I am trying to read the input state of pins of the ESP32 and send this data to Homeassistant. This works (as described in the blogpost) for pins 12
and 13
. However I’d like to read the state of a third pin but cannot get this to work. I can’t get any other pin to read the state just like pins 12
and 13
.
The logical way would be to use pin 11
however esphome says this pin is used for Interrupts. I tried numerous other pins but cant find one that works. Essentially it should just recognize when the pin is connected to ground.
Looking at the documentation for the pinout I can’t figure out why other pins (like 18
/D15
) don’t work.
This is the config I use
binary_sensor:
- platform: gpio
pin:
number: 13
inverted: true
mode:
input: true
pullup: true
name: Bedsensor left
device_class: occupancy
- platform: gpio
pin:
number: 12
inverted: true
mode:
input: true
pullup: true
name: Bedsensor middle
device_class: occupancy
# A pin for Bedsensor right is missing
Do you have any idea? I’d be really grateful for any clues!
Cheers,
Felix