PiotrMachowski / lovelace-xiaomi-vacuum-map-card

This card provides a user-friendly way to fully control map-based vacuums in Home Assistant. Supported brands include Xiaomi (Roborock/Viomi/Dreame/Roidmi/Valetudo/Valetudo RE), Neato, Wyze, Roomba, Ecovacs (and probably more).
MIT License
1.44k stars 249 forks source link

Please support a image besides camera view #754

Open borgqueenx opened 3 weeks ago

borgqueenx commented 3 weeks ago

Description

The official roborock integration makes constant updating images, does not have a camera view anymore. It would be great if instead of a camera, a image can be used for this card.

Solution

Supporting image view for the map.

Alternatives

No response

Context

No response

PiotrMachowski commented 3 weeks ago

You can use image entity instead of camera entity by editing yaml configuration

borgqueenx commented 3 weeks ago

You can use image entity instead of camera entity by editing yaml configuration

Can you show us how?

borgqueenx commented 3 weeks ago

i simply tried to change camera into image in the yaml of the lovelace card, but now it says its missing calibration source.

PiotrMachowski commented 3 weeks ago

Unfortunately at this moment official Roborock integration doesn't support calibration required for the map card

Diaoul commented 1 week ago

Why so? If a still image works I would imagine that one generated automatically would as well 🤔

I would love to do something like that but it does not seem to work:

map_source:
  image: image.roborock_s8_pro_ultra_ground_floor
PiotrMachowski commented 1 week ago

Why so? If a still image works I would imagine that one generated automatically would as well 🤔

You can try to manually calibrate the map from Roborock integration the same way you can calibrate the static image. It is not trivial though, so I prefer to not include it in the documentation.

The config would be:

map_source:
  camera: image.roborock_s8_pro_ultra_ground_floor
Diaoul commented 1 week ago

Maybe we can ask the Roborock integration guys to make an easily calibrated image. What would it take to make it easier?

PiotrMachowski commented 1 week ago

That's not so easy. Also he is aware of this problem and we have already discussed potential solutions:

https://github.com/PiotrMachowski/lovelace-xiaomi-vacuum-map-card/issues/691

https://github.com/home-assistant/core/pull/105424