fuatakgun / eufy_security

Home Assistant integration to manage Eufy Security devices as cameras, home base stations, doorbells, motion and contact sensors.
847 stars 73 forks source link

No devices showing #899

Closed v-mod closed 10 months ago

v-mod commented 10 months ago

Describe the bug

No devices are being displayed: image

To reproduce

Steps to reproduce the behavior:

  1. Go to 'Devices & Services'
  2. Click on 'Eufy Security'
  3. See Missing Devices

Expected behavior

I have 3 eufy cameras and a doorbell yet none of them are showing.

Additional information

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

Hardware Information;

This error originated from a custom integration.

Logger: homeassistant Source: custom_components/eufy_security/eufy_security_api/api_client.py:305 Integration: Eufy Security (documentation, issues) First occurred: 16:06:51 (1 occurrences) Last logged: 16:06:51

Error doing job: Exception in callback WebSocketClient._on_close( result=None>) Traceback (most recent call last): File "/usr/local/lib/python3.11/asyncio/events.py", line 80, in _run self._context.run(self._callback, *self._args) File "/config/custom_components/eufy_security/eufy_security_api/web_socket_client.py", line 80, in _on_close self.close_callback(future) File "/config/custom_components/eufy_security/eufy_security_api/api_client.py", line 305, in _on_close self._on_error_callback(future) TypeError: 'NoneType' object is not callable

Additional context

I am running the eufy-security-ws as a container in docker compose with the following config: eufy-security-ws: container_name: eufy-security image: bropat/eufy-security-ws:latest network_mode: "host" restart: always environment:

v-mod commented 10 months ago

It turns out I had forgotten to pass the country to eufy-security-ws in my docker config. It now works.