I would like some notifications to be sent to all connected mobile apps. I do rotate phones in use fairly often for work reasons. It would be great to have HA automatically add mobile apps to an “all_mobile_apps” Notify Group, every time a new mobile app connects. I have been exploring whether this type of construct is possible in HA but couldn’t find a solution.
Any hint or idea on how to approach this?
Ideally mobile apps would get added to the group as they connect to the HA server. Alternatively, restarting HA after switching phones would work as well - at least not having to touch HA configuration every time would be a time saver (and also prevent problems)
Hello, it doesn’t seems to solve your problem right? Were you able to find one? I am looking for something similar: To have notify group refreshed automatically with new mobile devices, or to have mobile_app_* in the notify group.
I’ve just started using companion app notifications, and it feels like the UI support is far behind what’s possible with the amazing set of features (especially on Android).
To help me out, and to make it feel like my work will scale, I’ve made my own utility script where I’ve used the fields feature to give names and descriptions to some of the options. In my script I also then hard-code the few devices I send alerts to.
Then, in my automations, I can just call that script and choose which (or all) of the devices to send alerts to, and what sort of alerts.
The most interesting thing (that feels like a partial answer to the OP) is that you can set a variable that defines the entire service call payload, so that you don’t need to duplicate your alert info. You’ll see that called data_payload below.