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

HA 2023.3 Tibber #89058

Closed
Birdman86 opened this issue Mar 2, 2023 · 5 comments
Closed

HA 2023.3 Tibber #89058

Birdman86 opened this issue Mar 2, 2023 · 5 comments
Assignees
Milestone

Comments

@Birdman86
Copy link

Birdman86 commented Mar 2, 2023

The problem

Just updated to 2023.3 from 2023.2 and the Tibber integration has stopped working.
Tried to delete and add it again and it accepts it but no entities show up.

It was working just fine with 2023.2.

What version of Home Assistant Core has the issue?

2023.3

What was the last working version of Home Assistant Core?

2023.2

What type of installation are you running?

Home Assistant OS

Integration causing the issue

Tibber

Link to integration documentation on our website

No response

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

@mitchese
Copy link
Contributor

mitchese commented Mar 2, 2023

This also happened to me, and reverting back to 2023.2.4 makes it work again.

The error from the log is as follows

Logger: homeassistant.components.sensor
Source: components/tibber/sensor.py:269
Integration: Sensor (documentation, issues)
First occurred: 7:49:39 AM (1 occurrences)
Last logged: 7:49:39 AM

Error while setting up tibber platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 293, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/tibber/sensor.py", line 269, in async_setup_entry
    await home.rt_subscribe(
  File "/usr/local/lib/python3.10/site-packages/tibber/tibber_home.py", line 448, in rt_subscribe
    await self._tibber_control.rt_connect()
  File "/usr/local/lib/python3.10/site-packages/tibber/__init__.py", line 110, in rt_connect
    await self.sub_manager.connect_async()
  File "/usr/local/lib/python3.10/site-packages/gql/client.py", line 632, in connect_async
    await self.transport.connect()
  File "/usr/local/lib/python3.10/site-packages/gql/transport/websockets_base.py", line 490, in connect
    self.websocket = await asyncio.wait_for(
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 445, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 650, in _wrap_awaitable
    return (yield from awaitable.__await__())
  File "/usr/local/lib/python3.10/site-packages/websockets/legacy/client.py", line 659, in __await_impl_timeout__
    return await asyncio.wait_for(self.__await_impl__(), self.open_timeout)
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 445, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.10/site-packages/websockets/legacy/client.py", line 666, in __await_impl__
    await protocol.handshake(
  File "/usr/local/lib/python3.10/site-packages/websockets/legacy/client.py", line 332, in handshake
    raise InvalidStatusCode(status_code, response_headers)
websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 404

Putting in debug mode isn't super helpful,

2023-03-02 22:09:34.583 DEBUG (MainThread) [tibber.tibber_home] Waiting for rt_connect
2023-03-02 22:09:35.584 DEBUG (MainThread) [tibber.tibber_home] Waiting for rt_connect
2023-03-02 22:09:36.585 DEBUG (MainThread) [tibber.tibber_home] Waiting for rt_connect
2023-03-02 22:09:37.587 DEBUG (MainThread) [tibber.tibber_home] Waiting for rt_connect

@GrandAmmor
Copy link

GrandAmmor commented Mar 2, 2023

+1 issue and fixed with ha core update --version 2023.2.4

@Birdman86
Copy link
Author

This also happened to me, and reverting back to 2023.2.4 makes it work again.

The error from the log is as follows

Logger: homeassistant.components.sensor
Source: components/tibber/sensor.py:269
Integration: Sensor (documentation, issues)
First occurred: 7:49:39 AM (1 occurrences)
Last logged: 7:49:39 AM

Error while setting up tibber platform for sensor
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 293, in _async_setup_platform
    await asyncio.shield(task)
  File "/usr/src/homeassistant/homeassistant/components/tibber/sensor.py", line 269, in async_setup_entry
    await home.rt_subscribe(
  File "/usr/local/lib/python3.10/site-packages/tibber/tibber_home.py", line 448, in rt_subscribe
    await self._tibber_control.rt_connect()
  File "/usr/local/lib/python3.10/site-packages/tibber/__init__.py", line 110, in rt_connect
    await self.sub_manager.connect_async()
  File "/usr/local/lib/python3.10/site-packages/gql/client.py", line 632, in connect_async
    await self.transport.connect()
  File "/usr/local/lib/python3.10/site-packages/gql/transport/websockets_base.py", line 490, in connect
    self.websocket = await asyncio.wait_for(
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 445, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 650, in _wrap_awaitable
    return (yield from awaitable.__await__())
  File "/usr/local/lib/python3.10/site-packages/websockets/legacy/client.py", line 659, in __await_impl_timeout__
    return await asyncio.wait_for(self.__await_impl__(), self.open_timeout)
  File "/usr/local/lib/python3.10/asyncio/tasks.py", line 445, in wait_for
    return fut.result()
  File "/usr/local/lib/python3.10/site-packages/websockets/legacy/client.py", line 666, in __await_impl__
    await protocol.handshake(
  File "/usr/local/lib/python3.10/site-packages/websockets/legacy/client.py", line 332, in handshake
    raise InvalidStatusCode(status_code, response_headers)
websockets.exceptions.InvalidStatusCode: server rejected WebSocket connection: HTTP 404

Yeah, I also went back to 2023.2 and it works fine now.
Some of my automations depend on this so I can't update until this has been fixed...

@home-assistant
Copy link

home-assistant bot commented Mar 2, 2023

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 Renames 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)

@mib1185 mib1185 added this to the 2023.3.2 milestone Mar 2, 2023
@Birdman86
Copy link
Author

Just upgraded to 2023.3.1 and can confirm that it is now working again.

@github-actions github-actions bot locked and limited conversation to collaborators Apr 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants