core
core copied to clipboard
Tibber integration failed after upgrade to 2024.9.3
The problem
After the update most Tibber entities do not show up. ( Is unavailable )
- I have no power production installed.
- I can see the data in the Tibber App so there is no problem in data feed.
- Using Watty
What version of Home Assistant Core has the issue?
core-2024.9.3
What was the last working version of Home Assistant Core?
core-2024.8.3
What type of installation are you running?
Home Assistant OS
Integration causing the issue
tibber
Link to integration documentation on our website
https://www.home-assistant.io/integrations/tibber/
Diagnostics information
home-assistant_tibber_2024-09-24T09-49-58.864Z.log config_entry-tibber-19db0f60a05e595f99e41682f2d02a2f.json
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Error in rt_subscribe
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/tibber/home.py", line 461, in _start
data = _add_extra_data(data)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tibber/home.py", line 419, in _add_extra_data
live_data["lastMeterProduction"] = max(0, live_data["lastMeterProduction"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '>' not supported between instances of 'NoneType' and 'int'
Additional information
https://github.com/home-assistant/core/issues/125312
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!
Code owner commands
Code owners of tibber can trigger bot actions by commenting:
@home-assistant closeCloses the issue.@home-assistant rename Awesome new titleRenames the issue.@home-assistant reopenReopen the issue.@home-assistant unassign tibberRemoves the current integration label and assignees on the issue, add the integration domain after the command.@home-assistant add-label needs-more-informationAdd a label (needs-more-information, problem in dependency, problem in custom component) to the issue.@home-assistant remove-label needs-more-informationRemove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.
(message by CodeOwnersMention)
tibber documentation tibber source (message by IssueLinks)
Fixed in latest dev, and will be included in next release
Ok, I was hoping that it was included in todays update
Ohh, then it is not fixed
I tried the work-around mentioned here. And now it works.
Neither of the solutions in this thread so far worked for me unfortunately. But I did manage to "solve" it by changing the following line in home.py:
live_data["lastMeterProduction"] = max(0, live_data["lastMeterProduction"])to
live_data["lastMeterProduction"] = max(0, live_data["lastMeterProduction"] or 0)This way, if lastMeterProduction is null, which seems to be the problem (at least for me), it defaults to 0.
Still same issue here - Tibber not working with Core 2024.9.3 Supervisor 2024.09.1 Operating System 13.1 Frontend 20240909.1
hope that it is fixed with Core 2024.9.4
Ok I solved - or its automatically solved after doing 2 Restarts of HA ... Hm - now it seems working again. Still with Core 2024.9.3 Supervisor 2024.09.1 Operating System 13.1 Frontend 20240909.1
- thx
For me it works fine with 2024.9.4. This obviously doesn't mean that this bug is invalid, it just means that I can't reproduce it, which is very likely caused by the data, Tibber API gives you vs. the data, Tibber API gives me when queried.
Your suggested fix would need to be applied in https://github.com/Danielhiversen/pyTibber. I of course can create a PR there applying your suggestion. However, as I can't properly test it, I'd suggest, you do that @droidgren.
Since the fix was reported by me, I went ahead and created a PR in https://github.com/Danielhiversen/pyTibber.
Still not solved with 2024.10.0
I only get 1 entity with corect data and that is Current price. I have tries my accesstoken in the developer area at tibber and i works fine to poll currentL1, currentL2, currentL3 that is not present for me in the integration.
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/tibber/home.py", line 461, in _start
data = _add_extra_data(data)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tibber/home.py", line 419, in _add_extra_data
live_data["lastMeterProduction"] = max(0, live_data["lastMeterProduction"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '>' not supported between instances of 'NoneType' and 'int'
2024-10-03 14:14:56.455 ERROR (MainThread) [tibber.home] Could not find consumption data.
2024-10-03 14:14:56.570 ERROR (MainThread) [tibber.home] Error in rt_subscribe
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/tibber/home.py", line 461, in _start
data = _add_extra_data(data)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/tibber/home.py", line 419, in _add_extra_data
live_data["lastMeterProduction"] = max(0, live_data["lastMeterProduction"])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '>' not supported between instances of 'NoneType' and 'int'
2024-10-03 14:14:56.699 ERROR (MainThread) [tibber.home] Could not find production data.
I don't think the recent changes in pyTibber has been released yet.
Still not solved with 2024.10.0
I only get 1 entity with corect data and that is Current price. I have tries my accesstoken in the developer area at tibber and i works fine to poll currentL1, currentL2, currentL3 that is not present for me in the integration.
Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/tibber/home.py", line 461, in _start data = _add_extra_data(data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/tibber/home.py", line 419, in _add_extra_data live_data["lastMeterProduction"] = max(0, live_data["lastMeterProduction"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: '>' not supported between instances of 'NoneType' and 'int' 2024-10-03 14:14:56.455 ERROR (MainThread) [tibber.home] Could not find consumption data. 2024-10-03 14:14:56.570 ERROR (MainThread) [tibber.home] Error in rt_subscribe Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/tibber/home.py", line 461, in _start data = _add_extra_data(data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/tibber/home.py", line 419, in _add_extra_data live_data["lastMeterProduction"] = max(0, live_data["lastMeterProduction"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: '>' not supported between instances of 'NoneType' and 'int' 2024-10-03 14:14:56.699 ERROR (MainThread) [tibber.home] Could not find production data.
Same for me. I'm using Watty. Can that be why some are impacted and some not?
Same for me. I'm using Watty. Can that be why some are impacted and some not?
Watty for me as well.
Same for me. Watty here
Watty here as well. No solar panels
Had the same problem, tried restarting HA multiple times without success. Today I just reloaded the Service and it started working again, so maybe give that a try also (Restart Tibber Service)
Same issue for me. And I am also using watty, No solar panels.
Same issue for me aswell, watty and no production.
Had the same problem, tried restarting HA multiple times without success. Today I just reloaded the Service and it started working again, so maybe give that a try also (Restart Tibber Service)
Unfortunately didn't work, just 6 entities show up
I tried with a Pulse and now it works fine. Watty must definetly be the problem.
2024.10.2 and still Tibber don't work...
Same here, Watty with no solar and the sensors are unavailable.
It wont be fixed until next version of pyTibber is released and updated in Home assistant. So just wait.
@Danielhiversen, would you be able to create a new release of pyTibber so it can be updated in Home Assistant and most likely solve this problem?
Home Assistant Core 2024.10.2
Can confirm issues with Watty:
Error in rt_subscribe Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/tibber/home.py", line 461, in _start data = _add_extra_data(data) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/tibber/home.py", line 419, in _add_extra_data live_data["lastMeterProduction"] = max(0, live_data["lastMeterProduction"]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ TypeError: '>' not supported between instances of 'NoneType' and 'int'