Back to the overview

Template in Home Assistant

template part of Home Assistant since 0.12

Local, push Set up in the user interface Quality: Internal

The Template integration allows creating virtual entities in Home Assistant using customizable templates. It connects with various components by generating entities like sensors, switches, or climate controls based on user-defined logic. Typically used for advanced automation, custom dashboards, and integrating non-standard devices.

Typical uses

  • Custom sensors
  • Automations
  • Virtual controls
  • Data aggregation

Facts about this integration

Compatible with Home Assistant
yes, official integration
Connection
Local, push – Talks to the device on your own network and is told about every change straight away.
Setup
in the user interface
Kind
Helper
Quality scale
Internal – Part of Home Assistant itself, not rated separately.
Installations
221,290 (30.9 % of the installations that share statistics)
Provides
Alarm control panel, Binary sensor, Button, Climate, Cover, Device tracker, Event, Fan, Image, Light, Lock, Number, Select, Sensor, Switch, Update, Vacuum, Weather
Maintained by
@Petro31, @home-assistant/core

Setup

  1. In Home Assistant open Settings → Devices & services.
  2. Click "Add integration" and search for Template.
  3. Follow the dialog – it asks for everything the integration needs.

Add to my Home Assistant

The link goes through my.home-assistant.io and opens the setup dialog in your own instance – no address of ours is involved.

Blueprints that use this integration

  • Script Devices Schedules Controller – Manages device schedules with scripts, sensors, and TTS using shell commands and automation. ♥ 4 · Import · Forum
  • Automation Send alerts using Telegram – Sends Telegram alerts using event triggers and sensor data. ♥ 4 · Import · Forum

All blueprints for it

Known issues and fixes

11 open issues and 45 bug fixes in the last twelve months are recorded for Template in the Home Assistant issue tracker. If something does not work, update first: the most recent fix shipped with Home Assistant 2026.10.0.

Open

  • open Different platforms in the Template Integration may behave inconsistently since May 24, 2025 · 2 reactions · 6 comments · #145552
  • open Template light cannot use temperature values in Kelvin since August 26, 2026 · 1 reaction · 1 comment · #180283
  • open Editing templates triggers unnecessary error logs since July 18, 2026 · 0 reactions · 11 comments · #176759
  • open Testing template triggers lacks proper simulation tools since April 28, 2025 · 0 reactions · 8 comments · #143831
  • open Template entities may incorrectly assume requirements are met since September 17, 2026 · 0 reactions · 2 comments · #182506
  • open Old weather template configurations are no longer supported since August 26, 2026 · 0 reactions · 2 comments · #180279
  • open The visual editor cannot configure transition support for template lights since August 27, 2026 · 0 reactions · 1 comment · #180361
  • open Common attributes in sensors and other entities are being phased out since August 26, 2026 · 0 reactions · 1 comment · #180281

Fixed

  • fixed in 2026.10.0 Template outputs are now properly converted to strings for list comparisons Fix #184123
  • fixed in 2026.9.0 Template sensors no longer show incorrect capability/state attributes Fix #180396
  • fixed in 2026.8.0 Template covers, trackers, and fans now handle missing restore data better Fix #176724
  • fixed in 2026.6.0 Device tracker zone options now display correctly in all languages Fix #172850
  • fixed in 2026.5.0 Template reloads now work more reliably Fix #169480
  • fixed in 2026.5.0 Uptime sensors using templates now show accurate values Fix #169743
  • fixed in 2026.5.0 Vacuum template configurations now use correct naming for clean area Fix #169599
  • fixed in 2026.4.3 Template binary sensors no longer lose device class information Fix #167775
  • fixed in 2026.3.4 Scripts in template entities now validate correctly Fix #165226
  • fixed in 2026.3.1 The 'this' variable now works properly in template configuration previews Fix #164866
  • fixed in 2026.3.0 Template entity previews in the UI now show correct variable values Fix #164740
  • fixed in 2026.3.0 Template sensors now handle integer and float values correctly Fix #164339

Source: the issue tracker of Home Assistant, as of October 25, 2026. The sentences are written by a language model from the titles of the issues; the reports themselves are on GitHub.

Check a specific device for known problems in the product check →

Source of this entry: the official documentation of the integration
The description was written by a language model from the facts listed here, not taken from the documentation.

Scroll to Top