You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/_integrations/template.markdown
+356Lines changed: 356 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2792,3 +2792,359 @@ The blueprint can now be used for creating template entities.
2792
2792
Event `event_template_reloaded` is fired when Template entities have been reloaded and entities thus might have changed.
2793
2793
2794
2794
This event has no additional data.
2795
+
2796
+
## Legacy template deprecation migration guide
2797
+
2798
+
Legacy template entities are deprecated and will be removed in Home Assistant 2026.6.0. The deprecated template entities will produce a repair that guides you through the migration.
2799
+
2800
+
### Migrating a legacy sensor into a new template section
2801
+
2802
+
This example covers how to migrate a legacy template sensor into modern syntax.
1. Restart Home Assistant by going to **Settings** three dotted menu and selecting **Restart Home Assistant**. Or reload template entities by going to **Developer tools** **YAML** tab and selecting the **Template entities** reload button.
2925
+
2926
+
### Migrating a legacy sensor into an existing template section
2927
+
2928
+
This example covers how to migrate a legacy template sensor into modern syntax.
In this example, `configuration.yaml` already had a `template:` section. When copying the YAML, make sure to avoid adding double `template:` sections.
3036
+
3037
+
1. Restart Home Assistant by going to **Settings** three dotted menu and selecting **Restart Home Assistant**. Or reload template entities by going to **Developer tools** **YAML** tab and selecting the **Template entities** reload button.
3038
+
3039
+
### Migrating a sensor from an included file to an included file
3040
+
3041
+
This example covers how to migrate a legacy template sensor into modern syntax when the sensor exists in an included `sensors.yaml` file.
3042
+
3043
+
Take the example configuration. It's a configuration that is split between 3 files, `configuration.yaml`, `sensors.yaml`, and `templates.yaml`.
In this example, `configuration.yaml` already has a `template: !include templates.yaml`. When copying the yaml, make sure to avoid adding the `template:` section inside `templates.yaml`.
3149
+
3150
+
1. Restart Home Assistant by going to **Settings** three dotted menu and selecting **Restart Home Assistant**. Or reload template entities by going to **Developer tools** **YAML** tab and selecting the **Template entities** reload button.
0 commit comments