You should use a single pair of brackets for position
of a point:
position: [2700, 2375]
You should use a single pair of brackets for position
of a point:
position: [2700, 2375]
OK, I have found a bug in the vacuum_goto_predefined
template for Hypfer/Valetudo platform.
This should work as a temporary workaround:
type: custom:xiaomi-vacuum-map-card
entity: vacuum.valetudo_dobby
map_source:
camera: camera.dobby_camera
calibration_source:
camera: true
tiles: []
map_modes:
- template: vacuum_goto_predefined
selection_type: PREDEFINED_POINT
predefined_selections:
- position: [2700, 2375]
label:
text: sdfsafsdfsdfafsdfsfsdfsdfsdf
x: 2700
"y": 2400
offset_y: 35
icon:
name: mdi:desk
x: 2600
"y": 2400
vacuum_platform: Hypfer/Valetudo
Ok, I have made a typo: it should be predefined_selections
instead of predefined_selection
. Please adjust your config and everything should work
This works, thank you!
Hello,
When I click on Generate Room config I get an error message “missing icon of map mod” is that someone little help me
Thank u
Can you post your whole config?
Hello,
type: custom:xiaomi-vacuum-map-card
map_source:
camera: camera.l40_ultra_map_2
calibration_source:
camera: true
entity: vacuum.l40_ultra
vacuum_platform: Xiaomi Miio
two_finger_pan: true
map_locked: true
map_modes:
- template: vacuum_clean_zone
- template: vacuum_goto
- template: vacuum_clean_segment
predefined_selections:
- id: "1"
icon:
name: mdi:home-outline
x: 800
"y": -4200
label:
text: WC
x: 800
"y": -4200
offset_y: 35
outline:
- - 250
- -4750
- - 1500
- -4750
- - 1500
- -3500
- - 250
- -3500
- id: "2"
icon:
name: mdi:home-outline
x: -4800
"y": -4250
label:
text: Entrée
x: -4800
"y": -4250
offset_y: 35
outline:
- - -5550
- -5100
- - -3950
- -5100
- - -3950
- -3400
- - -5550
- -3400
- id: "3"
icon:
name: mdi:archive-outline
x: -2500
"y": -4250
label:
text: Utility Room
x: -2500
"y": -4250
offset_y: 35
outline:
- - -3950
- -5100
- - -1150
- -5100
- - -1150
- -3500
- - -3950
- -3500
- id: "4"
icon:
name: mdi:sofa-outline
x: 5150
"y": -3150
label:
text: Living Room
x: 5150
"y": -3150
offset_y: 35
outline:
- - 1450
- -5050
- - 6100
- -5050
- - 6100
- 750
- - 1450
- 750
- id: "5"
icon:
name: mdi:chef-hat
x: -1150
"y": -1650
label:
text: Kitchen
x: -1150
"y": -1650
offset_y: 35
outline:
- - -5250
- -3400
- - -300
- -3400
- - -300
- 200
- - -5250
- 200
- id: "6"
icon:
name: mdi:room-service-outline
x: 600
"y": -1250
label:
text: Dining Hall
x: 600
"y": -1250
offset_y: 35
outline:
- - -300
- -3350
- - 1550
- -3350
- - 1550
- 750
- - -300
- 750
- template: vacuum_clean_segment
predefined_selections:
- id: "1"
icon:
name: mdi:home-outline
x: 2350
"y": -100
label:
text: WC
x: 2350
"y": -100
offset_y: 35
outline:
- - 1650
- -650
- - 3050
- -650
- - 3050
- 300
- - 1650
- 300
- id: "2"
icon:
name: mdi:foot-print
x: 2150
"y": -1400
label:
text: Corridor
x: 2150
"y": -1400
offset_y: 35
outline:
- - -3650
- -2450
- - 4600
- -2450
- - 4600
- 450
- - -3650
- 450
- id: "3"
icon:
name: mdi:toilet
x: 5550
"y": -500
label:
text: Bathroom
x: 5550
"y": -500
offset_y: 35
outline:
- - 3450
- -1550
- - 7650
- -1550
- - 7650
- 450
- - 3450
- 450
- id: "6"
icon:
name: mdi:bed-single-outline
x: 4550
"y": -3750
label:
text: Secondary Bedroom
x: 4550
"y": -3750
offset_y: 35
outline:
- - 3900
- -5100
- - 7700
- -5100
- - 7700
- -1600
- - 3900
- -1600
- id: "7"
icon:
name: mdi:bed-king-outline
x: -100
"y": -2300
label:
text: Primary Bedroom
x: -100
"y": -2300
offset_y: 35
outline:
- - -3150
- -5350
- - 2800
- -5350
- - 2800
- -750
- - -3150
- -750
- template: vacuum_clean_segment
predefined_selections:
- id: "1"
icon:
name: mdi:gamepad-variant-outline
x: 150
"y": -1350
label:
text: Recreation Area
x: 150
"y": -1350
offset_y: 35
outline:
- - -2900
- -5350
- - 3600
- -5350
- - 3600
- 500
- - -2900
- 500
- null
- null
- null
- null
- null
- null
- predefined_selections:
- id: "1"
icon:
name: mdi:home-outline
x: 800
"y": -4200
label:
text: WC
x: 800
"y": -4200
offset_y: 35
outline:
- - 250
- -4750
- - 1500
- -4750
- - 1500
- -3500
- - 250
- -3500
- id: "2"
icon:
name: mdi:home-outline
x: -4800
"y": -4250
label:
text: Entrée
x: -4800
"y": -4250
offset_y: 35
outline:
- - -5550
- -5100
- - -3950
- -5100
- - -3950
- -3400
- - -5550
- -3400
- id: "3"
icon:
name: mdi:archive-outline
x: -2500
"y": -4250
label:
text: Utility Room
x: -2500
"y": -4250
offset_y: 35
outline:
- - -3950
- -5100
- - -1150
- -5100
- - -1150
- -3500
- - -3950
- -3500
- id: "4"
icon:
name: mdi:sofa-outline
x: 5150
"y": -3150
label:
text: Living Room
x: 5150
"y": -3150
offset_y: 35
outline:
- - 1450
- -5050
- - 6100
- -5050
- - 6100
- 750
- - 1450
- 750
- id: "5"
icon:
name: mdi:chef-hat
x: -1150
"y": -1650
label:
text: Kitchen
x: -1150
"y": -1650
offset_y: 35
outline:
- - -5250
- -3400
- - -300
- -3400
- - -300
- 200
- - -5250
- 200
- id: "6"
icon:
name: mdi:room-service-outline
x: 600
"y": -1250
label:
text: Dining Hall
x: 600
"y": -1250
offset_y: 35
outline:
- - -300
- -3350
- - 1550
- -3350
- - 1550
- 750
- - -300
- 750
- template: vacuum_clean_segment
predefined_selections:
- id: "1"
icon:
name: mdi:home-outline
x: 2350
"y": -100
label:
text: WC
x: 2350
"y": -100
offset_y: 35
outline:
- - 1650
- -650
- - 3050
- -650
- - 3050
- 300
- - 1650
- 300
- id: "2"
icon:
name: mdi:foot-print
x: 2150
"y": -1400
label:
text: Corridor
x: 2150
"y": -1400
offset_y: 35
outline:
- - -3650
- -2450
- - 4600
- -2450
- - 4600
- 450
- - -3650
- 450
- id: "3"
icon:
name: mdi:toilet
x: 5550
"y": -500
label:
text: Bathroom
x: 5550
"y": -500
offset_y: 35
outline:
- - 3450
- -1550
- - 7650
- -1550
- - 7650
- 450
- - 3450
- 450
- id: "6"
icon:
name: mdi:bed-single-outline
x: 4550
"y": -3750
label:
text: Secondary Bedroom
x: 4550
"y": -3750
offset_y: 35
outline:
- - 3900
- -5100
- - 7700
- -5100
- - 7700
- -1600
- - 3900
- -1600
- id: "7"
icon:
name: mdi:bed-king-outline
x: -100
"y": -2300
label:
text: Primary Bedroom
x: -100
"y": -2300
offset_y: 35
outline:
- - -3150
- -5350
- - 2800
- -5350
- - 2800
- -750
- - -3150
- -750
I sometimes have this problem with my card. Although the camera is showing and working. What can be done?
Here you have a fixed config:
type: custom:xiaomi-vacuum-map-card
map_source:
camera: camera.l40_ultra_map_2
calibration_source:
camera: true
entity: vacuum.l40_ultra
vacuum_platform: Xiaomi Miio
two_finger_pan: true
map_locked: true
map_modes:
- template: vacuum_clean_zone
- template: vacuum_goto
- template: vacuum_clean_segment
predefined_selections:
- id: "1"
icon:
name: mdi:home-outline
x: 800
"y": -4200
label:
text: WC
x: 800
"y": -4200
offset_y: 35
outline:
- - 250
- -4750
- - 1500
- -4750
- - 1500
- -3500
- - 250
- -3500
- id: "2"
icon:
name: mdi:home-outline
x: -4800
"y": -4250
label:
text: Entrée
x: -4800
"y": -4250
offset_y: 35
outline:
- - -5550
- -5100
- - -3950
- -5100
- - -3950
- -3400
- - -5550
- -3400
- id: "3"
icon:
name: mdi:archive-outline
x: -2500
"y": -4250
label:
text: Utility Room
x: -2500
"y": -4250
offset_y: 35
outline:
- - -3950
- -5100
- - -1150
- -5100
- - -1150
- -3500
- - -3950
- -3500
- id: "4"
icon:
name: mdi:sofa-outline
x: 5150
"y": -3150
label:
text: Living Room
x: 5150
"y": -3150
offset_y: 35
outline:
- - 1450
- -5050
- - 6100
- -5050
- - 6100
- 750
- - 1450
- 750
- id: "5"
icon:
name: mdi:chef-hat
x: -1150
"y": -1650
label:
text: Kitchen
x: -1150
"y": -1650
offset_y: 35
outline:
- - -5250
- -3400
- - -300
- -3400
- - -300
- 200
- - -5250
- 200
- id: "6"
icon:
name: mdi:room-service-outline
x: 600
"y": -1250
label:
text: Dining Hall
x: 600
"y": -1250
offset_y: 35
outline:
- - -300
- -3350
- - 1550
- -3350
- - 1550
- 750
- - -300
- 750
Thanks u @3_14
How could I adjust the coordinates of the corridor?
because when I want to click on corridor it selects the room
I would like to be able to translate the map into French. I saw that there was already the fr.json but I don’t know how to do it.
Remove the last one from the list
You have to adjust the outline
section of your config. Here is the guide how to get the coordinates
Zones have only 4 corners, can a zone have more corners? (I have another room in the square)
At this moment only rectangular zones are supported.
But in your case you have to use Outline coordinates
map mode to get coordinates for the rooms’ outlines.