Hi, all. My wife and I recently got new phones, and it got me thinking again about how notifications work.

Currently I have several automations (maybe 10) that send notifications to my phone, her phone, both, and possibly other devices.

But when we get a new phone, or replace a tablet, etc., I have to update every single one of those automations. And I inevitably forget some or introduce errors.

Is there a better way to do this? For example, it’d be nice if I could abstract the concept of “my phone” out in those automations, then I’d only have to change the device “my phone” in one place, rather than a bunch of places.

Any thoughts on this? Maybe I’m missing a way to do it. Thanks.

You are viewing a single thread.
View all comments
0 points

I set up a notify group for each of us. I use notify.me and add/remove the devices as needed.

notify:
- name: me
  platform: group
  services:
   # - service: mobile_app_pixel_2_xl
    - service: mobile_app_pixel_6

- name: her
  platform: group
  services:
    - service: mobile_app_iphone

Then you can use it like any other service:

service: notify.me
data:
  message: Test
  title: Alert!
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

  • 620

    Monthly active users

  • 198

    Posts

  • 1K

    Comments

Community moderators