Open karllogue opened 8 months ago
I'm seeing this same issue as well; my Eufy components work and the integration is functioning fine. But I still see this in the system notifications after every reboot
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
Issue still present with latest HA version (2024.08.0). First time installation means no devices are discovered.
Naked installation via configuration.yaml:
eufy:
username: EMAIL_ADDRESS
password: PASSWORD
leads to the error.
Logger: homeassistant.setup
Quelle: setup.py:416
Erstmals aufgetreten: 22:35:13 (1 Vorkommnisse)
Zuletzt protokolliert: 22:35:13
Error during setup of component eufy
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/setup.py", line 416, 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/src/homeassistant/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'
Issue Remains:
Logger: homeassistant.setup Source: setup.py:416 First occurred: 8:05:02 PM (1 occurrences) Last logged: 8:05:02 PM
Error during setup of component eufy Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 416, 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/src/homeassistant/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'
Core
2024.8.3
Supervisor
2024.08.0
Operating System
13.1
Frontend
20240809.0
Issue remains, tried something else and attempted using curl to pull local access tokens as shown in the integration page and received {"res_code":500,"message":"Service is temporarily unavailable. Please try again later."}
I have seen this same issue since the first time I got it working. Would love to silence these error logs as it is just extra noise.
I could not add the integration, hence ended up here :) Is there a work-around rather than rolling back to an earlier version of HA?
Update, just took a little look in the code. It looks a lot like this old bug: https://github.com/home-assistant/core/issues/14158
Update 2, but yes it seems that the endpoint just returns an error 500, which then in turn cause the lakeside to fail due to missing tokens in the response.
How do you guys go about talking to Eufy for them to fix the endpoint? Es der any documentation for the api anywhere? I haven't been able to find any.
The problem
I have been receiving this error across multiple versions of HA. Some versions of HA (the first March 2024 version for instance) cause all of the devices in the Eufy integration to no longer be recognized. Restoring to a previous version of HA fixes this. This error, however, has been consistent, even when the Eufy devices are properly recognized.
Logger: homeassistant.setup Source: setup.py:333 First occurred: 2:32:57 AM (1 occurrences) Last logged: 2:32:57 AM
Error during setup of component eufy Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/setup.py", line 333, 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/src/homeassistant/homeassistant/components/eufy/init.py", line 61, 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']