home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
74.2k stars 31.16k forks source link

integration srp_energy has state class total_increasing, but its state is not strictly increasing #132192

Open derekmartell opened 1 day ago

derekmartell commented 1 day ago

The problem

My HA logs asked me to post a bug report, but I'm actually unsure what the log is about. The error occurred during the night, I believe while it was updating.. I'm not sure that the srp energy integration is working properly in the first place, because the graphs seem quite odd and as if they only update a few times per 24 hours - I believe that's not proper operation, but I haven't been able to understand if it's working properly or not.

What version of Home Assistant Core has the issue?

core-2024.11.3

What was the last working version of Home Assistant Core?

core-2024.11.3

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Sensor

Link to integration documentation on our website

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

Diagnostics information

home-assistant_srp_energy_2024-12-03T17-34-19.159Z.log

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:317
integration: Sensor (documentation, issues)
First occurred: December 2, 2024 at 12:20:10 AM (1 occurrences)
Last logged: December 2, 2024 at 12:20:10 AM

Entity sensor.srp_energy_home_energy_usage from integration srp_energy has state class total_increasing, but its state is not strictly increasing. Triggered by state 26.9 (27.0) with last_updated set to 2024-12-02T07:16:43.428464+00:00. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+srp_energy%22

Additional information

I wasn't able to reproduce the issue, but I included the log file anyways. I only enabled debugging, reloaded the srp integration, disabled debugging, and uploaded this log here.

I feel there's an issue with the srp integration in the first place based on the choppy graphs, but I don't understand what the expected proper operation of an energy integration should look like yet. so forgive me if this is an issue more with the srp energy integration.

home-assistant[bot] commented 1 day ago

Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration (sensor) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `sensor` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign sensor` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


sensor documentation sensor source (message by IssueLinks)