lovelace-xiaomi-vacuum-map-card icon indicating copy to clipboard operation
lovelace-xiaomi-vacuum-map-card copied to clipboard

Support image entity as camera source

Open edenhaus opened this issue 1 year ago • 4 comments

Description

Please also support the image entity as camera source. From the docs:

The image entity is a simplified version of the camera entity, and supports serving a static image or an image URL that can be fetched.

The image entity has also the attribute entity_picture, which (if I'm not wrong) is the only attribute required from the camera entity. https://github.com/PiotrMachowski/lovelace-xiaomi-vacuum-map-card/blob/228348622c196c4e6676e848f58f76e2e71f3d81/src/xiaomi-vacuum-map-card.ts#L600-L600

A quick test was working, if you add the image entity through yaml as shown below: grafik

Solution

Please edit the editor to also allow image entities. Maybe only the following line must be extended, but I'm not familiar with this components code

https://github.com/PiotrMachowski/lovelace-xiaomi-vacuum-map-card/blob/228348622c196c4e6676e848f58f76e2e71f3d81/src/editor.ts#L114-L114

Alternatives

No response

Context

With the next release of Deebot 4 Home Assistant(released on 02.08.23) the camera entity is replaced by the image entity as in fact the vacuum map is only a image in the end.

edenhaus avatar Jul 31 '23 18:07 edenhaus

Thank you for your investigation, I will definitely add it

PiotrMachowski avatar Jul 31 '23 18:07 PiotrMachowski

I am also planning to change the camera entities of the dreame_vacuum to image entities.

Tasshack avatar Jul 31 '23 20:07 Tasshack

Well, I'm also planning to adjust Map Extractor 😉

PiotrMachowski avatar Jul 31 '23 20:07 PiotrMachowski

+1

regularguy01 avatar Mar 27 '24 20:03 regularguy01