#How to turn off notifications when outside home network?
1 messages · Page 1 of 1 (latest)
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.
Sounds a bit like you want to not use Firebase for notifications. You could set the Companion app to persistent connection: Always
Its already set to Always. Or do you mean set to Never?
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).
Well, its already set to Always, and I am ATM on mobile cellular network, I sent test notification, and I am still getting it.
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
Why force FCM? Should be able to disable it.
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.
I understand. But is there really no way to turn it off?
disable the automation when phone is not on local network?
How to check if a device is not on local network?
one of the many device tracker integrations
Could you point me to some documentation?
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?
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.
I could do that, but then if I connect to my road warrior VPN, it will still detect my device as not_home.
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?
dont know about that, maybe other users can kick in..