How do I get phone notifications from my server while I'm not connected to my home network?
Hey guys. Im running Home Assistant in docker container for few years and I'm super happy with it. The only way I access my server when not home is wireguard VPN. I noticed that I'm still receiving notifications even when not connected to VPN. I wonder how is that possible?
I don't have sub for HA Cloud or Nabu Casa. I also don't own a domain, using duckdns for wireguard connection and reverse proxy (npm). I thought I have 100% local setup, but I guess there is a Google or HA server in between. I don't want to disable the feature, I just want to know where is my data being sent
Most mobile apps do something like this. One reason is to improve battery life - your phone can have a single connection to a Google server instead of every app needing its own separate connection.
There used to be a way to use local notifications (meaning you have to be on the same network, either locally or via a VPN), but I can't find the setting any more so maybe it's gone now. (edit: this is still possible)
I don't see anything in that article that says that Google store the contents of the notification. It just says that they link push tokens to emails, which is true - they have to know who to send the push notification to.
In any case, if you don't want Home Assistant notifications being relayed through Google, you can use a persistent connection so that the app connects directly to your Home Assistant server.
My friend, did you read what the article you linked says? That isn’t storing the data, that’s capturing the data and relaying it, as directed by court order.
It definitely threw me the first time I was out of the house.
I decided the best solution was just to limit alerts to non-sensitive things.
While I'm generally very big on privacy, I really don't give a monkeys if Apple/Google is relaying a message that says "Cat in garden!"
You can enable a persistent connection to get alerts directly without relaying them through Google, but then you need to have a connection to your Home Assistant server all the time (eg by using a VPN or by exposing it publicly)
I don't know this for sure, but if you installed the mobile companion app thru the Store for your platform, then the integration is probably using its push API to reach your device remotely.
I'm >90% sure notification workflows find me even when I am remote and untethered from home when I notify the app on my mobile devices.
Just to add... if you don't want this, the minimal version of the HA app doesn't use 3rd party systems for notifications (you'd need to setup something yourself), so if this is a problem for you, there's also that option..
There are GSM modems that can be used by the server to send an SMS. I nearly bought one when it was cheap, but noticed just in time that the GSM level of that device was 3, which is no longer available here. And it needs a valid Sim card to work.