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 Power consumption unavailible #50513

Closed
nolenjohan opened this issue May 12, 2021 · 34 comments
Closed

Tibber Power consumption unavailible #50513

nolenjohan opened this issue May 12, 2021 · 34 comments
Assignees

Comments

@nolenjohan
Copy link

The problem

Since version 2021.5 the Tibber integration does not show a value of power consumption, it's just "unavailible". Verified on three (3) instances of Home Assistant running 2021.5.x

What is version of Home Assistant Core has the issue?

2021.5.2

What was the last working version of Home Assistant Core?

2021.4.6

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

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

image

@Danielhiversen
Copy link
Member

It will be fixed in 2021.6.
If I have time I will make a hotfix for 2021.5

@probot-home-assistant
Copy link

Hey there @Danielhiversen, mind taking a look at this issue as its been labeled with an integration (tibber) you are listed as a codeowner for? Thanks!
(message by CodeOwnersMention)

@Danielhiversen
Copy link
Member

A workaround is to manually run: pip install graphql-subscription-manager==0.3.6

@Schelin78
Copy link

Hi, where/how do I run "pip install graphql-subscription-manager==0.3.6 "?

@Knodd
Copy link
Contributor

Knodd commented May 14, 2021

i ran pip install graphql-subscription-manager==0.3.6 in the ssh addon.
The install was successful, but after restart I still get unavailable status for the real time consumption sensor.

HA log:

