Is there a self-referencing variable available when a trigger is defined in template entities?

In the template documentation, it’s stated that the this self-referencing variable is available in trigger and stated-based entities. I’ve tried it with a template select. It is available if the trigger section remains undefined. With a trigger defined, though trigger is available, this isn’t. Is this unavailable with a trigger defined or does it use a different variable name?

Here’s an example of a Trigger-based Template Sensor whose template references both trigger and this (i.e. both variables are available).

1 Like

Odd. Perhaps, it depends on the specific trigger. I’ll have to investigate more.

Post what isn’t working for you.