Open Joba0112 opened 4 months ago
Hey there @danielhiversen, mind taking a look at this issue as it has been labeled with an integration (tibber
) you are listed as a code owner for? Thanks!
(message by CodeOwnersMention)
tibber documentation tibber source (message by IssueLinks)
It is the value reported by Tibber api
The electrity meter gives a '-1' when there is no production. This counter is not in use, because the electricity meter counts only in one direction (selling/Consumption). Am 13.03.2024 um 00:11 schrieb Daniel Hjelseth Høyer @.***>: It is the value reported by Tibber api
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: @.***>
Same issue and interessted in a solution :)
"2024-04-10 15:48:34.837 WARNING (Recorder) [homeassistant.components.sensor.recorder] Entity sensor.last_meter_production_wolfi from integration tibber has state class total_increasing, but its state is negative. Triggered by state -1 with last_updated set to 2024-04-10T13:34:59.999999+00:00. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+tibber%22"
Could someone try this fix? https://github.com/home-assistant/core/compare/issue_%23113176?expand=1
@Joba0112 @steff94 Could you please test if the fix works for you?
I am not able to reproduce it here, so I need some help to test it.
I have the same problem as @Joba0112 and would be happy to assist. Not sure if I applied your change correctly (I just quickly ssh'd into my HA instance and changed that line of code in the tibber component), but after changing the version for pyTibber and restarting my HA the problem seems to have disappeared: the value of the last_meter_production entity went from -1 to 0 after the restart.
Maybe I was to quick about that one. I just re-checked my logs and found this error (again). So, I need to test this any other way (then I would need some help to test it) or the problem lies elsewhere?
`Logger: homeassistant.components.sensor.recorder Quelle: components/sensor/recorder.py:325 Integration: Sensor (Dokumentation, Probleme) Erstmals aufgetreten: 15:45:10 (1 Vorkommnisse) Zuletzt protokolliert: 15:45:10
Entity sensor.last_meter_production_XYZ_123 from integration tibber has state class total_increasing, but its state is negative. Triggered by state -1 with last_updated set to 2024-06-06T13:39:59.999999+00:00. Please create a bug report at https://github.com/home-assistant/core/issues?q=is%3Aopen+is%3Aissue+label%3A%22integration%3A+tibber%22`
I also noticed some other/new (?) errors regarding the tibber integration since I changed that file. I will undo the change for now, I guess...
The problem
I read out the tibber-data and i'm not producing electricity. So the electricity meter gives back:
sensor: production on the last mile: -1![IMG_8786](https://github.com/home-assistant/core/assets/156595644/52492587-1fbb-47de-92b3-a23292a5bcb8)
[tibber gave a new name!]
HA can't calculate with value -1.
What version of Home Assistant Core has the issue?
newest
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant Container
Integration causing the issue
tibber
Link to integration documentation on our website
https://www.home-assistant.io/integrations/tibber
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information