core icon indicating copy to clipboard operation
core copied to clipboard

Tibber Pulse data (polling) seems not recover by itself after Tibber Pulse is back on-line after been off-line for a while.

Open RicardP opened this issue 2 years ago • 98 comments

The problem

Power consumption etc available by Tibber Pulse (P1) Wifi dongle, via Tibber cloud service to HA, wont recover without MANUALLY RELOADING Tibber integration if the Pulse dongle been off-line for sertain time.

What version of Home Assistant Core has the issue?

2022.8.2

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Container

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

RicardP avatar Aug 08 '22 21:08 RicardP

This is also true if the Tibber API does not respond for some reason (down) or in case of a 429 response code.

alexanderwink avatar Sep 06 '22 14:09 alexanderwink

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! (message by CodeOwnersMention)


tibber documentation tibber source (message by IssueLinks)

It seems to also be true if Home Assistant has an unreliable Internet connection. I'll try to take a look at it (it happens daily at my place).

knutfh avatar Sep 28 '22 07:09 knutfh

This is happening frequently for me too, would be nice if there was a way to resolve it.

ZyberSE avatar Oct 14 '22 12:10 ZyberSE

Happening with me to, have to reload intrigation all the time

Ontrackx avatar Oct 16 '22 12:10 Ontrackx

Started to happen to me too, began for about a week ago. Have to manually reload the integration for it to work again.

StoricU avatar Oct 17 '22 18:10 StoricU

Same problem here, no unstable connection in my end. Don't have any logging to help with atm

large avatar Oct 21 '22 14:10 large

Same here, have to reload almost every day for a couple of weeks now.

Wilsson2000 avatar Oct 21 '22 19:10 Wilsson2000

Same for me, happened 2022-10-20 21:48:58 and 2022-10-22 23:05:31 Central European Time. No sign of error in ordinary log. Manual reload solves problem.

imist avatar Oct 23 '22 08:10 imist

Same for me, fails roughly every other day and requires a restart of home assistant.

erikosvaldsson avatar Oct 23 '22 12:10 erikosvaldsson

FWIW: happened again last night at 2022-10-23 22:07:48 CET.

imist avatar Oct 24 '22 05:10 imist

Don't know how useful this is, but the same thing happened for me at around exactly the same time - 22:07:24 CET. Then I got a a few readings from 22:20:04 to 22:22:24 and then it was "permanently" down and I had to reload the integration and then it went down again at around 02:02:25. So the theory that it doesn't handle a temporarily outage from Tibber seems reasonable.

mflage avatar Oct 24 '22 06:10 mflage

I too had an outage at 2022-10-23 22:07:24 CET. This is likely due to Tibber not responding for some reason, as suggested my @mflage. Blueprint automations that reload the service does not seem to have any effect - I have to manually reload the integration to get it running again.

knutfh avatar Oct 24 '22 07:10 knutfh

Blueprint automations that reload the service does not seem to have any effect - I have to manually reload the integration to get it running again.

Just had an outage a few minutes ago (10:05:00), but my automation was able to recover from it:

alias: Reload Tibber if we have stale readings
description: ""
trigger:
  - platform: template
    value_template: >-
      {{ now() - states.sensor.<entity>.last_updated >
      timedelta(minutes=5) }}
action:
  - service: homeassistant.reload_config_entry
    data: {}
    target:
      entity_id: <entity>
mode: single

This automation will reload the integration referenced by entity_id if .last_updated hasn't updated in 5 minutes. I also want to expand on this automation to use all four Tibber devices as input - as it's of course valid that one of them loses internet connectivity for any number of reasons, and that shouldn't be enough to just reload the whole integration.

mflage avatar Oct 24 '22 08:10 mflage

Same problem as listed above. I've restarted integration several times today, and after the last reset it worked for only a few minutes. My GF has the same setup, but strangely it works just fine for her.

VidarJuvik avatar Oct 24 '22 15:10 VidarJuvik

Also seen this issue. Tibber sensors stalls, CPU usage goes high, restart integration and it works again.

whohencode avatar Oct 25 '22 06:10 whohencode

Tibber integration is very unstable lately. Stops every day.

torge70 avatar Oct 25 '22 08:10 torge70

Same problem here and restart the integration if no new report in 5 minutes (Flow in Node-RED).

Is there any additional data that we can provide to help narrow down the problem?

