Trying to set up my gas meter with ESPHome. Running on an ESP32s, my meter output is 1 pulse = 1ft3. It is simply 2 cables that make continuity every ‘pulse’.
When testing, I simply touch my two cables together from the ESP32 to simulate a ‘pulse’ and seem to get random readings, but never 1ft3. Assume i’m missing something obvious here, my esp YAML is:
# Gas Meter Pulse Sensor 1 pulse = 1 ft3
sensor:
- platform: pulse_counter
pin:
number: 14
mode:
input: true
pullup: true
accuracy_decimals: 2
update_interval: 20s
unit_of_measurement: ft³
name: "Gas Meter"
device_class: gas
id: gas_meter
icon: mdi:fire