Just incase anyone in wondering this won’t work with valetudo out of the box unless there are some major changes
valetudo requires that you run a mapping clean then create zones, you clean the zones by calling the zones directly by name and not co-ordinates every attempt i tried using co-ordinates results in the robot doing a loop then return to base.
secondly valetudo uses a different y axis if you get the co-ordinates from /api/get_config you need to subtract y from 51200 (x stays the same) this is shown here
what you can do is draw the co-ordinates in the lovelace card call the python script, have the script match the params and call the zone.
alternatively you can make a picture element card and just call the zones on click on the icon
elements:
- icon: 'mdi:broom'
style:
'--iron-icon-fill-color': '#777'
left: 70%
top: 90%
tap_action:
action: call-service
service: vacuum.send_command
service_data:
command: zoned_cleanup
entity_id: vacuum.rockrobo
params:
zone_ids:
- Kitchen
type: icon
image: /local/img/vacuum_map.png
type: picture-elements
if 3_14 can make a valetudo mode where clicking on the zone on the map just calls the send command zone cleanup then that’s the only idea i have to get valetudo working in this card