EufyHome integration


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

However, i’m getting the following error;

Logger: homeassistant.setup
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/", line 398, in _async_setup_component
    result = await task
  File "/usr/local/lib/python3.12/concurrent/futures/", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.12/site-packages/homeassistant/components/eufy/", line 62, in setup
    data = lakeside.get_devices(
  File "/usr/local/lib/python3.12/site-packages/lakeside/", 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”}’

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

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