Automation: how to retreive triggered entity and zone information using multiple triggers in one automation (DRY-programming)

Sorry about that. I should have written {{ trigger.zone.name }}. The name property should return the friendly name as long as one has been assigned, otherwise it returns the entity ID.

In your original posts you asked about other approaches to keep your configuration DRY… you could use a single State trigger with a Choose action instead of setting up 2 Zone triggers for each zone. By setting appropriate to: and/or from: values you can limit which zones trigger the notifications.

1 Like