#Need Advice: Individual automation for each phone, or single automation w/ branching "Then Do"s?

1 messages · Page 1 of 1 (latest)

marble snow
#

Currently, I have individual automations set up for my phone and my wife's phone for doorbell person & ring notifications, which use a separate automation to turn off/on when we enter/leave our home zone.

In an effort to clean up/consolidate my automations, I have considered instead migrating these to a single automation that instead run the phone notification actions in parallel, with if statements so they only fire when that person is away from home.

Has anyone A) gone down this path of notification automation implementation instead, or B) had an issues migrating from my method to the proposed method.

Thanks for any input!

distant timber
#

I have created a script for notifications that (upon other fields used to define the notification to be sent) has a dropdown field to select, who to notify. Me, my wife, both, both (smart), both (prioritize husband), both (prioritize wife).

Both (smart): send to whoever is home
Both (prioritize husband): if both are home, only husband receives it, otherwise whoever is home receives it, if no one is home both receive it.

That script is used massively in a lot of my automations and (at least for me) provides great flexibility while also giving structure.

Back to your question: I would consolidate your individual automations into one and use a dedicated notification script that incorporates all the logic parts for who should be the receiver.

marble snow
#

Oh that's an interesting solution to consider! If you're able to share any info on that script, that would be awesome.

Once I get the time I'll definitely consolidate.

distant timber
#

I used jinja to build the logic part, as that was just easier than using plain yaml. Check the part "Anwesenheit und Empfänger bestimmen" to see how the both (smart), both (prioritize husband) and prioritze (wife) have been implemented. I'm sure there's a more elegant way but that what worked for me for a while now.

marble snow
#

danke schön!