Template in Home Assistant
template
part of Home Assistant since 0.12
Template is an official Home Assistant integration for Alarm control panel, Binary sensor, Button, Cover, Device tracker, Event, Fan, Helper, Image, Light, Lock, Number, Select, Sensor, Switch, Update, Vacuum and Weather. Talks to the device on your own network and is told about every change straight away.
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
- 202,637 (29.6 % of the installations that share statistics)
- Categories
- Alarm control panel, Binary sensor, Button, Cover, Device tracker, Event, Fan, Helper, Image, Light, Lock, Number, Select, Sensor, Switch, Update, Vacuum, Weather
- Provides
- Alarm control panel, Binary sensor, Button, Cover, Device tracker, Event, Fan, Image, Light, Lock, Number, Select, Sensor, Switch, Update, Vacuum, Weather
- Maintained by
- @Petro31, @home-assistant/core
Setup
- In Home Assistant open Settings → Devices & services.
- Click "Add integration" and search for Template.
- Follow the dialog – it asks for everything the integration needs.
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
- Automation Send alerts using Telegram
Known issues and fixes
16 open issues and 43 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.9.0.
Open
- open Different platforms in the Template Integration may behave inconsistently, leading to unexpected results.
- open The Template Device Tracker's GUI displays the wrong state information. Affects: Template Device Tracker
- open Editing a template may cause unnecessary TemplateError messages to be logged.
- open A Template sensor may cause Home Assistant to restart unexpectedly. Affects: Template sensor
- open Setting up a Template weather integration may fail due to configuration errors. Affects: Template weather
- open Reported problem #143831
- open A Light template may not display the correct color temperature in Kelvin. Affects: Light template
- open Using Template blueprints with configuration entries as a list may not work correctly. Affects: Template blueprints
Fixed
- fixed in 2026.9.0 Template sensors now handle attributes more reliably without affecting options.
- fixed in 2026.8.0 Template covers, device trackers, and fans now handle missing restore keys better. Affects: Template cover, device_tracker, fan
- fixed in 2026.6.0 Bug fix #172850 Affects: Template device trackers
- fixed in 2026.5.0 Reloading templates now works more smoothly without interruptions.
- fixed in 2026.5.0 The uptime Template sensor now shows the correct uptime information. Affects: Uptime template sensor
- fixed in 2026.5.0 Vacuum Template configurations now use the correct names for clean area settings. Affects: Vacuum template
- fixed in 2026.4.3 Template binary sensors now correctly update their device class when needed. Affects: Template binary sensors
- fixed in 2026.3.4 Scripts within Template entities are now validated correctly. Affects: Template entities
- fixed in 2026.3.1 The 'this' variable in Template options now references the correct entity.
- fixed in 2026.3.0 The preview of Template entities in the UI now shows the correct 'this' variable value. Affects: Template entities
- fixed in 2026.3.0 Template sensors now correctly handle integer and float values without errors. Affects: Template sensor
- fixed in 2026.2.0 Template weather integrations now display humidity data accurately. Affects: Template weather
Source: the issue tracker of Home Assistant, as of September 13, 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
