Automower or any robot mower cards

Purchased a Husqvarna automower and added it to home assistant using @Thomas55555 excellent integration. Looking for examples of how people are displaying and controlling automowers from the front end. My current setup shown below, using the lovelace-xiaomi-vacuum-map-card, but would like to see what others are doing.

2 Likes

How do you inegrate Map Image?

It’s part of the Husqvarna integration now. You need to enable the camera entity and then set and scale a background image and add it to home assistant, I put mine in the www folder. I just used a screen shot of Google maps satellite view and cropped it to my house. Then found the lat long for the corners and configured the camera entity with those values.

Still tweaking this, but it’s getting closer. I’ve moved to a picture entity card now. I wasn’t really using any of the features of the vacuum card and this is more compact.

Could you share the code of your card just to compare?

Sure, here is the yaml for the picture entity card. Automower Picture Entity Card (github.com)

You won’t have the zone sensor; those changes were rejected by the maintainer.

Euh, I would like the code of the first card :wink:

Luckily, I had a backup.

entity: vacuum.aeinarr
vacuum_platform: send_command
map_source:
  camera: camera.aeinarr
map_locked: true
map_modes:
- template: vacuum_goto_predefined
  run_immediately: true
calibration_source:
  identity: true
tiles:
- label: Cutting Height
  entity: number.aeinarr_cutting_height
  icon: mdi:grass
- label: Headlight Mode
  entity: select.aeinarr_headlight_mode
  icon: mdi:car-light-high
- label: Battery
  entity: sensor.aeinarr_battery_level
  unit: "%"
  icon: mdi:battery
- label: Status
  entity: vacuum.aeinarr
  attribute: status
  icon: mdi:robot-mower
- label: Location
  entity: sensor.aeinarr_zone_sensor
title: Æinarr

Where do you filled the directory for the map jpg? and make the calibration, I’ve got only the Google map screenshot of my house and garden.

That’s done through the integrations itself.

Find the integration under settings integrations, select configure
config_1

Choose enable camera

Provide the top left and bottom right GPS coordinates and then set the path, need to use the full path
so in my case it’s /home/homeassistant/.homeassistant/www/mower/map_image.png

Also, ensure that the camera entity is enabled.

Hi,
I did it the same way you do, but the red mowing lines only crosses my image. What am I missing?
Do you also use the GPS coordinates from google maps? Or do you have to convert the values from google maps first?

Another question: Is there a tool to create a map image with the corner gps values?

Screenshot 2022-07-14 203708

I don’t think the top left and bottom right coordinates are set correctly. I would double check those. I tried to find a tool that could help with this, but with google charging for their map API, I think all the free options are gone. If anyone finds one, please post it, would be a huge help. I still need to get my zones set up correctly, it bugs my OCD that they overlap slightly.

As far as building the image, I suggest Google maps, easiest option is to add a pin for the top left of your area and another for the bottom right. Then screen shot and crop your image to those pins. Then you can right click the same location on google maps and it will give you the coordinates. Just copy and paste those into the appropriate text field.

One additional note, when you copy the coordinates, it should have more precision then what’s shown. In this example, the copied value would be (38.89708656429203, -77.0375758634278)

Quick update, I found that Google has a my maps tool https://mymaps.google.com/ that works a bit better for this then the default maps. I was able to quickly correct my zones and then export to a csv file. The only issue is, that Google exports values as (longitude, latitude), so we need to reverse the order to use as an input. I also tested dropping the two corner pins and exporting the values and that worked well.

Creating a zone.

Result.

I’ve followed the directions to add a Google Maps picture, but all I get is a black screen when I click on the camera. I’ve uploaded a google maps photo to my www folder and pulled the coordinates from Google maps and when I configure the integration for the camera card it says it was done successfully. Any ideas on what I’m missing?

Is the camera enabled? If so, see if you see anything in the logs, could be an issue with the points that results in a math error. Just enabling the camera should result in an image that says replace me, usually a black screen is a result of a disabled camera or the plot logic is throwing an error.

Thank you so much for your help! The picture now works, it must have been something with the coordinates, because I re-entered them and now my map shows up. The only thing I noticed is the logbook still says “error” as does the dashboard card, I’m not sure if that is a problem or not. My mower is put away for the winter, so I can’t test if it will show the history correctly or not until spring.

That’s normal, the camera status is just the mower status. Mine is put away for the winter also, same result.

Perfect, thank you for your help!

Has anyone solved how to get rid of this calibration error message? I’ve tried to install the mapextractor just to be able to add this snippet with calibration_points to the config. But that didn’t do the trick, unfortunately.

# TEST
camera:
  - platform: xiaomi_cloud_map_extractor
    host: xiaomi_vacuum_token
    token: xiaomi_vacuum_host_xiaomi_vacuum
    username: xiaomi_cloud_username
    password: xiaomi_cloud_password
    attributes:
      - calibration_points

Just got my mower back into operation yesterday and while the map works, it does not show the mower’s position or history on the picture. Any thoughts as to what I might be doing wrong?