I use Z2M with aqara buttons. I want one automation that on a single click opens a cover, on a double click closes the cover. I would like to use the chosse construct in the action sequence.
i didn’t find any hints on using the trigger variable in templates. At least any hints how to solve my probleme, or even better how to examin the trigger variable in automations.
There’s an automation debugging tool in the next release. If you join the beta program you’ll be able to give feedback on its use and request the trigger states be added. Or wait for the next stable release and create a feature request then.
One of the main reasons to avoid using them if one intends to modify the resulting YAML code. They were designed to be managed by the Automation Editor (where their many options and unwieldy GUIDs are hidden from human eyes).
As for the trigger variable, it’s thoroughly documented in the link tom_I posted. The only mystery is usually the Event Trigger because events can have all sorts of data. To learn what a particular event contains, use Developer Tools > Events > Listen to events. It will reveal an event’s contents.