PiotrMachowski/lovelace-xiaomi-vacuum-map-card

Multi Floor Support

Tmatz27 opened this issue · 6 comments

Description

The current system does well handling when i switch the floor that the vacuum is on. The issue is i have to use a different card to switch the floor or use the vacuum app. Additionally is there a way to generate rooms for a multi-floor?

Solution

It would be amazing to have this integrated with a simple button or like a floor number (1,2,3) on the side of the card to change the floor to clean.

Adding the ability to generate rooms for a multi floor config.

Alternatives

No response

Context

No response

Have you checked out additional_presets config?

I did! but this doesnt really get after what I was looking for. My vacuum supports multiple floors. I currently have to have an additional card to switch the floor that my vacuum is on. It works but would be amazing if there was a simple numbering on the vacuum card itself to simply select the floor i want the vacuum on. Also the ability to generate rooms for more than a single floor would be great!
Screenshot 2024-12-11 140547

Do you have a select entity for that changes the active floor?

Yes the vacuum I have had an entity that allows me to change that so I created a drop-down card for it currently.
Screenshot_20241211_215231_Home Assistant
Screenshot_20241211_215224_Home Assistant

Add this to your config:

append_icons: true
icons:
  - type: "menu"
    menu_id: "selected_map"
    icon_id: "selected_map"
    entity: "select.rosie_selected_map"
    available_values_attribute: "options"
    icon: "mdi:map"
    tap_action:
        action: "call-service"
        service: "select.select_option"
        service_data:
            option: "[[value]]"
            entity_id: "[[entity_id]]"

That did it for the map select! I must have missed that in the present config! Thank you