strelniece avatar Oct 25 '22 08:10 strelniece

Hi, same issue for me since a couple of days back. CPU goes 100 % and I need to restart the integration manually, no data received.

Is anyone looking into that? Unfortunately not much in the logs, only thing I can see is:

2022-10-26 06:26:34.583 ERROR (MainThread) [homeassistant] Error doing job: Task was destroyed but it is pending!

Around the time when this happens, don't know if it is connected though.

enricojonas avatar Oct 26 '22 05:10 enricojonas

Have the same problem. One with Watty and one with Pulse. Both have stable internet connections. Hope this gets fixed soon as most of my use of HA is dependent on the Tibber integration.

tfsjohan avatar Oct 26 '22 06:10 tfsjohan

@Danielhiversen Did you note this issue? I am sorry but I think we need your help here to find a solution, many users have same critical problem.

Thank you for your support and nice work!

RicardP avatar Oct 26 '22 09:10 RicardP

It is on my todo list, but currently not a high priority for me to spend time on this

Danielhiversen avatar Oct 26 '22 09:10 Danielhiversen

It eats kWh as CPU goes 100% ...

enricojonas avatar Oct 26 '22 10:10 enricojonas

I think we need to try and figure out why this is not a more common problem than 23 comments reflect. At first I thought I had this problem due to some rate-limiting, as I was polling the Tibber API from two different HA installations. But after disabling the second HA and I still was experiencing this issue, I went searching for answers and stumbled across this - rather old - thread.

I suspect this doesn't happen to all of the users of the Tibber integration, so maybe we should try and find the common factor for all of us? I'm myself using Tibber on three different locations where I have a subscription to their electricity as well and then a fourth and last location where I've only added a Tibber Pulse, but where I'm only using this for monitoring. I have added the last location after these issues started, so it's not related to that.

I don't have the exact date and time for when I first experienced this, but I suspect it's been going on for at least 3 or 4 weeks, maybe even longer.

mflage avatar Oct 26 '22 11:10 mflage

I think we need to try and figure out why this is not a more common problem than 23 comments reflect. At first I thought I had this problem due to some rate-limiting, as I was polling the Tibber API from two different HA installations. But after disabling the second HA and I still was experiencing this issue, I went searching for answers and stumbled across this - rather old - thread.

I suspect this doesn't happen to all of the users of the Tibber integration, so maybe we should try and find the common factor for all of us? I'm myself using Tibber on three different locations where I have a subscription to their electricity as well and then a fourth and last location where I've only added a Tibber Pulse, but where I'm only using this for monitoring. I have added the last location after these issues started, so it's not related to that.

I don't have the exact date and time for when I first experienced this, but I suspect it's been going on for at least 3 or 4 weeks, maybe even longer.

I spotted this error but it might be fixed by upcoming 2022.10.6. https://github.com/Danielhiversen/pyTibber/issues/207 But I haven't tested it yet.

kklem0 avatar Oct 26 '22 11:10 kklem0

Happens to me a few times a day but repaira often on its own. I realize it most for the "consumption current hour" sensor. Today I made the attached screen dump:

image

(In the end it is the manual restart)

anhaff avatar Oct 26 '22 12:10 anhaff

Just happened again to me:

image

Logger: homeassistant
Source: runner.py:119
First occurred: 1:07:28 AM (30 occurrences)
Last logged: 3:22:57 PM

Error doing job: Task was destroyed but it is pending!

I have enabled more logging now, let's see next time it happens.

enricojonas avatar Oct 26 '22 14:10 enricojonas

Danielhiversen/pyTibber#207

My guess is that this is not due to rate limits. This data (power and accumulated power etc) are received via a graphql subscription, hence pushed from Tibber. I would guess that rate limits only applies to polling data via graphql queries.

My guess is that the subscription is lost, for some reason, and the home assistant implementation does not handle this.

And, by the way, I also need to restart my HA tibber integration almost every day, since the "current power consumption" does not update.

NiklasRamstrom avatar Oct 26 '22 15:10 NiklasRamstrom

Same for me. Until it's fixed I'm trying an automation to reload Tibber if processor use exceeds a certain percent.

sportopeden avatar Oct 26 '22 17:10 sportopeden

My cpu % does not seam to be affected, it stays the same (around 20%) even when Tibber Pulse stops working.

ZyberSE avatar Oct 26 '22 18:10 ZyberSE