ALL zones trigger

I’ve just started using HA. Love it…

I’ve set up some automation triggers for enter and leave a given zone. I really want to do basically the same thing in each case but I can’t find a way to trigger on ANY zone.

Ideally:
automation:

  • alias: ‘General Enter’
    trigger:
    platform: zone
    event: enter
    zone: zone.*
    entity_id: device_tracker.owntracks_myphone
    action:
    service: shell_command.send_message_enter_zone

I then use {{ states.device_tracker.owntracks_myphone.state }} to get the zone name in the script.

Right now, I have to put an alias/trigger/action block for EVERY zone…

Thanks.

Check this