Legacy template entities (alarm_control_panel, binary_sensor, cover, fan, light, lock, sensor, switch, vacuum, weather) have been removed in 2026.6. You have to migrate to modern template entity syntax.

Table of Contents

ha 2026.5

Old Syntax

#
# ---------------------------------- vacuum Template -----------------------------------
#
# https://www.home-assistant.io/integrations/vacuum.template/  old
# https://www.home-assistant.io/integrations/template/#state-based-vacuum---custom-attributes  new
vacuum:
  - platform: template
    vacuums:
      virtual_hallway_room_vacuum:
      #  unique_id:  virtual_hallway_room_vacuum

        start:
            action: script.vacuum_start
        pause:
            action: script.vacuum_pause
        stop:
            action: script.vacuum_stop
        return_to_base:
            action: script.vacuum_return_to_dock
        clean_spot:
            action: script.vacuum_clean_spot
        locate:
            action: script.vacuum_locate_vacuum
        set_fan_speed:
            action: script.vacuum_set_fan_speed
            data:
              speed: "{{ fan_speed }}"
        fan_speeds:
            - Low
            - Medium
            - High
        value_template: "{{ states('sensor.deebotx5pro') }}"
        # battery_level_template: "{{ states('sensor.deebotx5pro_battery')|int }}"
        fan_speed_template: "{{ states('sensor.vacuum_fan_speed') }}"
        attribute_templates:
          status: >-
            {% if (states('sensor.robot_vacuum_robot_cleaner_movement') == "after" and states('sensor.robot_vacuum_robot_cleaner_cleaning_mode') == "stop")  %}
              Charging to Resume
            {% elif states('sensor.vacuum.deebotx5pro') == "auto" %}
              Cleaning
            {% else %}
              Charging
            {% endif %}

Legacy (removed in 2026.6)

 

Unsupported YAML configuration for the command_line 

Configuring the template integration by adding platform: template under the vacuum: key is not supported. The template integration must be configured under its own template: key instead.

To resolve this:

Remove the following from your YAML configuration file:
vacuum:
  - platform: template
Move the configuration under the template: key instead.

Restart Home Assistant.

 

 

ha 2026.6

New Syntax

#
# ---------------------------------- Template -----------------------------------
#
# https://www.home-assistant.io/integrations/template
# https://community.home-assistant.io/t/how-to-define-area-in-configuration-yaml/240296/13
template:
  # https://www.home-assistant.io/integrations/template/#vacuum   new template 20260711
  - vacuum:
      - name: Living Room Vacuum
        clean_segments:
          action: script.vacuum_start
          data:
            segment_ids: "{{ segment_ids }}"
        segments: >-
          {{ [
            {'id': '1', 'name': 'Kitchen'},
            {'id': '2', 'name': 'Living room', 'group': 'Upstairs'},
          ] }}
        start:
          action: script.vacuum_start
        unique_id: living_room_vacuum

 

 

 

Comments

Be the first to post a comment

Post a comment