Skip to content
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

Tibber integration get's stuck (sensor data not updated until integration is reloaded) #83723

Closed
4homeassistant opened this issue Dec 10, 2022 · 13 comments · Fixed by #84065
Closed
Assignees

Comments

@4homeassistant
Copy link

The problem

The Tibber sensor data get stuck a couple of times a day and do not recover until integration is reloaded. I could not exactly determine wether this is related with the 2022.12 version or not. In the past weeks the logs reported some issues but all sensors recovered again. Now they definitely get stuck and won't come back.

There has been an issue that has been closed but people still report further issues.
#76491

I'll share logs later.

What version of Home Assistant Core has the issue?

2022.12.1

What was the last working version of Home Assistant Core?

2022.11.x

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

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

@home-assistant
Copy link

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 close Closes the issue.
  • @home-assistant rename Awesome new title Change the title of the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign tibber Removes the current integration label and assignees on the issue, add the integration domain after the command.

(message by CodeOwnersMention)


tibber documentation
tibber source
(message by IssueLinks)

@4homeassistant 4homeassistant changed the title Tibber integrations get's stuck (sensor data not updated until integration is reloaded) Tibber integration get's stuck (sensor data not updated until integration is reloaded) Dec 10, 2022
@michis0806
Copy link

Same here. It seems as if tibber is currently having massive problems with the infrastructure...

@4homeassistant
Copy link
Author

Same here. It seems as if tibber is currently having massive problems with the infrastructure...

That's obviously the case but the issue itself seems to be related to error handling within the integration. While the Tibber app shows live consumption, the sensor just shows "unavailable" until the integration is reloaded.

@michis0806
Copy link

I‘m getting wobbly data in the tibber app as well… in addition to this, a reload of the integration made the whole consumption-entities unavailable, leaving only the pricing-entities :/

@Danielhiversen
Copy link
Member

Errors in the log?

@jml002021
Copy link

Logger: tibber.tibber_home
Source: /usr/local/lib/python3.10/site-packages/tibber/tibber_home.py:439
First occurred: 11. desember 2022 kl. 11:58:05 (2 occurrences)
Last logged: 10:37:03

Tibber connection closed, will reconnect in 51 seconds
Tibber connection closed, will reconnect in 32 seconds
Traceback (most recent call last):
File "/usr/local/lib/python3.10/site-packages/tibber/tibber_home.py", line 422, in _start
async for data in self._tibber_control.sub_manager.session.subscribe(
File "/usr/local/lib/python3.10/site-packages/gql/client.py", line 1064, in subscribe
async for result in inner_generator:
File "/usr/local/lib/python3.10/site-packages/gql/client.py", line 960, in _subscribe
async for result in inner_generator:
File "/usr/local/lib/python3.10/site-packages/gql/transport/websockets_base.py", line 388, in subscribe
answer_type, execution_result = await listener.get()
File "/usr/local/lib/python3.10/site-packages/gql/transport/websockets_base.py", line 56, in get
raise item
gql.transport.exceptions.TransportClosed: Websocket GraphQL transport closed by user

@Danielhiversen
Copy link
Member

Then it does not reconnect after 32s?

@jml002021
Copy link

No tibber in HA must be reloaded, my tibber app is updating and working fine. Here is another error maybe associated:

Logger: tibber
Source: components/tibber/sensor.py:253
First occurred: 11:10:50 (1 occurrences)
Last logged: 11:10:50

Received non-compatible response [{'message': 'http://internal-prod-tibber-internal-1016681583.eu-west-1.elb.amazonaws.com:3001/customers/xxxxxxxxx Response code 502 (Bad Gateway)', 'locations': [{'line': 7, 'column': 19}], 'path': ['viewer', 'home', 'features', 'realTimeConsumptionEnabled'], 'extensions': {'code': 'INTERNAL_SERVER_ERROR', 'exception': {'statusCode': 502, 'innerError': {'name': 'HTTPError', 'code': 'ERR_NON_2XX_3XX_RESPONSE', 'timings': {'start': 1670839850044, 'socket': 1670839850044, 'lookup': 1670839850045, 'connect': 1670839850046, 'upload': 1670839850046, 'response': 1670839850047, 'end': 1670839850047, 'phases': {'wait': 0, 'dns': 1, 'tcp': 1, 'request': 0, 'firstByte': 1, 'download': 0, 'total': 3}}}}}}, {'message': 'http://internal-prod-tibber-internal-1016681583.eu-west-1.elb.amazonaws.com:3001/customers/13511083-9eae-44ad-aa8d-9a76cb78ba93 Response code 502 (Bad Gateway)', 'locations': [{'line': 30, 'column': 15}], 'path': ['viewer', 'home', 'owner'], 'extensions': {'code': 'INTERNAL_SERVER_ERROR', 'exception': {'statusCode': 502, 'innerError': {'name': 'HTTPError', 'code': 'ERR_NON_2XX_3XX_RESPONSE', 'timings': {'start': 1670839850044, 'socket': 1670839850044, 'lookup': 1670839850045, 'connect': 1670839850046, 'upload': 1670839850046, 'response': 1670839850047, 'end': 1670839850047, 'phases': {'wait': 0, 'dns': 1, 'tcp': 1, 'request': 0, 'firstByte': 1, 'download': 0, 'total': 3}}}}}}]

@jml002021
Copy link

Skjermbilde2

@4homeassistant
Copy link
Author

That's what I see in the logs as well. I have a hard time filtering these entries since I enabled debugging for everything I found with 'tibber' and Tibber had more outages than uptime the past 2 days.

@Danielhiversen
Copy link
Member

Hmm, this is hard to debug since I am not able to reproduce it here.

@angoyd
Copy link

angoyd commented Dec 14, 2022

Same problem here, gets stuck randomly anything we can assist with to help the debugging?

@bergetun
Copy link

Same problem here. Have to reboot HA to get the tibber integration to show live. Not possible to just reload the integration anymore. RPI. HA Code version 2022.12.6 Have this problem on 3 different HA installation.

Ill buy you a beer if you get this integration stable again <3

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants