Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed setup: Error setting up entry 127.0.0.1 for eufy_security #1274

Open
gmcdon opened this issue Dec 20, 2024 · 5 comments
Open

Failed setup: Error setting up entry 127.0.0.1 for eufy_security #1274

gmcdon opened this issue Dec 20, 2024 · 5 comments

Comments

@gmcdon
Copy link

gmcdon commented Dec 20, 2024

Describe the bug

When starting integration, receiving the following error:

Logger: homeassistant.config_entries Source: config_entries.py:604 Error setting up entry 127.0.0.1 for eufy_security

To reproduce

Steps to reproduce the behavior:

  1. Start eufy-security-ws (default port: 3000)
  2. Install eufy_security
  3. Add hub: 127.0.0.1:3000
  4. Error message: Failed to set up:
    Check the logs

Expected behavior

eufy_security to connect to eufy-security-ws

Additional information

Go to Settings -> System -> Repairs -> Click on 3 dots (...) -> System Information and get Version and Installation Type to below fields;

  • Home Assistant Installation Type (OS - Supvervised - Core): Home Assistant OS
  • Home Assistant Core Version: core-2024.9.2
  • Eufy Security Add-on Version: 1.9.1
  • Eufy Security Integration Version: 8.1.1

Hardware Information;

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 604, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/eufy_security/init.py", line 56, in async_setup_entry
await hass.config_entries.async_forward_entry_setups(config_entry, PLATFORMS)
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 2108, in async_forward_entry_setups
await integration.async_get_platforms(platforms)
File "/usr/src/homeassistant/homeassistant/loader.py", line 1177, in async_get_platforms
import_future.result()
File "/usr/src/homeassistant/homeassistant/loader.py", line 1177, in async_get_platforms
import_future.result()
File "/usr/src/homeassistant/homeassistant/loader.py", line 1177, in async_get_platforms
import_future.result()
[Previous line repeated 7 more times]
File "/usr/src/homeassistant/homeassistant/loader.py", line 1165, in async_get_platforms
platforms.update(self._load_platforms(platform_names))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1090, in _load_platforms
platform_name: self._load_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1264, in _load_platform
cache[full_name] = self._import_platform(platform_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/loader.py", line 1296, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/util/loop.py", line 200, in protected_loop_func
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "", line 1387, in _gcd_import
File "", line 1360, in _find_and_load
File "", line 1331, in _find_and_load_unlocked
File "", line 935, in _load_unlocked
File "", line 995, in exec_module
File "", line 488, in _call_with_frames_removed
File "/config/custom_components/eufy_security/alarm_control_panel.py", line 6, in
from homeassistant.components.alarm_control_panel import (
ImportError: cannot import name 'AlarmControlPanelState' from 'homeassistant.components.alarm_control_panel' (/usr/src/homeassistant/homeassistant/components/alarm_control_panel/init.py)

@febalci
Copy link

febalci commented Dec 25, 2024

v8.0.4 works well with HA 2024.9.2. I guess newer versions need HA updated.
EDIT: I am using 2024.9.1 and having the same problem. v8.0.4 works fine.

@omar10wahab
Copy link

Somehow updating HA made it work for me as well.

@omar10wahab
Copy link

Actually my entities are not showing any states. Does anyone else know what's wrong? I feel like it has something to do with the fact that I'm using a shared account instead of my main but it worked fine before with the shared

@gmcdon
Copy link
Author

gmcdon commented Jan 7, 2025

@omar10wahab just an FYI, i'm not using a shared account and getting this issue

@danstreeter
Copy link

danstreeter commented Jan 7, 2025

I'm currently running the following and getting this error. Will try and perform an update of HA over the next few evenings and report my findings:

  • Home Assistant Installation Type (OS - Supvervised - Core): Container (Docker)
  • Home Assistant Core Version: 2024.10.4
  • Eufy Security Add-on Version: 1.9.1
  • Eufy Security Integration Version: 8.1.1

Update 2024-01-08
After doing some review of the logs, I found that I also had issues with HACS, so performed the HACS upgrade here and then upgraded HA from 2024.10.4 to 2024.11.3 and my Eufy integration started working again.

Im going to go right up to 2025.1.1 and will presume now it will work all ok, but will report back any further findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants