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

Can Not Select a map with Xiaomi Vacuum Card and Dreame Integration #802

Open
3 tasks done
BinGor2010 opened this issue Feb 8, 2025 · 4 comments
Open
3 tasks done
Assignees
Labels
bug Something isn't working

Comments

@BinGor2010
Copy link

Checklist

  • I have updated the card to the latest version available
  • I have cleared the cache of my browser
  • I have checked if the problem is already reported

The problem

Hey All,

I’m new here and Home Assistant.
I will use HA for my Dreame x40.

I have two Problems at the Moment.

  1. My Button to Select a map is grayed out. I don‘t know why. Maybe with the last update?
    HA reports that this attribute is no longer available. In other words, it no longer receives any data.

  2. My room config has Problems when the map is changed.
    For example: from the 1.St. floor to the 2.nd floor. And now I will only clean one room, but
    i see room Lines from floor bevor the map is changed.

According to the room config, only the rooms on the 1st floor are included, but Not from the 2.nd or 3.rd floor. I have no idea how to add the rooms on the two floors, as I don't know the IDs or the coordinates.

I have tried to explain this here, but I don't understand where and what exactly.
#317
According to HA, the service “xiaomi_cloud_map_extractor.reload” does not exist.

Can me help anyone?

I do use it:
Lovelace Vacuum Map card2.2.4
DREAME 2.0.0b16 integration

Greetings

What version of a card has described problem?

2.2.4

What was the last working version card?

No response

What vacuum model do you have problems with?

Dreame x40

Which integration do you use to control your vacuum (link)?

https://www.home-assistant.io/integrations/xiaomi_miio/

What browser (browsers/apps) does have this problem?

IOS App

What version of Home Assistant do you use?

2025.2.1

What type of installation are you running?

Home Assistant OS

Card's configuration

type: custom:xiaomi-vacuum-map-card
map_source:
  camera: camera.x40_map
calibration_source:
  camera: true
entity: vacuum.x40
vacuum_platform: Tasshack/dreame-vacuum
grid_options:
  columns: 24
  rows: auto
map_modes:
  - template: vacuum_clean_zone
  - template: vacuum_clean_point
  - template: vacuum_clean_segment
    predefined_selections:
      - id: "1"
        icon:
          name: mdi:chef-hat
          x: 1200
          "y": 1600
        label:
          text: Kitchen
          x: 1200
          "y": 1600
          offset_y: 35
        outline:
          - - -150
            - -500
          - - 1800
            - -500
          - - 1800
            - 3150
          - - -150
            - 3150
      - id: "2"
        icon:
          name: mdi:foot-print
          x: -1200
          "y": 1650
        label:
          text: Corridor
          x: -1200
          "y": 1650
          offset_y: 35
        outline:
          - - -2300
            - -750
          - - -300
            - -750
          - - -300
            - 3900
          - - -2300
            - 3900
      - id: "3"
        icon:
          name: mdi:home-outline
          x: 100
          "y": -3850
        label:
          text: Wohn
          x: 100
          "y": -3850
          offset_y: 35
        outline:
          - - -2400
            - -7150
          - - 2300
            - -7150
          - - 2300
            - -500
          - - -2400
            - -500
      - id: "5"
        icon:
          name: mdi:home-outline
          x: -2400
          "y": 2800
        label:
          text: WC
          x: -2400
          "y": 2800
          offset_y: 35
        outline:
          - - -2850
            - 2050
          - - -1800
            - 2050
          - - -1800
            - 3500
          - - -2850
            - 3500

Javascript errors shown in the browser's console (if applicable)

Additional information

No response

@BinGor2010 BinGor2010 added the bug Something isn't working label Feb 8, 2025
@PiotrMachowski
Copy link
Owner

My Button to Select a map is grayed out. I don‘t know why. Maybe with the last update?

Which button do you mean? Can you provide a screenshot?

I have tried to explain this here, but I don't understand where and what exactly.
#317
According to HA, the service “xiaomi_cloud_map_extractor.reload” does not exist.

If you use Dreame integration then you just have to click "generate rooms config" button

My room config has Problems when the map is changed.

Is the map image updated when you change floor?

@BinGor2010
Copy link
Author

Hi PiotrMachowski,

thanks for fast reply.

I meean this:

Image

But since about 2 weeks this is no longer possible (grayed out, not available)

Image

Yesterday I also noticed that when I switch between CleanGenius Mode and User Defined Mode, the settings are no longer available.

Image

To your question about the map change
Yes, when the Dreame gets going on the other floors, the map is changed. This can then be seen in the HA.

Greetings

@BinGor2010
Copy link
Author

BinGor2010 commented Feb 9, 2025

Hi PiotrMachowski,,

on this picture you can see the problem with the room Cleaing.
I rolled out Romm cleaning on the map and then switched to the map for the 3rd floor using the Dreame app. Now, unfortunately, the rooms from the 1st floor are always visible here.

Image

The rooms on the 1st floor can also still be seen on the YAML level. I had originally stored the rooms for each floor.

Image

@BinGor2010
Copy link
Author

On the subject of CleanGenius ON or OFF, there is a problem with reporting back from the HA or integration.
Example:
When I turn CleanGenius on, the other settings are no longer grayed out.
If I reload the Dreame integration, they are grayed out. And if I try the same with custom settings, where all settings should be active, it is only grayed out again after reloading the integration.

Does anyone have any ideas?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants