Better notifications to mobile device? New phone = lot of edits

I have a bunch of automations using notify.mobile_app_old_phone that I now have to change to notify.mobile_app_new_phone. Unfortunately, I can neither edit all automations at once via yaml (unlike the frontend), nor can I find a list of which automations are sending notifications to my old device. I have to click into each and every one just to change:

action:
  - service: notify.mobile_app_old_phone
    data:
      message: This is a notification

to

action:
  - service: notify.mobile_app_new_phone
    data:
      message: This is a notification

I shouldn’t have to deal with this again for two years, but why deal with it at all? What’s the better way to do this?

Make a notification group. Then point all your services to that group. That group will just contain your mobile device, or multiple devices. When you change your phone, update the groups device(s).

2 Likes