fuatakgun / eufy_security

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

Eufy security client push notification connection closes. #1166

Closed prabath83 closed 1 week ago

prabath83 commented 1 week ago

Eusfy security add-on closes its push notification connection after 2/3 minutes. Even when you restart the addon manually the push notification closes after 2/3 minutes. After the push notification closure you don't get any motion detection update from any cameras

To reproduce

Steps to reproduce the behavior:

  1. Go to addons
  2. Click on ‘eufy-security-ws'
  3. Select info and click 'restart'
  4. See log after 2/3 minutes

Expected behavior No more push notification updates from the hub Additional information

Version: core-2024.6.4 Installation type:Home Assistant Os

Hardware Information;

Logger: homeassistant.backports.enum Source: helpers/deprecation.py:197 First occurred: 10:11:03 PM (1 occurrences) Last logged: 10:11:03 PM

StrEnum was used from eufy_security, this is a deprecated alias which will be removed in HA Core 2025.5. Use enum.StrEnum instead, please report it to the author of the 'eufy_security' custom integration

2024-06-22 05:46:25.625 INFO eufy-security-ws:eufy-security-client [main] Push notification connection closed 2024-06-22 05:50:35.478 ERROR eufy-security-ws:eufy-security-client [push] [PushClient.onSocketError] Push client - Socket Error { error: { cause: undefined, message: 'Error: connect ETIMEDOUT 2404:6800:4003:c11::bc:5228', context: undefined, stacktrace: 'Error: connect ETIMEDOUT 2404:6800:4003:c11::bc:5228\n' + ' at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1555:16)' } } 2024-06-22 05:50:35.481 INFO eufy-security-ws:eufy-security-client [main] Push notification connection closed

Additional context

prabath83 commented 1 week ago

This issue was fixed after enabling Force IPv4 addresses first in the addon configuration tab.