home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.63k stars 30.78k forks source link

Hive integration suddenly stopped working #43890

Closed ovid-io closed 3 years ago

ovid-io commented 3 years ago

The problem

Around 20 hours ago all hive services and sensors disappeared as if the integration didn't exist. There was no restarts/changes to HA on my part.

2FA is not enabled, hive app works fine.

There are no logs in HA whatsoever even with debug mode enabled.

Environment

Problem-relevant configuration.yaml

hive:
  username: !secret hive_user
  password: !secret hive_pass
  scan_interval: 1

Traceback/Error logs

Nothing whatsoever

Additional information

The last time similar happened it was hive auth URL changing, same behaviour on HA side - integration disappearing of the face of the earth with nothing about any issues in logs whatsoever

probot-home-assistant[bot] commented 3 years ago

hive documentation hive source (message by IssueLinks)

mansbo commented 3 years ago

I have the same problem. Very similar in nature to when Hive changed the URL for the API a month or so back - could they have changed it again?

probot-home-assistant[bot] commented 3 years ago

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

ovid-io commented 3 years ago

I have found a solution, just need to install https://github.com/Pyhive/HA-Hive-Custom-Component and checkout tag 2020.1_b21, then remove native component configuration from configuration.yaml and set up hive integration from UI

CJA59UK commented 3 years ago

I have exactly this issue. Completely lost all my Hive devices and entities

mansbo commented 3 years ago

The solution proposed by @ovid-io seems to work - I now have my Hive devices back. Just need to go through and change all my automations etc. to refer to the new names. Thanks!

Qu3uk commented 3 years ago

Similar issue however I do get a log entry.

Error importing platform config_flow from integration hive to set up hive configuration entry: No module named 'homeassistant.components.hive.config_flow'

sebastianovide commented 3 years ago

I have found a solution, just need to install https://github.com/Pyhive/HA-Hive-Custom-Component and checkout tag 2020.1_b21, then remove native component configuration from configuration.yaml and set up hive integration from UI

thanks @ovid-io . This is a nice workaround. The only problem is that we need to keep monitoring this issue until when it is fixed to then re enable the native component...

webmonkey commented 3 years ago

Perhaps the maintainers would consider replacing the current core hive code with PYhive/HA-Custom-Component. It seems to be far more actively maintained.

KJonline commented 3 years ago

@webmonkey myself and @Rendili maintain both of them the official one and the custom version. The reason we have not moved the custom version over to the official one is we where working on the new hive authentication in a beta and has bugs in it. Unfortunately hive deprecated there auth while this was still in beta. Once we have ironed out the bugs in the custom version we will port it over to the official repo.

trickyg719 commented 3 years ago

Hi - Is there a date when the issue will be fixed - thanks for the work!

trickyg719 commented 3 years ago

I have found a solution, just need to install https://github.com/Pyhive/HA-Hive-Custom-Component and checkout tag 2020.1_b21, then remove native component configuration from configuration.yaml and set up hive integration from UI

thanks @ovid-io . This is a nice workaround. The only problem is that we need to keep monitoring this issue until when it is fixed to then re enable the native component...

I am new to Home Assistant so not sure if I have followed this correctly but I have installed this custom component and still not working. I get a warning saying I am running a custom untested integration but no devices get discovered.

dannywi11imas commented 3 years ago

Hi All (First-time poster and new to HA)

I've been running HIVE now on HA on a Raspberry Pi 3+ for almost a year. I consider myself very much new to HA. I noticed since upgrading to 2020.12.1 that all my hive cards and sensors stopped working. I've upgraded to the new Odroid N2+ Blue. and I'm still experiencing the same issue.

I've tried @ovid-io suggestion but still, no card or anything discovered. I can log in to my HIVE account on the web and using my app. so everything seems fine there.

Is this something to do with the HA's update or is it HIVE themselves, that have changed things with the login process?

trickyg719 commented 3 years ago

I am in same position. Does anyone still have hive integration working?

KJonline commented 3 years ago

@trickyg719 & @dannywi11imas Currently the official Hive integration is broken. There is a custom integration that can be installed as mentioned above. I am working on an update now to the official integration but I cannot give you timescales as to which release it will go in, as there is a review process to complete first.

trickyg719 commented 3 years ago

Thanks I have tried the custom integration but it does not detect the sensors. I do not have much experience with HA so not sure if it something I Doing wrong

KJonline commented 3 years ago

@trickyg719 What configuration do you have is it via YAML?

trickyg719 commented 3 years ago

[image: image.png]

On Mon, 28 Dec 2020 at 15:33, Khole notifications@github.com wrote:

