core icon indicating copy to clipboard operation
core copied to clipboard

Tibber Integration is missing Sensor Entities since 2024.10.0

Open jupppo opened this issue 1 year ago • 4 comments

The problem

After Updating to 2024.10.0 I get only 6 out of the 25 Sensor Entities from the tibber integration. The tibber mobile app shows all data, but in the home assistant integration there are only 6 basics left, the rest is unavailable!

What version of Home Assistant Core has the issue?

2024.10.0

What was the last working version of Home Assistant Core?

2024.9.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

When restoring to 2024.9.3 ist works fine again

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

jupppo avatar Oct 04 '24 11:10 jupppo

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.
  • @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)


tibber documentation tibber source (message by IssueLinks)

home-assistant[bot] avatar Oct 04 '24 11:10 home-assistant[bot]

I have the same issue and get the following erros in my logs

Logger: tibber.home
Source: /usr/local/lib/python3.12/site-packages/tibber/home.py:475
First occurred: 9:18:31 AM (3 occurrences)
Last logged: 10:55:28 AM

Error in rt_subscribe
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/tibber/home.py", line 456, in _start
    async for _data in self._tibber_control.realtime.sub_manager.session.subscribe(
  File "/usr/local/lib/python3.12/site-packages/gql/client.py", line 1478, in subscribe
    raise TransportQueryError(
gql.transport.exceptions.TransportQueryError: {'message': 'unable to start stream api:c55779b5d5a343579ad52a8c9c0c48ae for device c55779b5-d5a3-4357-9ad5-2a8c9c0c48ae; userId a5a0787a-c3bc-4597-a8aa-acaf76431225', 'locations': [{'line': 2, 'column': 3}], 'path': ['liveMeasurement']}

VPelt avatar Oct 04 '24 11:10 VPelt

I have the same issue too.. Running the following version now.. Upgraded from 2024.10.0 yesterday. Also had the issue in that release. I tried now to remove the integration and add it again and check my API key from Tibber. When adding the integration again i only got 6 entities.

2024-10-09 08_59_03-Settings – Home Assistant

Core 2024.10.1 Supervisor 2024.10.0 Operating System 13.1 Frontend 20241002.2

Tried rollback to Core 2024.9.3 Supervisor 2024.10.0 Operating System 13.1 Frontend 20240909.1

Did not solve my issue.. will try further rollbacks.

Did a rollback to: Core 2024.7.3 Supervisor 2024.10.0 Operating System 13.1 Frontend 20240710.0

Everything is finally working now... 22 entities instead of 6. entity

Meph79 avatar Oct 09 '24 07:10 Meph79

I do have the same issue on 2024.3, sometimes it works but then after a time it kicks back to only 5 entities

nreese1994 avatar Oct 09 '24 12:10 nreese1994

Did an upgrade today to 2024.10.2 and I ran into same issue.

Dankar82 avatar Oct 16 '24 16:10 Dankar82

Same for me since 2024.10.2 - only 6 sensor left.

machtandrebel avatar Oct 21 '24 09:10 machtandrebel

Reloading does seem te help here.

It seems to 'crash' during startup

VPelt avatar Oct 21 '24 12:10 VPelt

Any news on this? I had tibber running quit stable for the past 2-3 weeks. Today (with high PV production if thats relevant in any case) it crashed again back to only 6 enteties. API is stable and works according to dev site of tibber (tested) - also app shows proper values.

Installierte Version 2024.3.0

running NOT on 24.10

germanico94 avatar Oct 22 '24 09:10 germanico94

I have the same issue as well, only 5 sensors and nothing from watty integration even if i can see it from calling the tibber api with my token without any problems.

Jamnoran avatar Oct 23 '24 09:10 Jamnoran

I'm on 2024.10.3 and all my Tibber entities are unavailable. Reload does not help, restart does not help(have not tried removing and re-adding the integration, would hope it would not be necessary ).

I see the following in the logs:

Logger: tibber.realtime
Source: /usr/local/lib/python3.12/site-packages/tibber/realtime.py:156
First occurred: 08:33:32 (4 occurrences)
Last logged: 08:35:47

Error in watchdog connect, retrying in 26 seconds, 2
Error in watchdog connect, retrying in 28 seconds, 3
Error in watchdog connect, retrying in 30 seconds, 4
Error in watchdog connect, retrying in 35 seconds, 5
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/asyncio/tasks.py", line 520, in wait_for
    return await fut
           ^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/websockets/legacy/client.py", line 656, in __await_impl__
    await protocol.handshake(
  File "/usr/local/lib/python3.12/site-packages/websockets/legacy/client.py", line 316, in handshake
    status_code, response_headers = await self.read_http_response()
                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/websockets/legacy/client.py", line 134, in read_http_response
    status_code, reason, headers = await read_response(self.reader)
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/websockets/legacy/http.py", line 120, in read_response
    status_line = await read_line(stream)
                  ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/websockets/legacy/http.py", line 194, in read_line
    line = await stream.readline()
           ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 568, in readline
    line = await self.readuntil(sep)
           ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 660, in readuntil
    await self._wait_for_data('readuntil')
  File "/usr/local/lib/python3.12/asyncio/streams.py", line 545, in _wait_for_data
    await self._waiter
asyncio.exceptions.CancelledError

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/tibber/realtime.py", line 148, in _watchdog
    await self.sub_manager.connect_async()  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/gql/client.py", line 789, in connect_async
    await self.transport.connect()
  File "/usr/local/lib/python3.12/site-packages/gql/transport/websockets_base.py", line 490, in connect
    self.websocket = await asyncio.wait_for(
                     ^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/asyncio/tasks.py", line 519, in wait_for
    async with timeouts.timeout(timeout):
  File "/usr/local/lib/python3.12/asyncio/timeouts.py", line 115, in __aexit__
    raise TimeoutError from exc_val
TimeoutError

and

Logger: tibber.home
Source: /usr/local/lib/python3.12/site-packages/tibber/home.py:475
First occurred: 08:44:51 (1 occurrences)
Last logged: 08:44:51

Error in rt_subscribe
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/tibber/home.py", line 456, in _start
    async for _data in self._tibber_control.realtime.sub_manager.session.subscribe(
  File "/usr/local/lib/python3.12/site-packages/gql/client.py", line 1475, in subscribe
    async for result in inner_generator:
  File "/usr/local/lib/python3.12/site-packages/gql/client.py", line 1372, in _subscribe
    async for result in inner_generator:
  File "/usr/local/lib/python3.12/site-packages/gql/transport/websockets_base.py", line 388, in subscribe
    answer_type, execution_result = await listener.get()
                                    ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/gql/transport/websockets_base.py", line 56, in get
    raise item
gql.transport.exceptions.TransportServerError: No pong received after 15.0 seconds

The tibber app is working no problem.

jadesoturi avatar Oct 25 '24 06:10 jadesoturi

Update: after 20 min I got most of the entities back, but the following sensors are still unavailable (Yes, I have an active Tibber subscription): image

jadesoturi avatar Oct 25 '24 07:10 jadesoturi

Update: Did a core update of HA today and after reboot all tibber entities are missing except the ones that were missing last time (price,montly cost etc). Something very borked? Debug logging shows nothing of value. All 200 OK responses etc.

jadesoturi avatar Nov 04 '24 14:11 jadesoturi

@jadesoturi Tibber currently has some issues: https://status.tibber.com/incidents/g931v9qpvh0t

https://status.tibber.com/incidents/13wgycsjmzhr

Could you try again when it is resolved? If it still is an issue, could you share the diagnostic info?

Danielhiversen avatar Nov 04 '24 16:11 Danielhiversen

@jadesoturi Tibber currently has some issues: https://status.tibber.com/incidents/g931v9qpvh0t

https://status.tibber.com/incidents/13wgycsjmzhr

Could you try again when it is resolved? If it still is an issue, could you share the diagnostic info?

Thanks for the heads up. Yeah, once it was resolved everything came back, even the entities that were missing in my first post. So all is good now! :)

jadesoturi avatar Nov 04 '24 17:11 jadesoturi

Price level does not deliver: NORMAL/CHEAP/VERY_CHEAP/EXPENSIVE/VERY_EXPENSIVE anymore but Price level: HIGH that would mean that is now fetching PriceRatingLevel instead? Is that expected? I could not find a change for that.

justnx avatar Nov 07 '24 17:11 justnx

Very same here with HA 2024.11. The logs show this stacktrace:

tibber: Error on device update! Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 728, in _async_add_entity await entity.async_device_update(warning=False) File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1302, in async_device_update await self.async_update() File "/usr/src/homeassistant/homeassistant/components/tibber/sensor.py", line 404, in async_update await self._fetch_data() File "/usr/src/homeassistant/homeassistant/components/tibber/sensor.py", line 428, in _fetch_data await self._tibber_home.update_info_and_price_info() File "/usr/local/lib/python3.12/site-packages/tibber/home.py", line 208, in update_info_and_price_info await self.update_price_info() File "/usr/local/lib/python3.12/site-packages/tibber/home.py", line 241, in update_price_info self.last_data_timestamp = dt.datetime.fromisoformat(data[-1]["time"]) ~~~~^^^^ IndexError: list index out of range

tFaster avatar Nov 07 '24 19:11 tFaster

Price level does not deliver: NORMAL/CHEAP/VERY_CHEAP/EXPENSIVE/VERY_EXPENSIVE anymore but Price level: HIGH that would mean that is now fetching PriceRatingLevel instead? Is that expected? I could not find a change for that.

I am in the process of setting up the tibber integration right now and came across the same issue, glad i'm not the only one.

watn3y avatar Nov 07 '24 20:11 watn3y

Price level does not deliver: NORMAL/CHEAP/VERY_CHEAP/EXPENSIVE/VERY_EXPENSIVE anymore but Price level: HIGH that would mean that is now fetching PriceRatingLevel instead? Is that expected? I could not find a change for that.

I am in the process of setting up the tibber integration right now and came across the same issue, glad i'm not the only one.

See the same here. maybe a new issue?

tobbensoft avatar Nov 08 '24 06:11 tobbensoft

Just updated to 2024.11.0. None of the sensors were available (out of 6, no Pulse). Reloading and restarting did not help. After re-adding the integration and waiting a minute, the sensors were back and working again.

ThePatricide avatar Nov 08 '24 06:11 ThePatricide

+1

alex90do avatar Nov 08 '24 07:11 alex90do

Just updated to 2024.11.0. None of the sensors were available (out of 6, no Pulse). Reloading and restarting did not help. After re-adding the integration and waiting a minute, the sensors were back and working again.

Thanks for this hint! In my case it even works again after just clicking deactivate and then activate again!

tFaster avatar Nov 08 '24 08:11 tFaster

I had kind of the same problem. In my case all sensors were working except the 'electricity_price'. After removing and re-adding the tibber integration the sensor works again. Thank you @ThePatricide

tomra avatar Nov 09 '24 06:11 tomra

I'm on HA 2024.11.1 and I encountered the same problem. Only 6 of former 22 entities. Reloading or reinstalling the integration doesn't change a thing. Sometimes I only get 4 entities after reinstalling.

Boeroer avatar Nov 09 '24 09:11 Boeroer

Same here on 2024.11.1 , have lost all entities, reloading, reinstall and even created a new tibber api token without any result, Integration not working at all for me now. Tibber APP is working normally and Pulse ist transmitting data to the Tibber app.

Budokai0815 avatar Nov 09 '24 10:11 Budokai0815

Unfortunately, the problem is back again since this morning. So reinstall was just a temporary fix for me.

ThePatricide avatar Nov 09 '24 12:11 ThePatricide

Please check with the Tibber API explorer if your realtime consumption is enabled. Use the query:

{viewer{homes{features{realTimeConsumptionEnabled}}}}

developer.tibber.com/explorer

If it says false: that's the problem.

Boeroer avatar Nov 09 '24 12:11 Boeroer

@Boeroer can you give some more guidance on what the Tibber API explorer is and how to access it? I only use the integration for realtime pricing, I do not have a Pulse (rather, my own P1 DSMR reader).

ThePatricide avatar Nov 09 '24 12:11 ThePatricide

Go to: https://developer.tibber.com/explorer

log in if you aren't already

paste into the left side: {viewer{homes{features{realTimeConsumptionEnabled}}}}

and press the play button. On the right side there will be a JSON answer. If it says:

[...] "realTimeConsumptionEnabled": false [...] then that's the problem.

It shouldn't matter which reader you use. If you were able to see the real time data and get the entitities in the HA integration before then this value was originally set to "true". If it's now "false" then that's the problem.

PS: for me it was false and I had the same problems - until 5 minutes ago it miraculously chaged to "true" again. I suspect Tibber is fiddling around with the API...

Boeroer avatar Nov 09 '24 12:11 Boeroer

Thanks for the directions @Boeroer, very clear. Just tested and 'false' is also true for me ;). Just to be clear, there is no way to change this ourselves? Do I need to reach out to Tibber for this?

ThePatricide avatar Nov 09 '24 12:11 ThePatricide

{ "data": { "viewer": { "homes": [ { "features": { "realTimeConsumptionEnabled": true } } ] } } }

Still not working. Wait, reloaded the Integration, now back to normal ...

Thanks for pointing to the API Explorer.

Budokai0815 avatar Nov 09 '24 12:11 Budokai0815