Eufy Security Integration

Did you by any chance block DNS access or block certain domains? Perhaps you use an add blocker on your network? Eufy needs to be able to communicate to some of these domains for its notifications, specifically the google one. many of us had similar issues which were resolved when adguard or pihole were taken out of the mix. Worth a shot.

1 Like

I do use a pihole. I actually stopped using it a few days ago due to weird dns resolve issues. Odd thing is I just checked and HA is still routing it traffic through it, where the rest of my network is not. (It was setup from my router to use the pihole, but removed it there).

(I think I just found it pointing directly to my pihole… lets see if that fixes it…)

1 Like

There are some known issues with unbound, the DNS resolver in pi-hole. If you want to try, set pi-hole to use one of the “outside” DNS server like Google, Cloudflare or OpenDNS. :slight_smile:

UPDATE: it fixed the log errors but all contactsensors still do not update anything from ‘closed’

Yeah, I also used unbound specifically instead of another DNS server. Recently however also started to have weird issues with some devices not resolving domainnames correctly and others did. So I had removed Unbound for some of the other DNS servers. No change so I removed the entire PiHole from my network (but left it running). It fixed the issue everywhere… but apparently when I set all network settings to static for Home Assistant directed it to my PiHole directly (forgot I did that :relaxed: ). Removed that and…

2022-06-08 05:12:58.783  INFO  Eufy Security server listening on host 0.0.0.0, port 3000 
2022-06-08 05:13:03.246  INFO  Connected to station T8----------F on host 192.---.----.--- and port ----- 
2022-06-08 05:13:03.996  INFO  Push notification connection successfully established 

Nomore errors!

Many thanks @paddy0174 ! Somehow I myself was heading in the direction that something was wrong with the separate google account I setup for automations instead of thinking that my network was the issue.

But in the end, it should run with Pi-Hole enabled as well. :slight_smile: It goes totally against the “local-only” approach, if the integration needs to have contact to outside servers to run properly. Or do I get that wrong, what this integration should do?

Nonetheless, I’d re-integrate Pi-Hole and check where and what is wanting an outside connection and see, if it can be avoided. :slight_smile:

I fear this is more Eufy than this integration. I believe this one in essence connects to the cloud as a user as if you use the Eufy app. Which does mean I can use HA to do things like arm the alarm. Which Eufy does not allow 3rd parties like google to do. But yeah sadly not native. Sensors like the doors also only update every x minutes as its a api call to the cloud if they changed. Wish Eufy would be native integrated and not like this. Despite being super happy this exists! May get additional contactsensors instead of relying on Eufy. Ones I can integrate native for automations, keeping the Eufy ones for the Alarmsystem.

Sadly it solved the errors, but not the status not updating. Which remains puzzeling to me as the eufy app says they are open, HA integration they are closed. But camera’s and doorbell work fine in both.

And yes, I do want to enable both the Pihole and unbound again. Once I pinpoint what is wrong there on a larger scale then just this error.

The Eufy cameras seem pretty good compared to the competition.
What I’m wondering is: what are the downsides of going full on Eufy?
I guess there is always the possibility that Eufy turns off rtsp functionality on future hardware/firmware?

Also, while I don’t expect an Anker company to just dissapear one day. If Eufy’s auth cloud went away, would that mean I can’t use my camera’s anymore? (because from my understanding all of eufy’s camera, while working offline, require online auth to use)

As seen with many, many other companies, even Amazon or Google. If it’s not profitable, they will kill it. :slight_smile: That’s why the local approach is always better. You’re not relying on any outside things, like the authentication via internet. But it didn’t need to be that bad in the first place,just imagine, your net goes down, because your provider is doing some maintenance. No net, no pic.

Honestly, I can’t see why people are using such a thing, if they start fresh. If you already own one or more cameras from eufy, sure, why waste these. But if you haven’t already bought such a camera, I’d never do so.

