Vacuum template status sensor

Hi all!

I have a ‘dumb’ infrared (IR) robo vacuum that I’m in the process of integrating into Home Assistant as a vacuum template. Everything works beautifully, but I’m confused about how to attribute status (e.g. cleaning, charging, etc) via value_template. I plan to use the status to update my floormap, build automations, etc.

Below is what I have so far. Do I need to create a sensor template (in this case sensor.vacuum_state), or is this somehow handled automatically by the vacuum template. I didn’t find the template documentation very helpful here.

vacuum:
  - platform: template
    vacuums:
      living_room_vacuum:
        friendly_name: "MyGenie Robo Vacuum"
        fan_speeds:
          - Normal
          - Turbo
        value_template: "{{ states('sensor.vacuum_state') }}"
        fan_speed_template: "{{ states('sensor.vacuum_fan_speed') }}"
        start:
          - service: remote.send_command
            target:
              entity_id: remote.broadlink_rm4_pro_remote
            data:
              device: MyGenie Robo Vacuum
              command: Start/stop
        stop:
          - service: remote.send_command
            target:
              entity_id: broadlink_rm4_pro_remote
            data:
              device: MyGenie Robo Vacuum
              command: Start/stop
        return_to_base:
          - service: remote.send_command
            target:
              entity_id: remote.broadlink_rm4c_mini_downstairs_office_remote
            data:
              device: MyGenie Robo Vacuum
              command: Home
        clean_spot:
          - service: remote.send_command
            target:
              entity_id: remote.broadlink_rm4_pro_remote
            data:
              device: MyGenie Robo Vacuum
              command: Spot