fuatakgun / eufy_security

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

Eufy camera over the internet (local network <> 4G router) #935

Closed mcsdodo closed 11 months ago

mcsdodo commented 11 months ago

Is it possible to stream from camera to Home assistant when it's connected to internet with 4G router (not on the same network as homeassistant)?

When trying to start a stream I can see RTSP stream URL like this one rtsp://192.168.0.177/live0 - and that does not suggest that it should be accessible over internet.

Is there any way I could accomplish this?

mcsdodo commented 11 months ago

So for future generations: I have a PiZero connected to the same 4G router in a garage. I've installed Tailscale on the Pi then I've enabled the Pi as subnet router for 192.168.0.0/24. In HomeAssistant I've installed Home assistant tailscale with features - a fork from original addon that actually has some features and enabled "Accept routes" option.

Now I'm able to ping 192.168.0.177 from my HA instance, the RTSP stream works just so.

My settings: image

Note: read the documentation. Addon uses default values "if not set" and then when you enable/disable a setting it actually uses value you've provided. Weird UX decision but I was able to set it up as needed.