Device template functions

These template functions let you work with devicesA device is a model representing a physical or logical unit that contains entities. in Home Assistant. Look up device names, IDs, attributes, and find which entitiesAn entity represents a sensor, actor, or function in Home Assistant. Entities are used to monitor physical properties or to control other entities. An entity is usually part of a device or a service. [Learn more] belong to a device.

Home Assistant extends the Jinja2 template engine with many custom functions, filters, and tests. Each function on this page has its own page with detailed descriptions, parameters, and practical examples.

New to templates? Start with the templating documentation to learn the basics.