Best approach for handling dynamic notification routing based on presence detection?

Hi everyone,

I’m currently revamping my home automation setup in Home Assistant and trying to build a clean, scalable notification blueprint/script.

My current goal is to route critical and non-critical alerts dynamically depending on who is currently home and their device tracker status (e.g., if anyone is in the living room zone, send notification to the local wall tablet; otherwise, send it to companion apps).

I am trying to avoid creating a massive web of nested choose conditions in my automations. What is the cleanest template structure or best practice you guys use for managing multi-user presence-based notification routing?

Here is a snippet of my current approach, but it feels a bit cluttered:

Did you forget the snippet?

Have a look at analytix-energy-solutions/ticker: Smart notification management for Home Assistant. Centralized routing, user subscriptions, smart delivery.

It allows you to create channels that users and devices can be subscribed to in order to receive notifications. In addition you can configure conditions allowing you to check presence.