Set an attribute of a value_template sensor

Is there a way to set an attribute of a value_template sensor? Reading through the docs (https://www.home-assistant.io/docs/automation/templating/) I am able to set the state, but see no mention of how to set an attribute.

1 Like