-
-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support image entity as camera source #639
Labels
enhancement
New feature or request
Comments
Thank you for your investigation, I will definitely add it |
I am also planning to change the |
Well, I'm also planning to adjust Map Extractor 😉 |
+1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Please also support the image entity as camera source.
From the docs:
The image entity has also the attribute
entity_picture
, which (if I'm not wrong) is the only attribute required from thecamera
entity.lovelace-xiaomi-vacuum-map-card/src/xiaomi-vacuum-map-card.ts
Line 600 in 2283486
A quick test was working, if you add the image entity through yaml as shown below:
![grafik](https://private-user-images.githubusercontent.com/26537646/257315933-d2141062-ff6d-4c89-94d4-d5d666c3ae63.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTg2MTQyNTQsIm5iZiI6MTcxODYxMzk1NCwicGF0aCI6Ii8yNjUzNzY0Ni8yNTczMTU5MzMtZDIxNDEwNjItZmY2ZC00Yzg5LTk0ZDQtZDVkNjY2YzNhZTYzLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjE3VDA4NDU1NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWQwMDE5MThkOWQxZjEwOTNiMjRkNmQ3Njg1NDAxM2FiZjU3YzUwNDQyOGIyYmJhYTY0MWE0YmQzOWQ4ODk2MzEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.hkecTsz83RrwkouL6h4e1wHe6F6gHQmuU9OeU_oEw_s)
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
lovelace-xiaomi-vacuum-map-card/src/editor.ts
Line 114 in 2283486
Alternatives
No response
Context
With the next release of Deebot 4 Home Assistant(released on 02.08.23) the
camera
entity is replaced by theimage
entity as in fact the vacuum map is only a image in the end.The text was updated successfully, but these errors were encountered: