Vacuum Card

The hc_vacuum_card is used to control a robot vacuum. It shows the supported return-to-base, pause, and start controls, plus up to three configured segment cleaning buttons. Unknown and unavailable vacuums have disabled controls.

Usage

  - type: custom:marao-card
    template: hc_vacuum_card
    entity: <your vacuum entity>
    variables:
      action_1:
        icon: mdi:door
        segment: 21
      action_2:
        icon: mdi:sofa
        segment: 22
      action_3:
        icon: mdi:bed
        segment: 23

Remember to take care of indentation

Variable / entry

Variable Default Required Example
entity   Yes vacuum.downstairs
icon mdi:robot-vacuum No mdi:robot-vacuum
action_1.icon mdi:door No mdi:silverware-fork-knife
action_1.on_action vacuum.send_command No vacuum.send_command
action_1.segment Empty No 16
action_2.icon mdi:sofa No mdi:sofa
action_2.on_action vacuum.send_command No vacuum.send_command
action_2.segment Empty No 17
action_3.icon mdi:bed No mdi:bed
action_3.on_action vacuum.send_command No vacuum.send_command
action_3.segment Empty No 18

More info

The room buttons send the app_segment_clean command. Segment IDs are integration-specific, so update them to match your vacuum map. Segment buttons require native command support. A configured on_action overrides the service; services other than vacuum.send_command receive the entity target without command parameters. There are no implicit segment IDs: each button appears only when its segment is configured.


Marao Dashboard is distributed under the repository's license.