-
-
Notifications
You must be signed in to change notification settings - Fork 31.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DSMR reader sensor has state class total_increasing, but its state is not strictly increasing #55752
Comments
dsmr_reader documentation |
Hey there @depl0y, mind taking a look at this issue as it has been labeled with an integration ( |
recorder documentation |
2021-12-14 16:05:10 WARNING (Recorder) [homeassistant.components.sensor.recorder] Entity sensor.dsmr_reading_electricity_delivered_2 from integration dsmr_reader has state class total_increasing, but its state is not strictly increasing. Triggered by state 2999.258 with last_updated set to 2021-12-14T15:00:56.217526+00:00. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+dsmr_reader%22 |
Same error here:
|
|
Logger: homeassistant.components.sensor.recorder Entity sensor.dsmr_reading_electricity_delivered_1 from integration dsmr_reader has state class total_increasing, but its state is not strictly increasing. Triggered by state 4553.003 (4553.003) with last_updated set to 2022-02-06T07:23:26.976102+00:00. Entity sensor.dsmr_day_consumption_electricity1 from integration dsmr_reader has state class total_increasing, but its state is not strictly increasing. Triggered by state 2.551 (2.554) with last_updated set to 2022-02-06T07:23:26.077709+00:00. Entity sensor.dsmr_day_consumption_electricity_merged from integration dsmr_reader has state class total_increasing, but its state is not strictly increasing. Triggered by state 2.551 (2.554) with last_updated set to 2022-02-06T07:23:26.063985+00:00. |
Logger: homeassistant.components.sensor.recorder Entity sensor.dsmr_reading_electricity_returned_2 from integration dsmr_reader has state class total_increasing, but its state is not strictly increasing. Triggered by state 1082.053 (1082.055) with last_updated set to 2022-03-17T12:35:44.433586+00:00. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+dsmr_reader%22 |
Same here: Entity sensor.dsmr_reading_electricity_delivered_2 from integration dsmr_reader has state class total_increasing, but its state is not strictly increasing. Triggered by state 100.204 (100.205) with last_updated set to 2022-05-20T17:26:53.939223+00:00. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+dsmr_reader%22 |
I fear this is going to be a difficult one to fix properly. We can't just change the The cause of this issue seems to mostly be slightly invalid readings received from the net meters. The only workaround I can think of right now would be storing the previous value for those sensors and ignoring a new value if it's only off by a certain small percentage. I'm just not sure whether that would be an acceptable solution, as you'd be faking data. I'm mostly surprised by the values from @ArNRDS, as these are larger jumps than any of the other values I've seen so far. The consumption_electricity2 is almost 2% off. If you still have the data: could you maybe check the graph of that entity's value around that time to see whether it was just a short downwards spike in the readings? I'm presuming it jumped up again quite soon afterwards. |
I've got some code running locally that ignores any values that are less than 2% lower than the previous value. This has silenced the warnings completely, while still allowing the resets to 0. For my meter, it seems to have this issue like 5 times per hour. I'm just not certain yet whether this is a desirable solution. |
Had it again a few days back. Will check the graph Logger: homeassistant.components.sensor.recorder Entity sensor.dsmr_reading_electricity_delivered_1 from integration dsmr_reader has state class total_increasing, but its state is not strictly increasing. Triggered by state 217.372 (217.373) with last_updated set to 2022-06-05T00:01:02.860359+00:00. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+dsmr_reader%22 |
This issue wasn't fully resolved with the recent change. There are still other entities that also encounter this behaviour, like |
@Glodenox 75924 is reported and an issue that is going to be resolved. That is a general thing. So the real issue is in the upstream software. This issue does not occur using the same energy meters using the native DSMR integration or, e.g., the native ESPHome components. |
@frenck I'll check with the people of DSMR Reader then. I suspect they're just passing on the data frames they're getting as-is, but maybe there's something else going on. But then it would be best to temporarily(?) remove the TOTAL_INCREASING state class from those other entities as well, as I'm still getting warning logs for some of those. So far I've noticed |
No, it is best if they fix the issue. I've removed the state class from the daily ones. Besides them having this issue more obvious (as they are calculated values), they are also not needed in Home Assistant, as the total increasing lifetime meter values are also provided (and preferred to use for things like energy monitoring in Home Assistant). Removing the state class from daily aggregation is done from that perspective. To me, it looks like they have rounding/calculation issues. I have not come across false readings from any DSMR meter in years. In more spectacular detail: they use the exact same library for parsing the telegrams as we do in our native integration. I'm pretty sure it's a calculation/data processing issue. |
The problem
Entity sensor.dsmr_reading_electricity_delivered_1 from integration dsmr_reader has state class total_increasing, but its state is not strictly increasing
What is version of Home Assistant Core has the issue?
core-2021.9.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
sensor recorder
Link to integration documentation on our website
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Logger: homeassistant.components.sensor.recorder
Source: components/sensor/recorder.py:262
Integration: Sensor (documentation, issues)
First occurred: 22:47:22 (1 occurrences)
Last logged: 22:47:22
Entity sensor.dsmr_reading_electricity_delivered_1 from integration dsmr_reader has state class total_increasing, but its state is not strictly increasing. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+recorder%22
Additional information
No response
The text was updated successfully, but these errors were encountered: