Eufy Security Integration

Are you sure you are using a correct country code? Did you login on the mobile app using secondary account?

Anyone else having issues running the latest version? (integration v2.6.1, addon v0.8.4)

2022-07-30 11:06:05.998  INFO  Eufy Security server listening on host 0.0.0.0, port 3000 
2022-07-30 11:06:10.712  INFO  Connected to station T8010P23205218A1 on host 192.168.2.151 and port 16974 
2022-07-30 11:06:11.206  INFO  Push notification connection successfully established 
2022-07-30 11:06:25.677  ERROR P2PClientProtocol.lookup(): station: T8410P312143160B - All address lookup tentatives failed. 
2022-07-30 11:06:25.680  INFO  Timeout connecting to station T8410P312143160B 
2022-07-30 11:06:45.690  ERROR P2PClientProtocol.lookup(): station: T8410P312143160B - All address lookup tentatives failed. 
2022-07-30 11:06:45.693  INFO  Timeout connecting to station T8410P312143160B 
2022-07-30 11:07:10.700  ERROR P2PClientProtocol.lookup(): station: T8410P312143160B - All address lookup tentatives failed. 
2022-07-30 11:07:10.703  INFO  Timeout connecting to station T8410P312143160B 
2022-07-30 11:07:45.713  ERROR P2PClientProtocol.lookup(): station: T8410P312143160B - All address lookup tentatives failed. 
2022-07-30 11:07:45.715  INFO  Timeout connecting to station T8410P312143160B 
2022-07-30 11:08:30.723  ERROR P2PClientProtocol.lookup(): station: T8410P312143160B - All address lookup tentatives failed. 
2022-07-30 11:08:30.725  INFO  Timeout connecting to station T8410P312143160B 
2022-07-30 11:09:25.736  ERROR P2PClientProtocol.lookup(): station: T8410P312143160B - All address lookup tentatives failed. 
2022-07-30 11:09:25.737  INFO  Timeout connecting to station T8410P312143160B 

My devices seemed to be unresponsive in HA

image

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/config/custom_components/eufy_security/__init__.py", line 60, in update
    coordinator.async_set_updated_data(coordinator.data)
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 304, in async_set_updated_data
    self.async_update_listeners()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 110, in async_update_listeners
    update_callback()
  File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 339, in _handle_coordinator_update
    self.async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 532, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 570, in _async_write_ha_state
    state = self._stringify_state(available)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 538, in _stringify_state
    if (state := self.state) is None:
  File "/config/custom_components/eufy_security/alarm_control_panel.py", line 240, in state
    return CODES_TO_STATES[current_mode]
KeyError: -1

I had the not available issue in the first boot after installing the latest update… but it was fine after a restart

You are far from latest version of add-on, it is 0.9.3, you have to update it

Any updates on this?

Updating the addon now, to my suprise the repository was removed from the addon store in my HA

This might be because of geofencing, please check it

I’ve updated the addon to 0.9.3, but it still gives me this result:

2022-07-30 11:56:33.109  INFO  Eufy Security server listening on host 0.0.0.0, port 3000 
2022-07-30 11:56:43.317  INFO  Connected to station T8010P23205218A1 on host 192.168.2.151 and port 15436 
2022-07-30 11:56:43.389  INFO  Push notification connection successfully established 
2022-07-30 11:56:58.272  ERROR P2PClientProtocol.lookup(): station: T8410P312143160B - All address lookup tentatives failed. 
2022-07-30 11:56:58.276  INFO  Timeout connecting to station T8410P312143160B 
2022-07-30 11:57:18.288  ERROR P2PClientProtocol.lookup(): station: T8410P312143160B - All address lookup tentatives failed. 
2022-07-30 11:57:18.291  INFO  Timeout connecting to station T8410P312143160B 
2022-07-30 11:57:43.308  INFO  Timeout connecting to station T8410P312143160B 
2022-07-30 11:57:43.306  ERROR P2PClientProtocol.lookup(): station: T8410P312143160B - All address lookup tentatives failed. 
2022-07-30 11:58:18.316  ERROR P2PClientProtocol.lookup(): station: T8410P312143160B - All address lookup tentatives failed. 
2022-07-30 11:58:18.319  INFO  Timeout connecting to station T8410P312143160B 
2022-07-30 11:59:03.330  ERROR P2PClientProtocol.lookup(): station: T8410P312143160B - All address lookup tentatives failed. 
2022-07-30 11:59:03.333  INFO  Timeout connecting to station T8410P312143160B 
2022-07-30 11:59:58.343  ERROR P2PClientProtocol.lookup(): station: T8410P312143160B - All address lookup tentatives failed. 
2022-07-30 11:59:58.346  INFO  Timeout connecting to station T8410P312143160B 
2022-07-30 12:01:03.356  ERROR P2PClientProtocol.lookup(): station: T8410P312143160B - All address lookup tentatives failed. 
2022-07-30 12:01:03.361  INFO  Timeout connecting to station T8410P312143160B 
2022-07-30 12:01:49.915  ERROR P2PClientProtocol.lookup(): station: T8410P312143160B - All address lookup tentatives failed. 
2022-07-30 12:01:49.917  INFO  Timeout connecting to station T8410P312143160B 
2022-07-30 12:03:18.372  ERROR P2PClientProtocol.lookup(): station: T8410P312143160B - All address lookup tentatives failed. 
2022-07-30 12:03:18.374  INFO  Timeout connecting to station T8410P312143160B 
2022-07-30 12:06:33.384  ERROR P2PClientProtocol.lookup(): station: T8410P312143160B - All address lookup tentatives failed. 
2022-07-30 12:06:33.386  INFO  Timeout connecting to station T8410P312143160B 

Ah no, this is something totally different, add-on is not able to reach out to base station

I’ve installed ‘NGINX Home Assistant SSL proxy’ yesterday, could that be the reason

Yes, too many variables might be impacting, some users are also separating their network virtually and limiting connections and causing similar issues

How should I approuch this problem? I’ve got these addons:

Restating the home base and then restarting the add-on might help. Lastly, you can try to access command line of eufy security add-on and try to ping home base with its ip address.

I think I see the issue ‘T8010P23205218A1’ is my base station and ‘T8410P312143160B’ is the inhouse camera that I’ve configured for my mothers house (different house in eufy app)
I think this causes the issue.

‘T8410P312143160B’ is currently offline (Mom pulled the plug out)
Still find it weird that homebase is unresponsive

You could only connect to one house right? or does it pickup all houses?

Restarting HomBase

2022-07-30 12:32:01.509  INFO  Timeout connecting to station T8410P312143160B 
2022-07-30 12:38:06.068  ERROR P2PClientProtocol.lookup(): station: T8410P312143160B - All address lookup tentatives failed. 
2022-07-30 12:38:06.070  INFO  Timeout connecting to station T8410P312143160B 
2022-07-30 12:40:37.787  WARN Station T8010P23205218A1 - Heartbeat check failed. Connection seems lost. Try to reconnect... 
2022-07-30 12:40:37.789  INFO  Disconnected from station T8010P23205218A1 

Cameras are working again so that is great!
But my Homebase is still unavailable. You have any idea?

Nope, this requires an issue with debug logs :slight_smile:

I don’t know so much about houses and permission etc, having very simple setup at home. Did it work?

I feel like we have cleared many major bugs and left with p2p streaming reliability only. While i will come up with small adjustments on that topic, please share over here your requests.

Next big topic: have a custom webrtc card to eliminate conditional card usage and have stop button on it :slight_smile: this is a working example running locally. Below you use one card to show live stream and latest picture depending on entity state, plus stop button and ptz buttons of configured. All working fine so far

4 Likes

I was working on adding pinch/tap pan & zoom (digital, not physical camera controls). Perhaps it’s something that could be added as well. I was basically aiming to replicate the functionality within the Eufy Android app for my various cameras. The library I was using generally seems to have all the needed functionality, but was missing proper shadow dom support. I have a PR open at https://github.com/timmywil/panzoom/pull/618, but it hasn’t gotten any attention for the couple months it’s been open…