48
submitted 4 months ago by rambos@lemm.ee to c/homeassistant@lemmy.world

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

Thx

you are viewing a single comment's thread
view the rest of the comments
[-] dan@upvote.au 25 points 4 months ago* (last edited 4 months ago)

Notifications go through Google Firebase servers. This is documented here: https://companion.home-assistant.io/docs/notifications/notification-details/. Your HA server sends the notification to Google, which then sends it to your phone. They don't store the notification they just relay it.

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)

[-] comradegreetingcard@lemmy.ml 12 points 4 months ago* (last edited 4 months ago)

Under the Companion app settings, select your server, then persistent connection

https://companion.home-assistant.io/docs/notifications/notification-local/

[-] dan@upvote.au 9 points 4 months ago

That's what I was thinking of! It's not in the settings section I'd expect it to be in (notifications) so I thought it wasn't doable any more.

[-] rambos@lemm.ee 3 points 4 months ago

Thank you. It makes sense now

[-] GreatAlbatross@feddit.uk 2 points 4 months ago

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!"

[-] dan@upvote.au 2 points 4 months ago

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)

this post was submitted on 23 Jun 2024
48 points (96.2% liked)

homeassistant

11921 readers
4 users here now

Home Assistant is open source home automation that puts local control and privacy first. Powered by a worldwide community of tinkerers and DIY enthusiasts. Perfect to run on a Raspberry Pi or a local server. Available for free at home-assistant.io

founded 1 year ago
MODERATORS