This maybe be more appropriate for an ESP32 forum, but since it includes my YAML config file, I thought I should start here.
The short version is I have a series of 8 sensors (some labelled switches, but they’re actually sensors like the rest) that connect to GPIO pins. In testing, I started with only 1 or 2 actually connected to switches or external pull-down resistors. When my chip is active (with ESPHome on it), I do have one sensor showing ON
while all the others show OFF
. Here’s a screenshot of the ESPHome webpage for the devcie:
Sensor 3, the one showing ON
, is on GPIO03
. From what have found, I see nothing that indicates this pin is handled differently than the other GPIO pins. I have the internal pulldown set to true
, so I would expect it to be off. At this point, that pin and most of the others are floating. Again, I would expect the internal pulldown to keep it low.
My configuration for the sensors is at the bottom of this post. Is it just random and, if I use external pulldown resistors, will this be fixed? Do I need external pulldowns because there are issues with the internal ones?
What’s going on with this and what do I need to do to fix it?
Here’s my configuration info on this (the substitution for ${Sensor3Pin} is, as I mentioned,
GPIO03`.
binary_sensor:
- platform: gpio
id: "Sensor01"
name: "Sensor 1"
web_server:
sorting_group_id: sorting_group_sensor1
sorting_weight: 1
pin:
number: ${Sensor1Pin}
mode:
input: true
pulldown: true
filters:
delayed_on: 10ms
device_class: power
As mentioned, I have 4 of thes, which I made by copying and pasting and the only parts I changed were changing the ‘1’ in the id, name, sorting_group_id, and number fields to the appropriate number for each individual sensor.