SOLVED: Energy Dashboard showing double usage

Using a photosensor attached to an ESP8266 to count the pulses on my meter. Previous meter was 1000 pulses /kWh. Had a new meter fitted, this counts at 4000 pulses /kWh.

Meter counter is showing between 6am and 7am today a usage no higher than 0.22kWh for the entire hour - but the energy dashboard is showing 0.73kWh for the same period.


Energy Dashboard

I’m really confused as the sensor is showing the right data, but the dashboard seems to be doubling it?

I charged my EV and the value reported in the dashboard was way more than the total battery capacity :grinning: (I can only dream my car had that range!).

Any ideas?

My ESPHome code:

  - platform: pulse_meter
    pin: D2
    name: "House Electricity Meter kw"
#    device_class: energy
    internal_filter: 35ms
    unit_of_measurement: 'kW'
    filters:
      - multiply: 0.015    #works out at 4000 pulses a minute
    total:
      name: "House Electricity Meter Total"
      device_class: energy
      unit_of_measurement: 'kWh'
      accuracy_decimals: 2
      filters:
        - multiply: 0.001

One thought - have I got the multiplier right for the total value? I had to lower the kw value from 0.04 (1000/60s) to 0.015 (4000/60s). Didn’t think I needed to change the total value?

Figured it out - I was on the right track with the Total multiplier - this also needed to be set for 4000 pulses, so changed to 0.00025 and we’re working correctly again.

Speaking on the discord:
kW multiplier is 60 / [number of pulses per kWh]. In my case: 60/4000=0.015
kWh (Total) is 1 / [number of pulses per kWh]. Again, 1/4000=0.00025

At least it makes sense to me now!

1 Like