EufyHome integration

Hello,

I tried integrating Eufy Home as per the instruction here - EufyHome - Home Assistant

However, i’m getting the following error;


Logger: homeassistant.setup
Source: setup.py:398
First occurred: 18:28:55 (1 occurrences)
Last logged: 18:28:55

Error during setup of component eufy
Traceback (most recent call last):
  File "/usr/local/lib/python3.12/site-packages/homeassistant/setup.py", line 398, in _async_setup_component
    result = await task
             ^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/homeassistant/components/eufy/__init__.py", line 62, in setup
    data = lakeside.get_devices(
           ^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/lakeside/__init__.py", line 39, in get_devices
    token = r.json()['access_token']
            ~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: 'access_token'

Any idea how i can fix?

‘access_token:’ can be obtained by running:

$ curl -H “Content-Type: application/json”
-d ‘{“client_id”:“eufyhome-app”, “client_Secret”:“GQCpr9dSp3uQpsOMgJ4xQ”, “email”:“USERNAME”, “password”:“PASSWORD”}’
https://home-api.eufylife.com/v1/user/email/login

replacing USERNAME and PASSWORD with the EufyHome username and password. This will give an access_token. Then run:

: $ curl -H token:TOKEN -H category:Home
https://home-api.eufylife.com/v1/device/list/devices-and-groups

replacing TOKEN with the access_token from the previous command. This will provide the local_code for each device.

Did the stuff you did for access token seem to work?
Did you wait some time after generating in case it takes a while?

I don’t use this, just helping you try to troubleshoot.

When I did the ‘curl’ code to try and get the access token , I get the message ‘command not found’

I’m running it on my Mac’s terminal


error when trying to get access token

That would have been an important thing to include.

You can see that ‘Don’t work’ is not going to get you anywhere.

It is as simple as if curl in not an available command, you have to install it or replace it with a command the mac has before you can do this.

now getting this;

:confused: looks like its from Eufy

I am hitting this same issue. I follow the setup instructions for the integration, but logs indicate a key error for the access token.

So, there appears to be an issue with the integration setup instructions, because that should at least work with the username and password from the app, right?

Second, after trying to use the curl command off of the integration page, I get the same Service is temporarily unavailable error message.

Has anyone gotten around this?

Hello,

I have the same problem and have not yet found a solution. Have you had any news on this yet?

I am still waiting for feedback from eufy support regarding the accessibility of the API page.

Greetings from Germany
Max

https://home-api.eufylife.com/v1/user/email/login