Prevent template from updating

Hi,

let us assume that I have a template

{{ states('a') | float + states('b') | float }}

This will always update once a or b change. However, I want it to update only in case a changes. I know that there are triggers for templates but I have a long list of sensors included as a file into my configuration.yaml and I try to avoid modifying this structure.

Is there a way to only “read” the value of b but do not cause any update?

Thanks in advance
Jan

Yes and you mentioned it. A triggered template sensor. That is the only way.

1 Like

Thank you for sorting this out :pray: