I connected my ESP32 to a LED on a PCB board. The AC is around 1,5v when it’s blinking and 1,1v when it’s not (multimeter readings). I’m trying to find out how to translate this into a (binary-)sensor when it’s blinking within Hassio. I tried many ideas but most are for HIGH.
I got my ESP connected to the LED with a 10k resistor and to the GND
This is my current set-up:
binary_sensor: - platform: gpio id: watertank name: Water Tank pin: # Connected to GPIO number: GPIO19 mode: INPUT_PULLUP # inverted: true filters: # Small filter, to debounce the button press. # - delayed_on: 1s # - delayed_off: 1s
Anyone who can point me in the right direction?