@trickyg719 https://github.com/trickyg719 What configuration do you have is it via YAML?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/43890#issuecomment-751752974, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASCXCQV64U6IJ3RG32UU4MTSXCQNFANCNFSM4ULYTYKQ .

KJonline commented 3 years ago

@trickyg719 it looks like you tried uploading an image but it failed all I can see is the text "image"

trickyg719 commented 3 years ago

Configure a default setup of Home Assistant (frontend, api, etc)

default_config:

Text to speech

tts:

group: !include groups.yaml automation: !include automations.yaml script: !include scripts.yaml scene: !include scenes.yaml

Example configuration.yaml entry

hive: username: xxxxxxxx password: xxxxxx

On Mon, 28 Dec 2020 at 17:55, Khole notifications@github.com wrote:

@trickyg719 https://github.com/trickyg719 it looks like you tried uploading an image but it failed all I can see is the text "image"

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/43890#issuecomment-751808170, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASCXCQUL6L4APTLNRC6L46DSXDBAJANCNFSM4ULYTYKQ .

KJonline commented 3 years ago

@trickyg719 you will need to remove that config from your yaml files and setup hive via the UI

trickyg719 commented 3 years ago

OK thanks 😊

On Mon, 28 Dec 2020, 19:24 Khole, notifications@github.com wrote:

@trickyg719 https://github.com/trickyg719 you will need to remove that config from your yaml files and setup hive via the UI

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/43890#issuecomment-751835933, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASCXCQSD2AZI3IXO5JXE5H3SXDLL3ANCNFSM4ULYTYKQ .

trickyg719 commented 3 years ago

I have now installed via HACS but it would not let me configure via UI (hive integration not showing )so I have configured the yaml method but devices still not getting discovered

Hive custom component is showing in HACS

Hive

On Mon, 28 Dec 2020, 19:31 Richard Golding, richard.golding@zen.co.uk wrote:

OK thanks 😊

On Mon, 28 Dec 2020, 19:24 Khole, notifications@github.com wrote:

@trickyg719 https://github.com/trickyg719 you will need to remove that config from your yaml files and setup hive via the UI

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/43890#issuecomment-751835933, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASCXCQSD2AZI3IXO5JXE5H3SXDLL3ANCNFSM4ULYTYKQ .

KJonline commented 3 years ago

@trickyg719 have you restarted after installing? Sometime it requires you to hard clear your browser cookies and session data. This is because some browsers cache it.

trickyg719 commented 3 years ago

Thanks for you help

I installed the latest beta code and now can see the sensors

Cheers Richard

On Mon, 28 Dec 2020, 22:02 Khole, notifications@github.com wrote:

@trickyg719 https://github.com/trickyg719 have you restarted after installing? Sometime it requires you to hard clear your browser cookies and session data. This is because some browsers cache it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/43890#issuecomment-751877645, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASCXCQUAE3WWO4XO6457PBLSXD56HANCNFSM4ULYTYKQ .

dannywi11imas commented 3 years ago

@trickyg719 & @dannywi11imas Currently the official Hive integration is broken. There is a custom integration that can be installed as mentioned above. I am working on an update now to the official integration but I cannot give you timescales as to which release it will go in, as there is a review process to complete first.

I've tried and installed the HACS, custom component. but still don't see any of my entities.

@trickyg719 you will need to remove that config from your yaml files and setup hive via the UI

when you mention this, are you talking about removing the HIVE username and password from the "configuration.yaml" file??

As I've done this and still done see any entities on my dashboard. I've added it back in and still done see any.

I'm lost on this now. sorry guys still learning this.

trickyg719 commented 3 years ago

I have got mine working by installing the latest beta version of hive custom components using HACS

I edited the configuration.yaml file to include the hive username and password as per manual method of configuring

On Mon, 28 Dec 2020, 23:05 dannywi11imas, notifications@github.com wrote:

@trickyg719 https://github.com/trickyg719 & @dannywi11imas https://github.com/dannywi11imas Currently the official Hive integration is broken. There is a custom integration that can be installed as mentioned above. I am working on an update now to the official integration but I cannot give you timescales as to which release it will go in, as there is a review process to complete first.

I've tried and installed the HACS, custom component. but still don't see any of my entities.

@trickyg719 https://github.com/trickyg719 you will need to remove that config from your yaml files and setup hive via the UI

when you mention this, are you talking about removing the HIVE username and password from the "configuration.yaml" file??

As I've done this and still done see any entities on my dashboard. I've added it back in and still done see any.

I'm lost on this now. sorry guys still learning this.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/43890#issuecomment-751890881, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASCXCQSZYSS7CIB3TQHHPHTSXEFNHANCNFSM4ULYTYKQ .

