Can I make the companion app switch between a local address and Nabu Casa address automatically?

Can I make the companion app switch between a local address and Nabu Casa address automatically?
Do I always have to have my companion app set to Nabu Casa address requiring it to go out to the internet even when I am at home or is there a way have it switch to the local address when it knows the location of my phone is at home?

Actually I can’t even connect to my HA instance using the companion app with the Nuba Casa url when I am at home.

Yep, just provide the WiFi for your home and enter the internal address (it’s all in the same place in the app), then it will only use that when on that network, otherwise it will use the Nabu Casa address.

3 Likes

@brooksben11 Thanks for your reply. I did find these settings. I still have an issue though, I have two cameras setup using the ‘generic camera’ integration. These do not show images when I am not connected locally. They happen to be UniFi cameras and I can see them remotely with the Protect app from UniFi so it is something to do specifically with Home Assistant. Any ideas here? Maybe post a new question? Thanks.

Don’t have cameras and probably makes sense to start a separate thread, but it sounds like you’re using a local connection with HA to view the cameras, so it will only work when you’re actually local (or using a VPN).

I see your point but you would think Nabu Casa/HA would do the address translation for me or at least should as to follow your logic anything that has a local address is not going to work in Nabu Casa and that would make it very low value as a remote access solution.

I believe when you’re viewing a camera, it’s just pointing to the local address so HA really isn’t even involved. When you’re not local, it won’t work. But like I said, I don’t use cameras and it’s a separate topic, so it’d be best (and you’ll get better responses) if you start a new thread.

Any reason you’re not using the integration for them?

I installed the camera before I had the UniFi Protect Integration. I have plans for other cameras that are not in the walled garden of UniFi and UniFi protect. I can certainly try it but based on what you are saying that is only working because of the UniFi cloud - not local control which is what all good HA users want.

I just did a side by side test, the protect has a 2 second lag locally on the image. Remotely of course I can’t tell as the generic integration does not work.