core icon indicating copy to clipboard operation
core copied to clipboard

Tibber integration is not updated / devices removed

Open unik42 opened this issue 1 year ago • 58 comments

The problem

Tibber does not update any sensors. After removal of Tibber and reinstallalation, no devices or entities are populated. It is quite simply blank. 2022-10-26 (2)

What version of Home Assistant Core has the issue?

Home Assistant 2022.10.4

What was the last working version of Home Assistant Core?

Home Assistant 2022.10.4

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

unik42 avatar Oct 26 '22 17:10 unik42

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

home-assistant[bot] avatar Oct 26 '22 17:10 home-assistant[bot]

Could you share the diagnostic information? Or any relevant logs?

Danielhiversen avatar Oct 26 '22 18:10 Danielhiversen

If you tell me where to look.

unik42 avatar Oct 26 '22 18:10 unik42

  "data": {
    "homes": {}
  }

So seems that the Tibber api does not return any homes for your account.

Danielhiversen avatar Oct 26 '22 18:10 Danielhiversen

I have one home for my Tibber account and one secondary for some heaters at my cabin. Could it be that the reason is that I have two homes?

unik42 avatar Oct 26 '22 18:10 unik42

Do not think so.

Do you see your homes if you test this query at https://developer.tibber.com/explorer ?

{
  viewer {
    homes {
      address {
        address1
      }
    }
  }
}

Danielhiversen avatar Oct 26 '22 18:10 Danielhiversen

Yes. Both homes show up.

unik42 avatar Oct 26 '22 18:10 unik42

Hmm, then I do not know what is wrong.

Danielhiversen avatar Oct 26 '22 18:10 Danielhiversen

I'll contact Tibber and ask them to remove the cabin from the app.

unik42 avatar Oct 26 '22 18:10 unik42

Same issue for me. Problem started at 2022-10-26 07:33 (UTC+2).

patstave avatar Oct 27 '22 10:10 patstave

Same problem here, sensors not updated. Have not reinstalled integration but sensors starts working after reload of integration. Updating of sensors stops after a while (3-4 hours), have to reload again. Very strange.

uffeg68 avatar Oct 27 '22 11:10 uffeg68

Any Tibber errors in the log?

Danielhiversen avatar Oct 27 '22 12:10 Danielhiversen

Same issue for me. Error in the homeassistant.log: 2022-10-27 22:54:52.348 ERROR (MainThread) [tibber] Error connecting to Tibber, resp code: 429 2022-10-27 22:54:52.391 ERROR (MainThread) [tibber] Error connecting to Tibber, resp code: 429 2022-10-27 22:54:52.393 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.tibber 2022-10-27 22:54:52.395 INFO (MainThread) [homeassistant.components.notify] Setting up notify.tibber

biopixen avatar Oct 27 '22 20:10 biopixen

Error connecting to Tibber, resp code: 429

Indicate that the integration hit some rate limiting, and is blocked.

Danielhiversen avatar Oct 28 '22 05:10 Danielhiversen

When I try the query now, it only says: "Network error: Failed to fetch"

unik42 avatar Oct 28 '22 05:10 unik42

I have the exact same problem. @Danielhiversen just reach out if you need anything to troubleshoot.

klaparp avatar Oct 28 '22 06:10 klaparp

Both me and a friend experiences the same. The Tibber-integration suddenly stops receiving/polling data, but after a restart of the integration it starts again. Have Tibber started rate-limiting?

Found this in the logs: 2022-10-25 22:16:39.482 ERROR (MainThread) [tibber] Error connecting to Tibber, resp code: 502

After this occurred, the integration never did fetch any new data until I manually restarted a couple days later.

jornodberg avatar Oct 28 '22 07:10 jornodberg

It seems the problem ocurred at the same time for everyone so this is probebly related to something tibber did. Sholudnt be too hard to figure out

klaparp avatar Oct 28 '22 08:10 klaparp

Unsure if the problem I have is the same, but I have a fresh install of homeassistant. When I added the tibber integration, it seems to be successfully added, but no devices show up. When I reload the tibber integration I get the following line in the console log

2022-10-28 08:40:11.285 ERROR (MainThread) [tibber] Error connecting to Tibber, resp code: 400

I also tried to run the gql query from this comment: https://github.com/home-assistant/core/issues/81037#issuecomment-1292441755, and it did successfully show my home.

I am unsure if this is the same issue as the rest in the thread or a new, as I seem to be the only one with the 400 status codes Adding it here since all the other symptoms are the same

chhenni avatar Oct 28 '22 08:10 chhenni

Where do you see the error message? The same happens to mine but I cant find where the error message should be.

unik42 avatar Oct 28 '22 09:10 unik42

Where do you see the error message? The same happens to mine but I cant find where the error message should be.

Easiest is under settings, on the menu there there is an entry named System. Within that menu you should find Logs

chhenni avatar Oct 28 '22 09:10 chhenni

Thanks!

Logger: tibber Source: components/tibber/init.py:55 First occurred: 10:10:53 (1 occurrences) Last logged: 10:10:53

Error connecting to Tibber, resp code: 429

unik42 avatar Oct 28 '22 09:10 unik42

Same error.

Logger: tibber Source: components/tibber/init.py:55 First occurred: 11:46:51 (1 occurrences) Last logged: 11:46:51

Error connecting to Tibber, resp code: 429

blazern1980 avatar Oct 28 '22 09:10 blazern1980

Same issue here as well happened just now 13:15 1minute after reloading the integration.. It never recovers after an error.

Logger: graphql_subscription_manager Source: components/tibber/init.py:88 First occurred: 13:15:35 (1 occurrences) Last logged: 13:15:35

Websocket is closed.

Gaaten avatar Oct 28 '22 11:10 Gaaten

429 = Too Many Requests

Tibber has definitively started rate-limiting...

My friend gets this error fast on a house with solar panel (more requests), while at my home the plugin works longer before beeing dropped (fewer requests).

jornodberg avatar Oct 28 '22 13:10 jornodberg

I guess there's some throttling going on at Tibber. This happens to me to and I need to deactivate and activate Tibber to start receiving data again. Unfortunately it doesn't seem to be a way to programatically disable/enable an integration to work around the root cause of this issue. I guess the third best option would be to schedule a reboot of HA.

larswestman avatar Oct 29 '22 09:10 larswestman

I got this message (in Norwegian) from Tibber:

Hei igjen!HA integrasjonen driftes av en privatperson på egent initiativ og har ingen tilknyttning direkte til Tibber, men vi ynskjer å hjelpe så langt kunnskapen vår strekker til Anbefaler å prøve å styre mot HomeID, du kan finne den ved å skrive inn koden under i API explorer: https://developer.tibber.com/explorer {

viewer {

homes{

id

appNickname

}

login

name

}

}

unik42 avatar Oct 29 '22 09:10 unik42

You can read here about their rate limiting: https://developer.tibber.com/docs/overview

larswestman avatar Oct 29 '22 09:10 larswestman

This seems to be a decent workaround for any integration that needs a reload: https://github.com/home-assistant/core/issues/76491#issuecomment-1288634887

larswestman avatar Oct 29 '22 09:10 larswestman