Welcome Home Automation with Multiple Users

I’ve been really enjoying setting up my smart home, and one feature I’ve been trying to perfect is a welcome home automation. The idea is simple: when someone arrives home, the system should greet them. But here’s the catch—I want it to work for multiple people and even detect if the whole family is back together!

I’ve set up an automation using presence sensors for each family member. When one person arrives, it triggers a greeting via the smart speaker. That part works smoothly. But the challenge comes when multiple people arrive at the same time. I want the system to say something like, “Welcome home, [Name1] and [Name2]!” or, if everyone is back, “Welcome home, all together!”

I’ve tried using templates in the automation to check who’s home, but it’s been a bit tricky. The system sometimes gets confused if two people arrive at slightly different times. I’ve also experimented with delays to ensure all sensors update before triggering the greeting, but it’s not perfect.

Has anyone tackled something similar? I’d love to hear about your experiences or any clever workarounds you’ve discovered. Maybe there’s a more efficient way to handle multiple conditions and dynamically generate the right greeting message. Let’s brainstorm together!

Cheers, and thanks for the support! :raised_hands: