Hive Integration Error in 2022.7.*

Ohhh shoot… I just ordered an Orbit 21004 B-hyve, hoping to deploy with HACS integration. :grimacing:

There was a change not long ago, see the posts here. All fixed now in latest HA and custom component, think you have to turn on 2FA in Hive

1 Like

Thanks for the link, yep, worked for me, just enabled 2FA and then deleted and re-added the integration and all working again. Thank.

1 Like

Yep eventually worked for me too.

A pain in the backside though to be honest. 2FA is only via SMS with Hive, and my mobile phone does not receive a signal at home so can’t receive SMS making 2FA useless. There has to be a better way…

I still have this issue sadly, I’ve removed the integration, rebooted, installed the integration with 2FA enabled and each time it still shows my lights / devices as unavailable.

Me too. I’ve tried multiple times deleting integration, rebooting, reinstalling. Still get Failed to set up. Check the logs.
Can someone give step by step instructions to get this working again? It used to work for me.
Does not now work for me on HA core-2022.7.5, Hive 2022.7.3
Reverting to 2021.5.4

Logs say

2022-07-16 16:03:05 WARNING (SyncWorker_5) [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-16 16:05:20 INFO (MainThread) [homeassistant.setup] Setting up hive
2022-07-16 16:05:20 INFO (MainThread) [homeassistant.setup] Setup of domain hive took 0.0 seconds
2022-07-16 16:05:24 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 442, in getDevices
File "/usr/local/lib/python3.10/site-packages/apyhiveapi/session.py", line 371, in getCamera

I have 2FA enabled

@perjury1 i saw this error the other day wh
It’s some else.

My guess is you have a hive camera but you don’t have a recording saved or available?

I have built the camera functionality in the backend with a view I will be adding it to home assistant hopefully soon.

It seems I have missed a scenario here the previous person who had the issue only stored recordings from the last 24 hours and no longer and didn’t have a recording available.

@perjury1 is this your scenarios?

This is correct. No recordings.
You know that Hive have just announced that they’re abandoning their cameras?

@perjury1 no I did not know that. That’s rubbish.

To get you up and running the only way is to removed the camera device from hive until I change the back end and release it

1 Like

Will I be able to add the camera back again once the integration is installed?
(I can’t do anything at the moment because I can’t log in to my Hive account, sigh )

@perjury1 unfortunately no not until I release an update to the backend and home assistant integration.

I’m currently away so i can’t do anything for 2 weeks

I forced the cameras to generate a file and now the integration is up and running

@perjury1 you will need to make sure there is a recording there every 24 hours as the first update after the recording has gone will fail

This has worked for me many thanks :slight_smile:

Thanks from me… needed 2FA, delete and reinstall integration. (After reinstall config asks for 2FA code.)

I have just got a Hive Mini today and am having this same error

I think the issue is with Hive - in the app it says 2FA is enabled, but it doesn’t ask me for a code on either the app or the web
I tried turning 2FA off and it just stays on

Mobile number is confirmed

Anyone got any ideas?

I am getting the same here. Hive mini installed a few days ago. 2FA is enabled in the app but it never sends a text even if I log out there. Tried turning 2FA off and on - no change.

Setting up integration asks for username and password but no code - then fails with error.

System is:
Home Assistant 2022.11.2
Supervisor 2022.11.2
Operating System 9.3
Frontend 20221108.0 - latest

logs show:

2022-11-25 10:48:48.196 WARNING (SyncWorker_0) [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-11-25 22:55:23.058 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
File "/usr/local/lib/python3.10/site-packages/apyhiveapi/session.py", line 503, in startSession
File "/usr/local/lib/python3.10/site-packages/apyhiveapi/session.py", line 426, 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

Is this a ‘mini’ issue? or a Hive issue? or an integration issue? Not sure how to find out.

[Tried going back to the ‘official’ integration, but it does not turn up - even if I have deleted the custom component version from custom components folder and restarted etc. (I also cannot get rid of Hive custom component from HACS, only the main integration page - should I be able to?]

Any help welcome. TIA

@hawk100

The integration only works with 2FA enabled. So if you have disabled it then it won’t work.

Along side that when you have enabled 2fa you need to log out and login to the toffical hive app on the latest version. So that hive enables the latest account security for you

Thanks. I think 2FA is the issue as you and others have suggested, but it is apparently switched on in the app (and Google Play thinks it is the latest version).

As switching it off and on does not make a difference in the app (it stays on even after removing my phone as a trusted device), I will raise an issue with Hive about 2FA, and confirm with them my app version is the latest. Until 2FA works on the app, it would seem unlikely the integration will work in HA.