Nice , I could not find detailed examples for the icons
Where do I put the append_icons
in the code from Andreas ?
e.g. right above it
append_icons: true
icons:
- icon: mdi:numeric-0-box
tooltip: Kælder
tap_action:
...
How change color selected to clean area/predefined zones? Now when I select defined area to clean it lights up gently in white. It is sometimes difficult to see which zones are selected for cleaning and which are not.
I had add to card: map-card-predefined-rectangle-fill-color-selected
but nothing change
type: vertical-stack
cards:
- type: custom:xiaomi-vacuum-map-card
map_source:
camera: camera.xiaomi_cloud_map_extractor
calibration_source:
camera: true
map_modes:
- template: vacuum_clean_zone_predefined
max_selections: 10
repeats_type: INTERNAL
max_repeats: 5
predefined_selections:
- zones:
- - 20191
- 24960
- 26266
- 29158
- zones:
- - 18236
- 24985
- 20614
- 29078
- zones:
- - 16387
- 25884
- 18501
- 29105
- zones:
- - 19503
- 28869
- 21378
- 31693
- - 21353
- 30426
- 24365
- 32195
- zones:
- - 24232
- 29107
- 26292
- 31536
- zones:
- - 16151
- 29106
- 19637
- 30611
- zones:
- - 20718
- 32065
- 23281
- 35947
- zones:
- - 23280
- 32038
- 26372
- 36079
- zones:
- - 22197
- 29397
- 24153
- 30691
- template: vacuum_clean_zone
- template: vacuum_goto
entity: vacuum.albert
vacuum_platform: send_command
map_locked: true
two_finger_pan: true
style:
- map-card-predefined-rectangle-fill-color-selected: red
It has to be added to a theme, not card’s config. If you use default theme you can use card-mod to set this variable
Is it possible to set “Zones List” as the default dropdown item instead of “Zone cleanup?”
Sure, just reorder them in map_modes
section
oh wow, I can’t believe I missed that. Thanks, that worked.
Last question - I’ve customized the card with CSS. Is there an option to change the background from blue to something else?
--map-card-zoomer-background
Is it possible for the card automatically pull Room details from the camera integration?
I have the following attributes in the camera for Rooms, but not picked up in the card. Do I need to manually create predefined zones within the card yaml using this information?
rooms:
'16':
x0: 25850
y0: 25250
x1: 37650
y1: 29800
'17':
x0: 29900
y0: 29950
x1: 33150
y1: 35950
'18':
x0: 30300
y0: 35900
x1: 35700
y1: 38550
'19':
x0: 24200
y0: 29050
x1: 31600
y1: 35300
'20':
x0: 33200
y0: 29550
x1: 42100
y1: 35850
'21':
x0: 26150
y0: 24950
x1: 29100
y1: 28350
'22':
x0: 31800
y0: 24950
x1: 35200
y1: 28300
'23':
x0: 22850
y0: 25000
x1: 26050
y1: 29050
'24':
x0: 35500
y0: 25000
x1: 38900
y1: 28350
'25':
x0: 37650
y0: 24950
x1: 43350
y1: 32300
Since A while my map is not showing up anymore.
Somerhing with invalid kalibration?
I found in my log:
Logger: homeassistant.helpers.entity
Source: helpers/entity.py:549
First occurred: 12:49:37 (4 occurrences)
Last logged: 12:50:02
Entity camera.roborock_s5_max_camera (<class 'custom_components.xiaomi_cloud_map_extractor.camera.VacuumCamera'>) implements device_state_attributes. Please report it to the custom component author.
Entity sensor.formula_one_sensor (<class 'custom_components.formulaone_api.sensor.FormulaOneSensor'>) implements device_state_attributes. Please report it to the custom component author.
Entity sensor.p2000 (<class 'custom_components.p2000.sensor.P2000Sensor'>) implements device_state_attributes. Please report it to the custom component author.
Entity sensor.unifi (<class 'custom_components.my_unifi.sensor.UnifiSensor'>) implements device_state_attributes. Please report it to the custom component author.
and:
Logger: homeassistant.helpers.entity
Source: helpers/entity.py:694
First occurred: 13:00:10 (2 occurrences)
Last logged: 13:01:25
Update of camera.roborock_s5_max_camera is taking over 10 seconds
My configuration:
camera:
- platform: xiaomi_cloud_map_extractor
host: 192.168.2.21
token: "xxxxxxxxxx"
username: [email protected]
password: xxxxxx
name: "Roborock S5 max Camera"
draw: ['all']
attributes:
- calibration_points
colors:
color_map_inside: [32, 115, 185]
color_map_outside: [19, 87, 148]
color_map_wall: [100, 196, 254]
color_map_wall_v2: [93, 109, 126]
color_grey_wall: [93, 109, 126]
color_path: [255, 255, 255]
color_goto_path: [0, 255, 0]
color_predicted_path: [255, 255, 0, 0]
color_zones: [0xAD, 0xD8, 0xFF, 0x8F]
color_zones_outline: [0xAD, 0xD8, 0xFF]
color_virtual_walls: [255, 0, 0]
color_no_go_zones: [255, 33, 55, 127]
color_no_go_zones_outline: [255, 0, 0]
color_no_mop_zones: [163, 130, 211, 127]
color_no_mop_zones_outline: [163, 130, 211]
color_charger: [0x66, 0xfe, 0xda, 0x7f]
color_robo: [75, 235, 149]
color_unknown: [0, 0, 0]
color_scan: [0xDF, 0xDF, 0xDF]
map_transformation:
scale: 3
trim:
top: 22
bottom: 25
left: 25
right: 25
scan_interval:
seconds: 5
auto_update: true
It worked before.
There was an update of the S5 max firmware itself some time ago?
The controlling buttons and information still working
How to fix this?
Thansk for the answer. I indeed did an update of the firmware causing this.
I do not know what rc4 means but I will wait.
I’m also not able to ask for the token anymore
No, it’s not possible in current version of integration/card. I plan to add it in the future though
Thanks, managed to get all my rooms in and working properly now with the correct outlines.
Hi !
Can I use this card with the gen1 robot ?
All time i start cleaning , lost the map…
And i dont understand, how to calibrate the map.
I have the map picture, in paint i see the pixels, its ok… but from where have the vacuum coordinates?
Thanks
piotr.
Thanks for the quick fix
You can use it with Map Extractor: It will calibrate itself automatically
This is working again also. Thanks!!!