Skip to content

Template Tiles

Template tiles show custom data using Home Assistant’s Jinja2 template language — the same syntax used in HA dashboards and automations. When a single entity tile isn’t enough, templates let you combine, calculate, and format anything.

{/* video: template tile examples */}

  • “3 doors open” — Count your open door sensors
  • “72°F / 45% humidity” — Combine multiple readings on one tile
  • “Welcome home!” when you arrive, “Away” when you leave
  • Current energy usage in kWh — Sum across multiple power sensors
  • “Washer done in 12 min” — Countdown based on a timer entity
  • “Next: Team Meeting 2pm” — Pull from your calendar

Templates are evaluated by Home Assistant’s built-in template API. The app sends your Jinja2 template to HA and displays the result on the tile. Templates re-evaluate on a configurable refresh interval so data stays current.

{{ states.binary_sensor | selectattr('state', 'eq', 'on')
| selectattr('attributes.device_class', 'eq', 'door')
| list | count }} doors open

In the editor, add a tile and switch it to Template mode. Write your Jinja2 template and set the refresh interval. You can customize the tile’s icon, colors, and size like any other tile.