2021-05-14 11:43:35 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform tibber
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 558, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 580, in add_to_platform_finish
await self.async_added_to_hass()
File "/usr/src/homeassistant/homeassistant/components/tibber/sensor.py", line 181, in async_added_to_hass
await self._tibber_home.rt_subscribe(self.hass.loop, self._async_callback)
File "/usr/local/lib/python3.8/site-packages/tibber/__init__.py", line 622, in rt_subscribe
await self._tibber_control.rt_connect(loop)
File "/usr/local/lib/python3.8/site-packages/tibber/__init__.py", line 70, in rt_connect
self.sub_manager = SubscriptionManager(
TypeError: __init__() takes 3 positional arguments but 4 were given
2021-05-14 11:43:35 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up tibber platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 239, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 558, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 580, in add_to_platform_finish
await self.async_added_to_hass()
File "/usr/src/homeassistant/homeassistant/components/tibber/sensor.py", line 181, in async_added_to_hass
await self._tibber_home.rt_subscribe(self.hass.loop, self._async_callback)
File "/usr/local/lib/python3.8/site-packages/tibber/__init__.py", line 622, in rt_subscribe
await self._tibber_control.rt_connect(loop)
File "/usr/local/lib/python3.8/site-packages/tibber/__init__.py", line 70, in rt_connect
self.sub_manager = SubscriptionManager(
TypeError: __init__() takes 3 positional arguments but 4 were given

@stenkarlsen
Copy link

i ran pip install graphql-subscription-manager==0.3.6 in the ssh addon.
The install was successful, but after restart I still get unavailable status for the real time consumption sensor.

HA log:

2021-05-14 11:43:35 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform tibber
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 558, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 580, in add_to_platform_finish
await self.async_added_to_hass()
File "/usr/src/homeassistant/homeassistant/components/tibber/sensor.py", line 181, in async_added_to_hass
await self._tibber_home.rt_subscribe(self.hass.loop, self._async_callback)
File "/usr/local/lib/python3.8/site-packages/tibber/__init__.py", line 622, in rt_subscribe
await self._tibber_control.rt_connect(loop)
File "/usr/local/lib/python3.8/site-packages/tibber/__init__.py", line 70, in rt_connect
self.sub_manager = SubscriptionManager(
TypeError: __init__() takes 3 positional arguments but 4 were given
2021-05-14 11:43:35 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up tibber platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 239, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 558, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 580, in add_to_platform_finish
await self.async_added_to_hass()
File "/usr/src/homeassistant/homeassistant/components/tibber/sensor.py", line 181, in async_added_to_hass
await self._tibber_home.rt_subscribe(self.hass.loop, self._async_callback)
File "/usr/local/lib/python3.8/site-packages/tibber/__init__.py", line 622, in rt_subscribe
await self._tibber_control.rt_connect(loop)
File "/usr/local/lib/python3.8/site-packages/tibber/__init__.py", line 70, in rt_connect
self.sub_manager = SubscriptionManager(
TypeError: __init__() takes 3 positional arguments but 4 were given

Same issue here..

@EvTheFuture
Copy link

A workaround is to manually run: pip install graphql-subscription-manager==0.3.6

Thanks, worked like a charm when done in the homeassistant docker container.

@Schelin78
Copy link

Added in core-2021.5.4 ?

@Knodd
Copy link
Contributor

Knodd commented May 15, 2021

A workaround is to manually run: pip install graphql-subscription-manager==0.3.6

Thanks, worked like a charm when done in the homeassistant docker container.

Hi @EvTheFuture
Could you please explain how to do this " in the homeassistant docker container."?
I tried both with ssh HA addon and on my Debian host system but none of them worked (Debian reported pip not installed)

@crackers81
Copy link

A workaround is to manually run: pip install graphql-subscription-manager==0.3.6

Thanks, worked like a charm when done in the homeassistant docker container.

Hi @EvTheFuture
Could you please explain how to do this " in the homeassistant docker container."?
I tried both with ssh HA addon and on my Debian host system but none of them worked (Debian reported pip not installed)

Same problem here on my rpi3

@crackers81
Copy link

Added in core-2021.5.4 ?

Dont work in 2021.5.4 either

@EvTheFuture
Copy link

EvTheFuture commented May 15, 2021

Hi @EvTheFuture
Could you please explain how to do this " in the homeassistant docker container."?

The easiest way if you're not familiar with docker containers and cli is to use the addon portainer. (Make sure that "Protection mode" is unchecked and that you have a big red warning text saying protection mode is disabled)

Open the web UI for portainer and navigate to the container named homeassistant. Start a CLI interface to the container and run the command there.

If you have access to the host system you should be able to do something like: docker exec -it homeassistant bash

And in that prompt run the pip command

It should also be possible to run the pip command directly instead of first starting bash by replacing bash with the pip command.

@crackers81
Copy link

Hi @EvTheFuture
Could you please explain how to do this " in the homeassistant docker container."?

The easiest way if you're not familiar with docker containers and cli is to use the addon portainer. (Make sure that "Protection mode" is unchecked and that you have a big red warning text saying protection mode is disabled)

Open the web UI for portainer and navigate to the container named homeassistant. Start a CLI interface to the container and run the command there.

If you have access to the host system you should be able to do something like: docker exec -it homeassistant bash

And in that prompt run the pip command

It should also be possible to run the pip command directly instead of first starting bash by replacing bash with the pip command.

Cant find addon portainer in my hassio.

@oywino
Copy link

oywino commented May 15, 2021

Hi, it looks like something in 2021.5.2 broke the Tibber integration. If I revert back to 2021.5.1 it works ok.
This is the error message I get:

2021-05-12 11:20:07 ERROR (MainThread) [homeassistant.components.sensor] Error adding entities for domain sensor with platform tibber
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 558, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 580, in add_to_platform_finish
await self.async_added_to_hass()
File "/usr/src/homeassistant/homeassistant/components/tibber/sensor.py", line 181, in async_added_to_hass
await self._tibber_home.rt_subscribe(self.hass.loop, self._async_callback)
File "/usr/local/lib/python3.8/site-packages/tibber/__init__.py", line 622, in rt_subscribe
await self._tibber_control.rt_connect(loop)
File "/usr/local/lib/python3.8/site-packages/tibber/__init__.py", line 70, in rt_connect
self.sub_manager = SubscriptionManager(
TypeError: __init__() takes 3 positional arguments but 4 were given
2021-05-12 11:20:07 ERROR (MainThread) [homeassistant.components.sensor] Error while setting up tibber platform for sensor
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 239, in _async_setup_platform
await asyncio.gather(*pending)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 364, in async_add_entities
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 558, in _async_add_entity
await entity.add_to_platform_finish()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 580, in add_to_platform_finish
await self.async_added_to_hass()
File "/usr/src/homeassistant/homeassistant/components/tibber/sensor.py", line 181, in async_added_to_hass
await self._tibber_home.rt_subscribe(self.hass.loop, self._async_callback)
File "/usr/local/lib/python3.8/site-packages/tibber/__init__.py", line 622, in rt_subscribe
await self._tibber_control.rt_connect(loop)
File "/usr/local/lib/python3.8/site-packages/tibber/__init__.py", line 70, in rt_connect
self.sub_manager = SubscriptionManager(
TypeError: __init__() takes 3 positional arguments but 4 were given

@Knodd
Copy link
Contributor

Knodd commented May 15, 2021

Thanks @EvTheFuture! Running it from cli in homeassistant docker container via portainer on my host system and then restart worked!
Now all I have to do is fix the template energy calculations and utility meters, my energy use so far in 2021 is. now over 1 million kWh for some reason

@crackers81 you have to intstall the portainer addon, but it only works if home assistant is installed in a docker container i think

@Schelin78
Copy link

Added in core-2021.5.5 ?

@kimmilde
Copy link

kimmilde commented May 19, 2021

No, not fixed in 2021.5.5

exec into your docker, replace homeassisant with your containername:

docker exec -it homeassistant /bin/bash
pip install graphql-subscription-manager==0.3.6

@Schelin78
Copy link

Installed and started portainer, where do I find the container named homeassistant ?
20210519_212530

@kimmilde
Copy link

Installed and started portainer, where do I find the container named homeassistant ?
20210519_212530
Never used portainer,
Run
docker ps

@Schelin78
Copy link

Installed and started portainer, where do I find the container named homeassistant ?
20210519_212530
Never used portainer,
Run
docker ps

Is docker in "Add-on Store" ? Can't find it

@Offpiste84
Copy link

Offpiste84 commented May 19, 2021

Installed and started portainer, where do I find the container named homeassistant ?
20210519_212530
Never used portainer,
Run
docker ps

Is docker in "Add-on Store" ? Can't find it

Use terminal in this add-on:
image

@Schelin78
Copy link

Thanks, works now. Tried to do it in add-on "Terminal & SSH" but saw your add-on name in image above and installed that insted. Worked first time 😀

@TheArcturian
Copy link

I did the same thing; installed SSH & Web Terminal, executed the "pip install graphql-subscription-manager==0.3.6"

It ran the installation successfully, but still the real_time sensor doesn´t work. I have rebooted HA.

@oywino
Copy link

oywino commented May 26, 2021

I did:

pip install graphql-subscription-manager==0.3.6

in my HA container, and now everything works OK 👍

@crackers81
Copy link

When will this be fixed for non container users?

@oywino
Copy link

oywino commented May 31, 2021

#50513 (comment)

@Danielhiversen
Copy link
Member

Fixed by #50418 in 2021.6

@crackers81
Copy link

Fixed by #50418 in 2021.6

Its not fixed yet

@EvTheFuture
Copy link

EvTheFuture commented Jun 3, 2021

Fixed by #50418 in 2021.6

Its not fixed yet

Works for me.
The data are now represented as separate sensors instead of everything being attributes to one sensor.

@crackers81
Copy link

Fixed by #50418 in 2021.6

Its not fixed yet

Works for me.
The data are now represented as separate sensors instead of everything being attributes to one sensor.

The update isnt out yet here in Norway.
But i opted in for beta and its fixed there.

@kimmilde
Copy link

kimmilde commented Jun 3, 2021

Fixed by #50418 in 2021.6

Its not fixed yet

Works for me.
The data are now represented as separate sensors instead of everything being attributes to one sensor.

The update isnt out yet here in Norway.
But i opted in for beta and its fixed there.

New updates are released very first wednesday in month at 21.00. I am from norway and have the latest version (2021.6), its working fine now. Remember that there are new sensors at the integration, and the attributes are removed.

@Schelin78
Copy link

Works in 2021.6 but Watt in to the grid is removed only watt from the grid shows. Bad for me as I use it to start charging of the car when I overproduce

@Danielhiversen
Copy link
Member

@Schelin78 Power production is back in 2021.6.3

@Schelin78
Copy link

@Schelin78 Power production is back in 2021.6.3

Great 👍@Danielhiversen

@github-actions github-actions bot locked and limited conversation to collaborators Jul 5, 2021
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