A while ago I setup a hall sensor on my gas meter and everything was working perfectly, gas usage was showing up in the energy dashboard, however, it corroded and broke - didn’t fix it for a year. But I’ve come around to fixing it using the exact same config but it no longer works. I used to use a utility meter helper but it no longer appears as a selection in the gas consumption
the other sensors listed are old utility meters that have been deleted and removed from the database and configs, no idea why they show up
when setting the entity from esphome it shows an error:
my end goal is to just get the gas usage in the energy dashboard. if anyone has a working config it would be much appreciated, I’ve scoured the internet and none work. I haven’t found that there’s any ghosting with my setup as well.
# settings
esphome:
name: gas-meter
esp8266:
board: nodemcuv2
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
use_address: 192.168.2.183
domain: .iot
logger:
api:
encryption:
key: !secret api_key
ota:
password: !secret ota_password
# configuration
binary_sensor:
- platform: gpio
name: "Magnetic Sensor"
pin:
number: D2
inverted: true
mode: INPUT_PULLUP
internal: true
on_press:
then:
- light.turn_on: status_led
- delay: 250ms
- light.turn_off: status_led
light:
- platform: binary
id: status_led
name: "Status LED"
output: status_led_output
internal: true
output:
- id: status_led_output
platform: gpio
pin: GPIO2
inverted: true
sensor:
- platform: pulse_counter
name: "Gas Meter"
pin:
number: D2
inverted: true
mode: INPUT_PULLUP
device_class: gas
unit_of_measurement: "m³"
icon: "mdi:fire"
filters:
- multiply: 0.01 # 1imp = 0.01m³