Accessing MotionEye that is hosted separately in HA

Hi, I have tried to use the MotionEye addon in HA (hosted in RPi4) for my 4 camera and the results are not favorable. I’m thinking to setup the MotionEye separately on my RPi3 to offload the processing to different hardware.

May I know how can I access the MotionEye from HA which hosted at different hardware? I don’t want to use the HA camera integration. Is there anyway I can expose the MotionEye camera overview page on HA Lovelace UI?

Thanks.

Try the iFrame panel.

1 Like

Thanks for the reply. It seems can’t work with SSL.

How are you accessing Home Assistant remotedly? Do you have a reverse proxy set up?

Motioneye in Iframe + ssl works fine here using HA from its LAN and WAN ip.

Is it self signed cert?

Nope. I don’t have reverse proxy and I’m using DuckDns for remote access for my HA.

Are you using reserve proxy?

1 Like

Yes

For both HA WAN and motioneye

That’s the reason it doesn’t work, you need a reverse proxy.

Thanks. I’m currently using DuckDNS with port forward 8123 to 8123 and I access my HA remotely with https://duckdns.domain:8123. If I need to use the reverse proxy, what is the easiest way to implement it?

Install a reverse proxy, forward ports from router to the reverse proxy, configure the reverse proxy to route the traffic accordingly.

Are you saying HA needs reverse proxy or motioneye need proxy?

I can access motioneye in iframe at HA local IP without using reverse proxy.

My motioneye has its own domain and i only access through this. I believe for iframe you need valid https endpoint with valid (not self signed basically) cert.

Just sounded like putting HA behind proxy was recommendation but motioneye at https site is my recommendation. Reverse Proxy for motioneye is easiest way to achieve that.

I think we basically saying same thing but not want confuse @KCYeoh

1 Like

May i know how do you put the MotionEye into reverse proxy?

Hi, I have just setup the NGINX addon in my HA and I can now access my HA with local IP and remotely with DuckDNS. However, when I tried to incorporate the MotionEye (hosted at different RPi) link into my Lovelace, I can view them with only if I access my HA with local IP.

It can’t be viewed if I access my HA with remotely with DuckDNS and I guess it is because my MotionEye http is not encrypted since it is hosted at different RPi.

May I know is there any other solution for this?

I use nginx as reverse proxy for motioneye. This makes it ssl

I do not use addon but use nginx docker instead

1 Like

Thanks for the reply. I’m cracking my head on how to make my MotionEye that is hosted separately to be SSL certified.

I guess I will have to move on to the other NVR software.

I need some help. I have setup Nginx reverse proxy on the same RPi as the MotionEye setup. For my Nginx setup, I have a self signed SSL certificates using openssl and I’m able to access the https link of my MotionEye with my PC browser. Although there is warning message about it can’t verify the certificate source.

However, I’m still not able to access the MotionEye https link in my HA. It says refuse to connect. My HA is in https connection and so as my MotionEye link.

My understanding is since both links are https now and by right my HA should be able to access my MotionEye page.

Could it be my SSL certificate issue?

Yes

Im pretty sure iframe not allow self signed.
You can share HA cert but domain using to access motioneye must be included in cert

Hi, I’m not sure how to include MotionEye in HA cert. Can you please give me some guide? Also, I’m found this page. It uses the Nginx addon in HA to reverse proxy of local IP, the post is kinda old and I’m not sure if this will work. What do you think?

I was recommending recreate your current HA cert and include the domain for motioneye. Since you use addon probably exist easier method.

Since you use nginx addon I believe you can just add new proxy host for motioneye and have the addon generate valid ssl cert for you.

I not use this addon so I cannot verify steps for valid cert creation.