For my washing machine I’d like to only get notifications when I’m at home.
This is my example in automations.yaml
- alias: notification trigger: ... action: - service: notify.user_one data: message: "my message" - condition: state entity_id: 'device_tracker.user_two' state: 'home' - service: notify.user_two data: message: "my message" - service: notify.user_three data: message: "my message"
The problem with this is that the third user won’t get the message, when the second one isn’t at home. So the condition will block everything below.
Do you know a nice way to avoid this? I have two ideas, but I don’t know if there is a better way.
- One script for each user. But I also don’t know if the conditon of one script will block the others below?
- Turn on an input_boolean and trigger three automations with that boolean. Each with its own condiotn and message. I don’t like this idea, because it would mean much unneccesary code.