Custom vacuum-card for Home Assistant

Hi, can’t see it in HACS, how to install this custom card? Tried to install manually but that did not work either. Please suggest.

Did you search for

Vacuum Card

In HACS?

Yes, that is under different name there. I have managed to install it, but I face with different issue now. It shows OK on PC but on Android and on Raspbian it shows red with error “Custom component does not exist: vacuum-card” Same as Mabaels post above.

I would like to ask if there’s any way to hide the “location” button that find vaccum? I Have many rooms and in card I don’t see all of they icons

I love this card, I use it for my Litter Robot and this is how it looks:

LL Litter Robot

Love IT!

The only thing is the status is not displayed, but the sensor is there on the device:

In the screenshot above the status I want to display is “Echo Beach Waste Drawer”, but in the first screenshot you will see in the top right hand corner all I have is a %.

Any ideas?

I like this card a lot and I altered it to my needs but I do have a problem and I can’t figure it out - if someone can help me Xiaomi Vacuum - error on vacuum_clean_segment: expected int for dictionary value @ data['segments']
image

1 Like

Probably missing something obvious, but how do I get the stats to populate at the bottom of the card?

Mine shows like this without the data…

Card code:

type: custom:vacuum-card
entity: vacuum.roborock_vacuum_s5e
image: default
stats:
  default:
    - attribute: filter_left
      unit: hours
      subtitle: Filter
    - attribute: side_brush_left
      unit: hours
      subtitle: Side brush
    - attribute: main_brush_left
      unit: hours
      subtitle: Main brush
    - attribute: sensor_dirty_left
      unit: hours
      subtitle: Sensors
  cleaning:
    - attribute: cleaned_area
      unit: m2
      subtitle: Cleaning area
    - attribute: cleaning_time
      unit: minutes
      subtitle: Cleaning time

Had this working before but I can’t quite remember what I had in it.

Have you updated the card to the latest?

Yeah, updated via HACS. I noticed that the attributes seem missing from the vacuum when I look at states in developer tools. I see them in the vacuum map card so its no biggie I guess.

Don’t forget to reactivate some entities for your vacuum (there have been some changes with HA 2021.11.x

If you have the Xiaomi Miio Integration installed:
Settings → Integrations → Xiaomi Miio → Roborock Device → Entities

The attributes are now sensors since 2021.11.x
You have to change your Lovelace config as well after activating the sensors
Something like this

            stats:
              default:
                - entity_id: sensor.xiaomi_vacuum_filter_left
                  unit: Stunden
                  subtitle: Filter
                - entity_id: sensor.xiaomi_vacuum_side_brush_left
                  unit: Stunden
                  subtitle: Seitenbürste
                - entity_id: sensor.xiaomi_vacuum_main_brush_left
                  unit: Stunden
                  subtitle: Hauptbürste
                - entity_id: sensor.xiaomi_vacuum_sensor_dirty_left
                  unit: Stunden
                  subtitle: Sensoren

1 Like

Awesome, thanks for that. Wasn’t sure how to do entity id’s in the setup. Though they seem to be displayed in seconds which I am not sure is very useful.

Hello,
Same problem and can not convert to hour.
Tried the template solution, but something wrong because it doesn’t reach the entity.
Any other solution?

Hi!
Awesome work! I do not know why, but from a week ago or so I can not get the action button icons showed up. I have already checked I am in the latest release and I am using “Hass” icons instead of “mdi”.

Do you have some idea to fix it?

i see it supports 360 s7 pro ? How would this be supported, i know of no way on how to integrate these other then a alexa skill/routine.

Change “actions” to “shortcuts” in the config. That is a change introduced in v2.0 according to changelog.

Thank you @flux-i I saw it, but even with that I don’t gt the icons show up :sweat_smile:

Hmm, ok that’s strange since it worked before… :thinking:
Assuming that your YAML is syntactically correct, I can only think of some semantic error. Here is my config, maybe you can spot a difference… ?

type: custom:vacuum-card
entity: vacuum.roborock_s6
stats:
  default:
    - entity_id: sensor.main_brush
      unit: min
      subtitle: Main brush
    - entity_id: sensor.right_brush
      unit: min
      subtitle: Right brush
    - entity_id: sensor.main_filter
      unit: min
      subtitle: Main Filter
    - entity_id: sensor.sensor_cleaning
      unit: min
      subtitle: Sensor Cleaning
  cleaning:
    - attribute: cleaned_area
      unit: m2
      subtitle: Cleaning area
    - attribute: cleaning_time
      unit: minutes
      subtitle: Cleaning time
shortcuts:
  - name: Clean Living Room
    service: script.vacuum_clean_segments_message
    service_data:
      segments: '["{{state_attr("input_boolean.vacuum_livingroom", "room_id")}}"]'
    icon: mdi:sofa
  - name: Clean Hallway
    service: script.vacuum_clean_segments_message
    service_data:
      segments: '["{{state_attr("input_boolean.vacuum_hallway", "room_id")}}"]'
    icon: mdi:foot-print
  - name: Clean Bedroom
    service: script.vacuum_clean_segments_message
    service_data:
      segments: '["{{state_attr("input_boolean.vacuum_bedroom", "room_id")}}"]'
    icon: mdi:bed-empty
  - name: Clean Study
    service: script.vacuum_clean_segments_message
    service_data:
      segments: '["{{state_attr("input_boolean.vacuum_study", "room_id")}}"]'
    icon: mdi:laptop
  - name: Clean Kitchen
    service: script.vacuum_clean_segments_message
    service_data:
      segments: '["{{state_attr("input_boolean.vacuum_kitchen", "room_id")}}"]'
    icon: mdi:silverware-fork-knife
  - name: Clean Bathroom
    service: script.vacuum_clean_segments_message
    service_data:
      segments: '["{{state_attr("input_boolean.vacuum_bathroom", "room_id")}}"]'
    icon: mdi:shower
  - name: Clean WC
    service: script.vacuum_clean_segments_message
    service_data:
      segments: '["{{state_attr("input_boolean.vacuum_wc", "room_id")}}"]'
    icon: mdi:human-male-female
compact_view: false
show_status: true
show_name: true
show_toolbar: true

1 Like

Hello, thanks for this useful addon. I am using it with Roomba J7+ the play and dock buttons work fine, but the sensors are not updating (cleaning area, time, brushes, etc)

Great addon.
I have the Roomba J7+ and the Braava M6.
For these models I made two images. And would like to share it.

roomba_j7plus
braava_m6

4 Likes