These are still “experimental” so they’re not “fully documented”*… and there are still a significant number of triggers and conditions that are waiting to be implemented. But, you can see what the YAML will look like by playing around in the Automation editor. Here’s an example of what a label-based scene trigger and label-based light trigger look like currently:
trigger: light.turned_off
target:
label_id: real_lights
options:
behavior: any
From what I’ve seen, it looks like the current methodology is to develop each of the domain/integration-specific event versions first. So, it might be a little while before we see more open/broad triggers like the one you have described.
* With such a huge possible variety of triggers and conditions, and the possibility that integrations may be able to supply their own specific triggers in the future, these triggers may never get the degree of documentation that current triggers have. Just look at how lightly-documented Device Triggers are compared to State or Calendar triggers.
Ah good call I didn’t think to make one and then look at the generated YAML after the fact. Thanks! Looking forward to having this implemented soon enough.