State.context to UI automation

Yeah this will not work for all automation triggers. The trigger has to have an entity or device it can call a parent, so context.parent_id is available for:

This is an untested list and based on my understanding of how the parent context id is generated.

2 Likes