#How to turn off notifications when outside home network?

1 messages · Page 1 of 1 (latest)

amber ocean
#

I have not exposed my HA outside my home network, but for some reason when I am outside my house I still get notifications from my HA server. I don't want to get notifications when I am outside my home network. How can I turn those off, for both Android and iOS devices?

#

If I want to get notified when I'm outside home, I have a road warrior VPN self hosted for that, I can connect to that and I'm basically on my home network, but otherwise I don't want notifications outside my home network.

fresh ledge
#

Sounds a bit like you want to not use Firebase for notifications. You could set the Companion app to persistent connection: Always

amber ocean
fresh ledge
#

No, always. As I thought that notifications would not work with a persistent connection that's not there (aka, you can't reach the HA server).

amber ocean
#

Well, its already set to Always, and I am ATM on mobile cellular network, I sent test notification, and I am still getting it.

fresh ledge
#

Then implement a device tracker and simply don´t send notifications when youŕe not home. As it then seems it always does a fallback to Firebase

amber ocean
#

Why force FCM? Should be able to disable it.

near island
#

Both android and ios apps use their respective messaging platforms without need for setting up something else. It's just convenient I guess.

The number of people only wanting notifications while on the local network is a minority I imagine.

amber ocean
#

I understand. But is there really no way to turn it off?

near island
#

disable the automation when phone is not on local network?

amber ocean
#

How to check if a device is not on local network?

fresh ledge
#

one of the many device tracker integrations

amber ocean
#

Could you point me to some documentation?

slender juniper
#

the full app has a fallback to FCM, if you really dont want FCM you'll need to use the minimal version which does not include things like device tracker however given your instance is not remotely accessible dont think you need that. if you only plan to use the app at home why use teh app at all and not the web page?

crystal musk
#

if you have an integration for your router, it will show connected devices and ip's , so if client connected to home wifi, disable automation.

amber ocean
#

I notice that you can set internal Home network and Internal connection URL inside the HA companion app on both Android and iOS devices.

#

Can those be perhaps checked as a condition?

#

I personally use Android and have set my home WiFi SSID and checked VPN connected in Home network and set the HA IP for Internal connection URL.

#

Also nothing HA is responsible for (I think) but my OPNsense integration updates home state to not_home after 15 mins... can this be adjusted?

crystal musk
#

dont know about that, maybe other users can kick in..