Just take Snips.ai as an example. Great company, did some really cool stuff with voice assistants, and they were profitable. Sonos thought so as well and bought the company. One of the first things was to disable the cloud. Just search here in the forum, or with Google, to see how many people are more than frustrated, they have lost a lot of time in training the AI. All gone, without any chance to do something against it. Nope, I wouldn’t want to rely on the goodwill of some Silicon Valley investors. :wink:

EDIT: It would be another discussion, if eufy would be the only one, or the cheapest one, but neither is true. There are a lot of cameras out there, in the same price range as eufy and they are usable without an internet connection. For example the YI cameras are flashable with a custom firmware and do a really good job.

And please, don’t get me wrong, I like Anker and its products, I use a lot of their stuff, starting from power supplies over USB chargers and I don’t know what else. But relying on an internet connection to run something in my home is a no-go! :slight_smile:

I’ll stop now, I’m starting to get the feeling I’m ranting… :slight_smile: :wink: :rofl:

I can’t find any that are fully battery powered and can use a solar panel to charge (I understand this means it can’t stream 24/7. I would also do motion detection based streaming). Reolink seems nice, but their battery ones only work using a (seamingly janky) reverse engineered protocol; instead of proper rtsp.

1 Like

I’m happy with the eufys as well. Only the integration in HA, I would still like to have a standard stream, when clicking on the still picture (without webrtc) to use it in entitiy details, media browser, etc. etc. I still wonder, why it is possible for other cameras, but not for the eufy integration.

It might be that I am overlooking this, but I am looking for a trigger on the HomeBase alarm so I can hook an external Siren etc when the HomeBase Alarm is triggered. I tried the ‘HomeBase Alarm’ trigger under devices but this one triggers already when the countdown clock is started (and the HomeBase is still beeping instead of the alarm going off). Any ideas?

hi all, I was away for a very long time because of family matters and I will start to go over existing bugs and issues. Please +1 or comment existing issues so I can prioritize accordingly. Thanks for your patience

9 Likes

I know it might be a weird question to you, since you are the one making the integration. But: what’s your take on Eufy and being compatible with all the libraries to make home assistant integration possible, in the long term?
I know nobody can predict the future. What do you think?

  • it is currently developed as custom integration with only 1 developer, it is a very hard dependecy, high risk
  • developing as home assistant core integration requires a lot of commitment with small return of investment, code owners should fix their code theirselves, not home assistant core team
  • i would not invest on eufy while there are multiple local only or open api solutions available out there
  • i like tinkering on this as a personal interest and using it day to day at my home
7 Likes

Thanks for the comments, efforts and for sharing the results with us. I completely understand your approach and support you. There is a massive gap between maintaining a custom component and an official HA integration when it comes to exposure and maintenance, and with something as “complicated” as the eufy integration and all the pieces that can break on the way, I’m happy with what you’ve given us so far. :+1:

2 Likes

Thank you for all your work!

1 Like

There is a return of investment?! :astonished: Lets be honest, if you aren’t idealistic, this is nothing sane people would do… :crazy_face: :joy: Double the work, and despite from Hollywood, you won’t get a star for your fame… :rofl: :rofl:

What I want to say with this, thanks for the work you’re doing, not only with the Eufy integration/custom component. :+1:

1 Like

What i meant was, having it as a core integration wouldn’t speed up any bug fixes or eliminate any future issues at all. You are essentially right.

I have one open PR waiting for some other integration and turn around for each review might take up to couple of weeks. I have already forgotten about it

Let me just add to the people who said thanks. With Eufy being the main security system here and also building other automatons (turn heat off in a room if a window is open) it’s really appreciated you brought them into HA this way.

This integration even allows things the official integration with something like Google Home doesn’t allow. Like arming and disarming the alarm.

:+1: High praise for you investing your time in this!

2 Likes

I had the same issue, solved it by making a house sharing invitation to a second account and adding these credentials to the docker environment variables.