Variables in trigger-bases template sensors

I fixed that.


So here’s how it all works:

State Based

  1. Variables at the root level spill into variables at the entity level.
  2. Variables at the entity level are shared with all template options, including attributes and template actions.
  3. Variables at the root level are resolved on configuration load.
  4. Variables at the entity level are resolved on configuration load.
  5. Variables do not update any state template option.

Trigger Based

  1. Variables at the root level spill into variables at the entity level.
  2. Variables at the entity level are shared with all template options, including attributes and template actions.
  3. Variables at the root level are resolved between triggers at the root level and actions at the root level
  4. Variables at the entity level are resolved after conditions at the root level and all template options on the entity level
4 Likes