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.

Utility meter ignores tracked sensors increases after restart

See original GitHub issue

The problem

I have a daily utility meter that counts the energy produced by my solar panels. The meter uses as a source a template sensor with state_class: "total_increasing".

The problem is that if for any reason HA is stopped and then restarted, the amount of energy produced when HA was off is not counted by the utility meter, it just resume counting adding to the last reading before HA was shut down. The source sensor instead shows the correct count, taking into account all the energy produced when HA was off. I am pretty sure that this was working fine a couple of months ago.

Here’s the forum post with pictures and configuration: https://community.home-assistant.io/t/utility-meter-skipping-counts-on-total-increasing-sensors/426566

What version of Home Assistant Core has the issue?

2022.5.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Utility Meter

Link to integration documentation on our website

https://www.home-assistant.io/integrations/utility_meter/

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:18 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gfrancescocommented, Jun 3, 2022

Well it depends on how you are reading the meter, people use all kinds of unreliable devices

True, also for my source sensor by the way, but you can fix the source sensor upstream with a template for example, that’s what I did.

In conclusion this is a know limitation, PRs are welcomed 😃

Thanks for confirming this! I’ll have a look at the code 😃

0reactions
schmurgel-tgcommented, Jan 2, 2023

@jrlacharnay I like the idea of ​​the extra options. My smart meter is an ESP32 with 2 IR sensors. Unfortunately, the ESP32 regularly loses the connection because it is in the basement. After that, the Weekly and Daily Utility Meter values ​​are always wrong, although the total consumption is correct.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issue with Utility Meter after rebooting - Configuration
Hi All, I am experiencing some issues with my utility meters. I created a template sensor that counts all my measured plugs, ...
Read more >
Smart Meter Interface - Tasmota
This driver extracts selected values from Smart Meters over various protocols, filters and publishes them to MQTT as regular sensors. This feature is...
Read more >
Electromagnetic tracking in the clinical environment - NCBI - NIH
We did not evaluate any of the tracking systems from Polhemus, as the sensor size used by these systems is on the scale...
Read more >
Fitbit Sense User Manual
Track and analyze exercise with the Exercise app ... Sensors and Components ... The detachable bands on Sense come in a variety of...
Read more >
Molecular electronics sensors on a scalable semiconductor chip
Each sensor circuit (or “pixel”) is a dedicated current meter, ... by increasing salt concentration to screen out electric fields in the ...
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