Error trying to install Hive Thermostat integration

I’ve had the Hive thermostat integration working for some time without problems, however, I now receive the following errors when I boot Home Assistant:

2022-07-21 11:14:01 WARNING (SyncWorker_2) [homeassistant.loader] We found a custom integration hive which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant

2022-07-21 11:15:33 ERROR (MainThread) [homeassistant.config_entries] Error setting up entry [email protected] for hive

File "/config/custom_components/hive/__init__.py", line 89, in async_setup_entry
devices = await hive.session.startSession(hive_config)

File "/usr/local/lib/python3.10/site-packages/apyhiveapi/session.py", line 494, in startSession

File "/usr/local/lib/python3.10/site-packages/apyhiveapi/session.py", line 417, in getDevices
await self.hiveRefreshTokens()

File "/usr/local/lib/python3.10/site-packages/apyhiveapi/session.py", line 304, in hiveRefreshTokens

File "/usr/local/lib/python3.10/site-packages/apyhiveapi/api/hive_auth_async.py", line 548, in refresh_token

I haven’t had the need to use the integration for a little while, and I’ve also recently changed my Broadband supplier with associated different router so IP address change for the Hive Hub.
However, I can log in to my Hive account from a web browser.
I’ve removed the Hive integration completely, then reinstalled it, adding my username and password during the installation, but still get the above errors.
Any ideas how to fix this?

image

Are on HA v2022.6.6 or later ?

Also you need to enable 2fa in Hive app now as the Auth has changed. Have a search on here, there’s lots of posts about it

1 Like

Ah, success, thanks for that. It was the 2fa that was required.
Really grateful for your help.

1.make sure 2fa is enabled in the app
2 log out of the app
3 log back in youll get the text enter that on the app
4 install the HA hive intergration log in and youll now get the 2fa promt
(if you have it already installed uninstall it and restart HA and then reinstall
happy days