# Template

> A snippet of Jinja2 that computes a value from states, like the average temperature of a few sensors.

Source: https://contributors.home-assistant.io/glossary/template/

- In code: `Template`, `cv.template`
- Also: templates, templating, Jinja

Templates work in many places: automations, scripts, notifications, and template entities. They update when the states they use change.

## Related terms

- [State](https://contributors.home-assistant.io/glossary/state/): The current value of an entity, like `on`, `21.5`, or `playing`, together with its attributes.
- [Helper](https://contributors.home-assistant.io/glossary/helper/): An entity that users create in the UI to hold a value or combine others, like a toggle, a number, a timer, or a group.
