Fist of all I’m noob. I would make 2 automations for each telegram. the condition also for specific device ‘home’
If condition both met the 2 automation will run to both telegram. if one met will run to one telegram.
The way I would do it is utilising a service_template under the action component. You’ll have to get rid of your condition. Have a look at the example on the templating page for more info:
I’m also trying to get this to work but I have 3 devices to track if they are at home. I can make a big chunk of if statements but that not really flexible. Did someone in the meantime find a better solution to this problem?
I don’t think there isn’t any. The most elegant solution is to extend the group notification platform with some sort of filter option to include or exclude notification services based on conditions or template logic.
It can even be configured in the automation UI editor.
This allows you to have choose conditions for every person with an action block that is only executed if the condition is met, e.g. if that person is home.