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

1 Like

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

Same, I get the http 404 when trying to go to the api URL. I wonder if eufy took down the API. When I log into their web page to view my cameras it forces me to generate a pin from the phone app. Seems like the integration would face this also.

I get an Eufy camera and I get the “Service is temporarily unavailable” message from their API.
Is their api permanently stopped ?
has anyone found a solution ?
Thanks

I got the same issue as above with eufy access token

Logger: homeassistant.setup
Source: setup.py:422
First occurred: 1:36:51 PM (1 occurrences)
Last logged: 1:36:51 PM

Error during setup of component eufy: ‘access_token’
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 422, in _async_setup_component
result = await task
^^^^^^^^^^
File “/usr/local/lib/python3.13/concurrent/futures/thread.py”, line 59, in run
result = self.fn(*self.args, **self.kwargs)
File “/usr/src/homeassistant/homeassistant/components/eufy/init.py”, line 61, in setup
data = lakeside.get_devices(
config[DOMAIN][CONF_USERNAME], config[DOMAIN][CONF_PASSWORD]
)
File “/usr/local/lib/python3.13/site-packages/lakeside/init.py”, line 39, in get_devices
token = r.json()[‘access_token’]
~~~~~~~~^^^^^^^^^^^^^^^^
KeyError: ‘access_token’

I am very new to all this
Only just setup the Green Box

Question is for retrieving the access token
what file do I add the script to
and how do I run it