Hello,
I built a small Home Assistant infrastructure layer that decouples automations from specific mobile phones.
Instead of calling notify.mobile_app_<phone> directly inside automations, this approach introduces a small abstraction layer using helpers and scripts.
The goal is to make automations completely independent from the actual phones used.
Repository:
https://github.com/antoinevalentinHA/ha-mobile-notification-architecture
Problem
Many Home Assistant setups contain things like:
service: notify.mobile_app_pixel_7a
This creates a few issues:
• changing phone requires editing many automations
• device names leak everywhere
• duplicated notification logic
Solution
This repository introduces a small notification infrastructure layer:
Automations
│
â–Ľ
script.notification_send
│
â–Ľ
notify.mobile_app_<phone>
│
â–Ľ
Phone
Phones are defined through helpers:
input_text.user_1_phone
input_text.user_2_phone
From these values, the system automatically derives:
notify.mobile_app_<phone>
device_tracker.<phone>
sensor.<phone>_wi_fi_bssid
So replacing a phone only requires updating one helper.
No automation changes required.
Included components
• notification abstraction scripts
• phone helper synchronization automation
• optional Wi-Fi BSSID dynamic sensors
• example Lovelace settings dashboard
Everything is 100% native Home Assistant (no custom integrations).
Feedback is welcome.