dannywi11imas commented 3 years ago

I have got mine working by installing the latest beta version of hive custom components using HACS I edited the configuration.yaml file to include the hive username and password as per manual method of configuring

Hi thanks for getting back @trickyg719, I must admit, I wasn't installing the beta version before but now I've installed the latest beta version and also tried the one listed at the start of this post (2020.1_b21 by ovid-io). but still no cards on my dashboard nor in my developer tools list.

I've added my login details to my configuration.yaml file. still no results.

I'm running this on the new HA Blue. and would ask if that would be the issue, but on my old Raspberry Pi 3+ I'm still having the same issue.

I guess I'll have to wait for the update on the next HA install.

dannywi11imas commented 3 years ago

Hi All,

I fixed it now,

I installed it manually at one stage and created a folder with the name "Hive". then reading more information found that I could have installed the custom components using HACS. I did this and found that it created a new folder called "hive" so there must have been a conflict there.

I deleted both and uninstalled and reinstalled via HACS, now everything is up and running. new user error. thanks anyway I'm sure I'll be back for more help. lol

trickyg719 commented 3 years ago

Good stuff. Blind leading the blind 🤣🤣

On Tue, 29 Dec 2020, 00:52 dannywi11imas, notifications@github.com wrote:

Hi All,

I fixed it now,

I installed it manually at one stage and created a folder with the name "Hive". then reading more information found that I could have installed the custom components using HACS. I did this and found that it created a new folder called "hive" so there must have been a conflict there.

I deleted both and uninstalled and reinstalled via HACS, now everything is up and running. new user error. thanks anyway I'm sure I'll be back for more help. lol

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/43890#issuecomment-751908937, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASCXCQQJFM3QYUQUFL2ACX3SXER43ANCNFSM4ULYTYKQ .

dannywi11imas commented 3 years ago

Good stuff. Blind leading the blind 🤣🤣

I know, fun to learn, a nightmare when you come across the most simple of faults.

part of the learning curve, I guess

Thanks for your help, sorry to be a nuisance with my issues, but hope it helps someone else out that's just starting out, like me.

trickyg719 commented 3 years ago

Yeah no what you mean - Next step is to get it working from my Garmin so I can turn heating on when out on my bike. Good job there is nothing else to do at moment

On Tue, 29 Dec 2020 at 13:21, dannywi11imas notifications@github.com wrote:

Good stuff. Blind leading the blind 🤣🤣

I know, fun to learn, a nightmare when you come across the most simple of faults.

part of the learning curve, I guess

Thanks for your help, sorry to be a nuisance with my issues, but hope it helps someone else out that's just starting out, like me.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/43890#issuecomment-752072499, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASCXCQRVLN2ZQWCXRYFSJ4TSXHJVVANCNFSM4ULYTYKQ .

dannywi11imas commented 3 years ago

That sounds interesting. wouldn't have thought you could do that from a Garmin.

Good luck.

I'm still at the stage of setting things up and trying out Node-Red

dannywi11imas commented 3 years ago

@trickyg719 & @dannywi11imas Currently the official Hive integration is broken. There is a custom integration that can be installed as mentioned above. I am working on an update now to the official integration but I cannot give you timescales as to which release it will go in, as there is a review process to complete first.

Hi KJonline, just wondering will you be incorporating any of the extra beta extras into the new updates. i.e. battery status, I find this being useful to know when to replace the batteries or just a notification when it at a percentage to buy new ones.

Thanks for your efforts there well received.

KJonline commented 3 years ago

@dannywi11imas yes the battery sensors will be going over to the official one along with some other new ones.

dannywi11imas commented 3 years ago

Nice work,

I'm just setting up a Node-Red flow now, to check the battery status. So adding that in, will be handy.

Thanks again.

r00nster commented 3 years ago

Any update on when the HA built-in integration will be fixed ?

leighellis commented 3 years ago

Would also like to know a rough ETA, I can't get HACS beta working so would like to know whether to keep trying or just wait

KJonline commented 3 years ago

We are currently still working on this as releases are now once a month you are probably looking at March release could be April depending on the review process.

leighellis commented 3 years ago

Thanks, that's great :)

trickyg719 commented 3 years ago

I followed the HACS install method closely and works fine

Got it linked up so I can control heating from my garmin watch when away from home

On Tue, 19 Jan 2021, 10:51 leighellis, notifications@github.com wrote:

Would also like to know a rough ETA, I can't get HACS beta working so would like to know whether to keep trying or just wait

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/home-assistant/core/issues/43890#issuecomment-762763269, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASCXCQXQSYWKRLO7QQLSHPTS2VP3FANCNFSM4ULYTYKQ .