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

9 points

You can use telegram integration to do that. Link.

permalink
report
reply
25 points
*

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)

permalink
report
reply
12 points
*

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

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

permalink
report
parent
reply
9 points

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.

permalink
report
parent
reply
3 points

Thank you. It makes sense now

permalink
report
parent
reply
3 points
*

They don’t store the notification they just relay it.

Yes they do

E: additional context

The data these two companies receive includes metadata, detailing which app received a notification and when, as well as the phone and associated Apple or Google account to which that notification was intended to be delivered. In certain instances, they also might also receive unencrypted content, which could range from backend directives for the app to the actual text displayed to a user in an app notification.

permalink
report
parent
reply
3 points
*

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.

permalink
report
parent
reply
1 point

I don’t see anything in that article that says that Google store the contents of the notification

Not sure how you think they hand over information they don’t have?

permalink
report
parent
reply
2 points

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.

permalink
report
parent
reply
0 points

My guy, how is it you think they are capturing and relaying data that they haven’t stored?

permalink
report
parent
reply
2 points

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

permalink
report
parent
reply
2 points

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)

permalink
report
parent
reply
4 points

HA mobile application opens up a notify service that I use to send notifications specifically on my mobile device HA application.

permalink
report
reply
11 points
*
11 points
*

There’s a few comments like this in this thread, from people that I guess didn’t actually read the post :)

They weren’t asking how to do it; they were asking why it works out-of-the-box with the standard Home Assistant notifications.

You don’t need ntfy; the standard Home Assistant app notifications work anywhere since they route via Google Firebase.

permalink
report
parent
reply
4 points

Oh, you’re right

permalink
report
parent
reply
1 point

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…

Just sayin’…

permalink
report
reply

homeassistant

!homeassistant@lemmy.world

Create post

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

Community stats

  • 550

    Monthly active users

  • 206

    Posts

  • 1.1K

    Comments

Community moderators