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.03k stars 31.06k forks source link

Shelly PM mini gen3: Energy Entity is getting truncated, after a power off. #128347

Open andyblac opened 1 month ago

andyblac commented 1 month ago

The problem

I have a few Shelly PM mini gen3's on kitchen Appliances that I turn off at night, I get error each morning, It seem that the energy usage is getting truncated to 3 decimal places, and resulting the entity getting the state to go lower (3.333867 to 3.333).

Why is the state getting truncated ?, Can this be fixed?

Logger: homeassistant.components.sensor.recorder
Source: components/sensor/recorder.py:317
integration: Sensor (documentation, issues)
First occurred: 13 October 2024 at 16:25:10 (3 occurrences)
Last logged: 08:30:10

Entity sensor.kitchen_air_fryer_energy from integration shelly has state class total_increasing, but its state is not strictly increasing. Triggered by state 3.333 (3.333867) with last_updated set to 2024-10-13T15:24:16.963027+00:00. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+shelly%22
Entity sensor.kitchen_water_heater_energy from integration shelly has state class total_increasing, but its state is not strictly increasing. Triggered by state 3.002 (3.002951) with last_updated set to 2024-10-14T06:44:57.850867+00:00. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+shelly%22
Entity sensor.kitchen_microwave_energy from integration shelly has state class total_increasing, but its state is not strictly increasing. Triggered by state 1.971 (1.971325) with last_updated set to 2024-10-14T07:28:35.593547+00:00. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+shelly%22

What version of Home Assistant Core has the issue?

core-2024.10.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

Shelly

Link to integration documentation on our website

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

Diagnostics information

home-assistant_shelly_2024-10-14T10-25-20.675Z.log

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 1 month ago

Hey there @balloob, @bieniu, @thecode, @chemelli74, @bdraco, mind taking a look at this issue as it has been labeled with an integration (shelly) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `shelly` 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 shelly` 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)


shelly documentation shelly source (message by IssueLinks)