question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

energy meter goes negative every day

See original GitHub issue

Anybody knows why this happens? Happens every day when energy dashboard is updating. image

` - create_group: Powercalc All Hvac entities: - entity_id: sensor.powercalc_hvac_varmepumpe_stue power_sensor_id: sensor.volkedalsveien41stue_current_power

    - entity_id: sensor.powercalc_hvac_varmekabel_bad
      power_sensor_id: sensor.heatit_z_trm3_bad_hovedetasje_electric_consumption_w

    - entity_id: sensor.powercalc_hvac_varmekabel_olander
      power_sensor_id: sensor.heatit_z_trm3_olander_soverom_electric_consumption_w

    - entity_id: climate.varmeovn1
      fixed:
        states_power:
          hvac_action|heating: 1200
          hvac_action|idle: 2.5`

Issue Analytics

  • State:open
  • Created 9 months ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
drawgascommented, Dec 19, 2022

After two days of “misbehaviour” it’s back to normal. So one day it went negative and the other - positive (not the exact amount) and now for two days it’s ok while no updates or changes where done. If it occurs once again, I’ll try as you, @bramstroker , suggest and will post the results. Thanks for a fast answer

0reactions
bramstrokercommented, Dec 19, 2022

Not sure about this, nothing really changed in the calculation / logic etc in latest versions.

Your problem is the individual energy sensors misbehaving somehow, so you should first focus on investigating that further. The powercalc group logic just sums all the kWh from individual entities. So when 3 entities add 0.9 kWh the group will also increase by 2.7. Could you try creating a second energy sensor for virsus desine power using built-in HA helper Rieman sum (Devices & Entities -> Helpers)? Powercalc creates similar sensor under the hood and uses all the logic from HA. When this second energy sensor created with HA helpers is behaving exactly the same the bug is in HA codebase, and we should submit a bug upstream in homeassistant core repository.

When the HA helper one is correctly calculating and the one with powercalc not then we can further investigate.

What do you mean with the configuation “show nothing”? That’s expected behaviour when this is a light profile from built-in library. You can only alter some settings, but the power values itself are dynamically calculated from the known measurements from the library.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Solved] Negative values of energy? - Configuration
An energy sensor keeps increasing throughout the day as power is used like this: Energy (kWh) - can be used: energy.
Read more >
What does it mean when your electric bill is negative? - Quora
Sometimes the electric company estimates your bill because the weather was so bad, they did not send the meter person down your street...
Read more >
Electronic energy meters' false readings almost six times ...
Some electronic energy meters can give false readings that are up to 582% higher than actual energy consumption. This emerged from a study ......
Read more >
Can I enter a negative meter for energy I produce on site and ...
Yes. Negative values may be entered directly off your outgoing sub-meter. If you are excluding part of your property, see this FAQ for...
Read more >
WHY MY PREPAID METERS HAVE NEGATIVE BALANCE.
... from electricity consumers that, their prepaid meters are reading negatives which shouldn't be so.. The reason why your prepaid met...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found