Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleaning mode and water level in map card #784

Open
mkaflowski opened this issue Dec 17, 2024 · 7 comments
Open

Cleaning mode and water level in map card #784

mkaflowski opened this issue Dec 17, 2024 · 7 comments
Assignees
Labels
enhancement New feature or request

Comments

@mkaflowski
Copy link

mkaflowski commented Dec 17, 2024

Description

I cannot find cleaning mode and water level in map card.
Now I need to add second entity like that:

Zrzut ekranu 2024-12-17 o 15 26 18

Solution

Adding option similar to suction power.

@mkaflowski mkaflowski added the enhancement New feature or request label Dec 17, 2024
@remydumont
Copy link

Hi, I approve of this request, it is a useful feature for robots equipped with mops.

@Oleg-Yu
Copy link

Oleg-Yu commented Jan 27, 2025

I have Xiaomi X20+ and will be great to have 4h button with cleaning mode in this awesome lovelace card.
temporary add tile on card with code:

  - tile_id: cleaning_mode
    entity: vacuum.xiaomi_x20
    label: Режим прибирання
    attribute: cleaning_mode
    icon: mdi:broom
    tap_action:
        action: call-service
        service: select.select_next
        service_data:
            entity_id: select.xiaomi_x20_cleaning_mode
    translations:
        sweeping: Підмітання
        mopping: Миття
        sweeping and mopping: Підмітання та миття
        mopping after sweeping: Миття після підмітання

Image

@remydumont
Copy link

remydumont commented Jan 29, 2025

@Oleg-Yu Thanks, very useful. I was able to add tiles and icons menu to select cleaning mode and mop pad humidity.

@Oleg-Yu
Copy link

Oleg-Yu commented Jan 30, 2025

@remydumont how did you add icons menu. share a yaml code and screenshot

@remydumont
Copy link

I just copy the code for fan-speed menu and change data inside:

 - menu_id: cleaning_mode
    icon: mdi:broom
    label: Aspiration
    conditions:
      - entity: vacuum.xiaomi_robot_vacuum_x20
        attribute: cleaning_mode
        value: Sweeping
    tooltip: Changer le mode de nettoyage
    tap_action:
      action: call-service
      service: select.select_option
      service_data:
        entity_id: select.xiaomi_robot_vacuum_x20_cleaning_mode
        option: sweeping
  - menu_id: cleaning_mode
    icon: mdi:cup-water
    label: Lavage
    conditions:
      - entity: vacuum.xiaomi_robot_vacuum_x20
        attribute: cleaning_mode
        value: Mopping
    tooltip: Changer le mode de nettoyage
    tap_action:
      action: call-service
      service: select.select_option
      service_data:
        entity_id: select.xiaomi_robot_vacuum_x20_cleaning_mode
        option: mopping
  - menu_id: cleaning_mode
    icon: mdi:hydro-power
    label: Aspiration et lavage
    conditions:
      - entity: vacuum.xiaomi_robot_vacuum_x20
        attribute: cleaning_mode
        value: Sweeping and mopping
    tooltip: Changer le mode de nettoyage
    tap_action:
      action: call-service
      service: select.select_option
      service_data:
        entity_id: select.xiaomi_robot_vacuum_x20_cleaning_mode
        option: sweeping_and_mopping
  - menu_id: cleaning_mode
    icon: mdi:water-polo
    label: Lavage après aspiration
    conditions:
      - entity: vacuum.xiaomi_robot_vacuum_x20
        attribute: cleaning_mode
        value: Mopping after sweeping
    tooltip: Changer le mode de nettoyage
    tap_action:
      action: call-service
      service: select.select_option
      service_data:
        entity_id: select.xiaomi_robot_vacuum_x20_cleaning_mode
        option: mopping_after_sweeping

And same for mop pad humidity, with conditions to not show the menu if mopping is disable

  - menu_id: mop_pad_humidity
    icon: mdi:water-minus
    label: Légèrement sec
    conditions:
      - entity: vacuum.xiaomi_robot_vacuum_x20
        attribute: mop_pad_humidity
        value: Slightly dry
      - entity: vacuum.xiaomi_robot_vacuum_x20
        attribute: cleaning_mode
        value_not: Sweeping
    tooltip: Changer humidité
    tap_action:
      action: call-service
      service: select.select_option
      service_data:
        entity_id: select.xiaomi_robot_vacuum_x20_mop_pad_humidity
        option: slightly_dry
  - menu_id: mop_pad_humidity
    icon: mdi:water
    label: Humide
    conditions:
      - entity: vacuum.xiaomi_robot_vacuum_x20
        attribute: mop_pad_humidity
        value: Moist
      - entity: vacuum.xiaomi_robot_vacuum_x20
        attribute: cleaning_mode
        value_not: Sweeping
    tooltip: Changer humidité
    tap_action:
      action: call-service
      service: select.select_option
      service_data:
        entity_id: select.xiaomi_robot_vacuum_x20_mop_pad_humidity
        option: moist
  - menu_id: mop_pad_humidity
    icon: mdi:water-plus
    label: Mouillé
    conditions:
      - entity: vacuum.xiaomi_robot_vacuum_x20
        attribute: mop_pad_humidity
        value: Wet
      - entity: vacuum.xiaomi_robot_vacuum_x20
        attribute: cleaning_mode
        value_not: Sweeping
    tooltip: Changer humidité
    tap_action:
      action: call-service
      service: select.select_option
      service_data:
        entity_id: select.xiaomi_robot_vacuum_x20_mop_pad_humidity
        option: wet

@Oleg-Yu
Copy link

Oleg-Yu commented Feb 2, 2025

@remydumont great, thank you
@PiotrMachowski I tried it from manual, but no result. I think it was my fault. thank You for great and useful card
You can close the issue )))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants