PiotrMachowski / Home-Assistant-custom-components-Xiaomi-Cloud-Map-Extractor

This custom integration provides a way to present a live view of a map for Xiaomi (Roborock/Viomi/Roidmi/Dreame) vacuums without a need for rooting.
MIT License
1.16k stars 123 forks source link

room_colors is not changing my room colors #341

Closed Thorvarium closed 2 years ago

Thorvarium commented 2 years ago

Checklist

The problem

I am using this configuration below and my room colors are not changing, the colors are persisted the default ones. I am not sure if I am adding the correct setting.

What version of an integration has described problem?

v2.2.0

What was the last working version of an integration?

No response

What vacuum model do you have problems with?

roborock s7 maxv ultra

What version of Home Assistant do you use?

2022.9.4

What type of installation are you running?

Home Assistant OS

Camera's configuration

camera:
  - platform: xiaomi_cloud_map_extractor
    host: xxxxxx
    token: xxxxxx
    username: xxxxxx
    password: xxxxxx
    draw: ["all"]
    colors:
      color_map_outside: [28, 28, 28]
    room_colors:
      1: [0, 0, 0]
      2: [0, 0, 0]
      3: [0, 0, 0]
      4: [0, 0, 0]
      5: [0, 0, 0]
      6: [0, 0, 0]
    map_transformation:
      rotate: 270
      trim:
        top: 0
        bottom: 20
        right: 15
        left: 45
    attributes:
      - calibration_points

Errors shown in the HA logs (if applicable)

No response

Additional information

No response

PiotrMachowski commented 2 years ago

That's because you have used incorrect room numbers. You can retrieve correct ones by using this config:

    ...
    attributes:
      - calibration_points
      - room_numbers

and checking attributes of camera entity in dev tools

Thorvarium commented 2 years ago
attributes:
      - calibration_points
      - room_numbers

That worked to get the numbers thanks, I noticed that the numbers of rooms are not matching the rooms in the mi app. I have 6 rooms and in the map extractor only show merged rooms with a total of 4. Is there a way to tell it to "update the rooms" ?

Thank you

PiotrMachowski commented 2 years ago

It always should get the latest map data, so there's no need for updating. Can you show maps from Xiaomi Home and Map Extractor?

Thorvarium commented 2 years ago

It always should get the latest map data, so there's no need for updating. Can you show maps from Xiaomi Home and Map Extractor?

it is all good now, I merged a room and split again and now it is reflecting correct