Eufy Security Integration

why dont you use motion sensors?

1 Like

Debugging Issues: GitHub - fuatakgun/eufy_security at alpha

I am more than happy to debug individual issues as long as you follow setup instructions.

I need you to share your problematic cameras with me so that I can use my own machine to debug the issue.

For each debugging request, please create a github issue so we can track from there. 
Do not forget to remove the sharing settings after we are done :)

If you are located in EU, use my account: [email protected]

If you are located in US, use shared test account: [email protected]

To schedule the time, please use this link: 
https://calendly.com/fuatakgun/office-hour

Still not working for me either :face_with_raised_eyebrow:

removed add-on, reinstalled it, configured it with ‘Eufy’ as Trusted_Device_Name and pre-used accountsettings, and still no thumbnail wenn Doorbell is pressed…

It used to work yust fine before Eufy changed their security policy.

2022-12-28 14:36:39.762  INFO  Eufy Security server listening on host 0.0.0.0, port 3000 
2022-12-28 14:36:44.418  INFO  Push notification connection closed 
2022-12-28 14:36:50.080  INFO  Push notification connection successfully established 
2022-12-28 14:36:50.116  INFO  Push notification connection successfully established 
2022-12-28 14:36:50.169  INFO  Connected to station T8010P2320361053 on host 192.168.1.13 and port 17267 
2022-12-28 14:37:53.637  INFO  Disconnected from station T8010P2320361053 
2022-12-28 14:37:58.712  INFO  Connected to station T8010P2320361053 on host 192.168.1.13 and port 14954 
2022-12-28 14:39:02.184  INFO  Disconnected from station T8010P2320361053 
2022-12-28 14:39:07.261  INFO  Connected to station T8010P2320361053 on host 192.168.1.13 and port 17351 
2022-12-28 14:40:10.718  INFO  Disconnected from station T8010P2320361053 
2022-12-28 14:40:15.789  INFO  Connected to station T8010P2320361053 on host 192.168.1.13 and port 23958 
2022-12-28 14:41:09.491  INFO  Client disconnected with ip: 172.30.32.1 port: 35612 code: 1000 reason: Normal Closure 
2022-12-28 14:41:19.261  INFO  Disconnected from station T8010P2320361053 
2022-12-28 14:41:24.320  INFO  Connected to station T8010P2320361053 on host 192.168.1.13 and port 23811 
2022-12-28 14:42:27.785  INFO  Disconnected from station T8010P2320361053 
2022-12-28 14:42:32.886  INFO  Connected to station T8010P2320361053 on host 192.168.1.13 and port 14958 
2022-12-28 14:43:36.347  INFO  Disconnected from station T8010P2320361053 
2022-12-28 14:43:41.407  INFO  Connected to station T8010P2320361053 on host 192.168.1.13 and port 13385 
2022-12-28 14:44:44.870  INFO  Disconnected from station T8010P2320361053 
2022-12-28 14:44:49.931  INFO  Connected to station T8010P2320361053 on host 192.168.1.13 and port 17975 

Eufy Security add-on 1.3.0
Eufy security V5.1.4

while waiting on thumbnail issue, please work with @bropat on Disconnection issue. I am not facing this locally so I am not able to present debug logs to him.

You need to check if /how you set up the sensor in the integration configuration. It’s either “on/off” or “True/False” - go to developer tools, check state of the sensor and where needed adjust the trigger.

As for the caching; I set up a generic camera entity - this refreshes without problems.

I had a chance to play with cameras and doorbells of other users with Alpha release, so far we had fixed many issues.

Latest alpha version is v5.2.1. Please get it and test it and raise issues.

1 Like

It does work as long as the stream is started in the devices diagnostics .

It’s still not practical to use though since it alone is going to use more of the cpu then everything else in HA combined.
This is just one device with multiple cameras or devices its going to absolutely kill the cpu.

I am not following you, first you had said it is not working, afterwards, you said it is working but not practical.

Do you have an idea or a proposal? Or you just wanted to emphasize it?

This thread is always a nightmare to follow, and I feel like this question may have been asked recently but the resolution is not clear. So I apologise in advance…

image

The thumbnail is broken. I have reinstalled Eufy Security Add-on as suggested (I think).

Is this what people are also experiencing and trying to fix above?

Tell me about the nightmare:-)

For general announcement, i am updating the first post and pinning high impacting issues on GitHub repository

1 Like

Eufy don’t make it easy do they! Thanks for the efforts @anon63427907, it’s greatly appreciated <3 I’ll keep an eye on the repo instead. Cheers!

4 Likes

Hi,
not sure if I should post on GitHub, but probably it can be answered by community help :slight_smile:

I have version 1.3.0 installed via HACS on HassOS.
Login via new email address based account registered via Eufy Android App.

With same login data and “Eufy” as trusted device, I get following log entries:

2022-12-29 16:36:13.893  INFO  Authentication properties changed, invalidate saved cloud token. 
2022-12-29 16:36:38.274  INFO  Eufy Security server listening on host 0.0.0.0, port 3000 
2022-12-29 16:36:38.844  ERROR Response code not ok 
{
  code: 26006,
  msg: 'Email address or password incorrect.'
}

Any idea what might be wrong at this stage?

Regards

Ok,
This might cause the problem:

listening on host 0.0.0.0

But how to adapt?

It does work but requires the stream to be turned on which is likely confusing for people using it.

Presently it’s not practical due to the cpu usage which is very high.
Multiple streams running at once would just totally tank a cpu.

I think It needs to be more like bluriris.

The idle mode being a picture that changes every 30 sec or so to avoid cpu overload and clicking on it opens the stream.
The stream would still be cpu intensive at this point but it wouldn’t overload things unless someone opened all the streams at once.

This would give plenty of time to figure out why it consuming so much cpu without the need to rush.

1 Like

Ok, there was an email spelling issue caused by my native language. It does now connect and I try to proceed.

1 Like

Feel free to raise a PR

I would but it would probably be pointless i suspect.

The picture then steam method is whats normally used in HA and what was used before in this addon.

It just makes sense you dont need something streaming continually when not being looked at.

So logically i am guessing you were already headed that way.

The only major hold up would be the picture part which at this point may make more sense grabbing it from the stream rather then trying to get it from the device.
Eufy finally admitted the lied and are in panic mode now making changes because they dont want to refund that many devices.

It would avoid a lot of headaches not having to deal with any changes they make in that area in the future.

Of course all this skrobul already working on this very thing i believe.

All that said the fact that it works in such a short period of time given all the changes and half changes eufy been up to is amazing.

Hell i half suspect i wont get to finish typing this before you guess do all that :rofl:

hi @anon63427907

i installed your addon and logged in everything is working i guess, but i doesnt get a camera entity?

have you perhaps a idea?

edit
my log shows errors

2022-12-29 21:24:08.742  INFO  Authentication properties changed, invalidate saved cloud token. 
2022-12-29 21:24:25.617  INFO  Eufy Security server listening on host 0.0.0.0, port 3000 
2022-12-29 21:24:33.396  INFO  Push notification connection closed 
2022-12-29 21:24:35.928  INFO  Connected to station T8410P3121431696 on host XXXX and port 22897 
2022-12-29 21:24:36.025  INFO  Push notification connection successfully established 
2022-12-29 21:24:45.915  INFO  Push notification connection successfully established 
2022-12-29 21:24:50.822  ERROR Station T8410P2021132A69 - All address lookup tentatives failed. 
2022-12-29 21:24:50.829  INFO  Timeout connecting to station T8410P2021132A69 
2022-12-29 21:24:51.738  WARN Station T8410P3121302681 - Tried all hosts, no connection could be established 
2022-12-29 21:24:51.741  INFO  Timeout connecting to station T8410P3121302681 
2022-12-29 21:24:52.731  WARN Station T8410P3121280D8B - Tried all hosts, no connection could be established 
2022-12-29 21:24:52.734  INFO  Timeout connecting to station T8410P3121280D8B 
2022-12-29 21:24:56.762  INFO  Connected to station T8410P3121302681 on host 192.168.0.27 and port 14292 
2022-12-29 21:24:57.450  INFO  Connected to station T8410P3121280D8B on host 192.168.0.62 and port 15660 
2022-12-29 21:25:10.841  ERROR Station T8410P2021132A69 - All address lookup tentatives failed. 
2022-12-29 21:25:10.843  INFO  Timeout connecting to station T8410P2021132A69 
2022-12-29 21:25:35.855  ERROR Station T8410P2021132A69 - All address lookup tentatives failed. 
2022-12-29 21:25:35.859  INFO  Timeout connecting to station T8410P2021132A69 
2022-12-29 21:26:10.871  ERROR Station T8410P2021132A69 - All address lookup tentatives failed. 
2022-12-29 21:26:10.873  INFO  Timeout connecting to station T8410P2021132A69 
2022-12-29 21:26:55.883  ERROR Station T8410P2021132A69 - All address lookup tentatives failed. 
2022-12-29 21:26:55.886  INFO  Timeout connecting to station T8410P2021132A69 
2022-12-29 21:27:50.898  ERROR Station T8410P2021132A69 - All address lookup tentatives failed. 
2022-12-29 21:27:50.901  INFO  Timeout connecting to station T8410P2021132A69 
2022-12-29 21:28:55.912  ERROR Station T8410P2021132A69 - All address lookup tentatives failed. 
2022-12-29 21:28:55.913  INFO  Timeout connecting to station T8410P2021132A69 
2022-12-29 21:31:10.923  ERROR Station T8410P2021132A69 - All address lookup tentatives failed. 
2022-12-29 21:31:10.927  INFO  Timeout connecting to station T8410P2021132A69 
2022-12-29 21:34:25.937  ERROR Station T8410P2021132A69 - All address lookup tentatives failed. 
2022-12-29 21:34:25.940  INFO  Timeout connecting to station T8410P2021132A69 
2022-12-29 21:34:46.712  ERROR Station T8410P2021132A69 - All address lookup tentatives failed. 
2022-12-29 21:34:46.715  INFO  Timeout connecting to station T8410P2021132A69 

please create a github issue, enable debug log for eufy_security and post them there

until you have debug logs, please check if you have another device under integration. I have same camera at home and working fine.

For any cases, you can share your device with me and I can debug the issue

Are you worried P2P based streaming or RTSP based streaming?
As you know, RTSP is handled by devices and we are just streaming here. CPU usage for 5 cameras (4 units of 2C and 1 unit PTZ) streaming with RTSP is around 28% on Pi 4B. Without streaming, CPU usage is around 12%.

Edit: I have introduced an option now to disable streaming inside home assistant, you can still use webrtc or see the picture received from stream.