Hypfer / lovelace-valetudo-map-card

Display the map from a valetudo-enabled robot in a home assistant dashboard card.
MIT License
243 stars 36 forks source link

Entity not available: camera.map_data #101

Closed wimb0 closed 2 years ago

wimb0 commented 2 years ago

Since updating my Roborock S5 to Valetudo 2021.11, the integration gives me Entity not available: camera.map_data Rebooting server or vacuum does not help. Clearing cache or using fresh browser does not help. Tested also different Lovelace configs for the card, still no go...

image

The camera.map_data has data in MQTT (checked with mqtt-explorer), and is accessible in Home Assistant.

I'm Using:

Any ideas or is this a bug?

TheLastProject commented 2 years ago

What does your MQTT config like for your vacuum? And what is camera.map_data looking like?

image

wimb0 commented 2 years ago

Thanks for the reply. Here is the requested info:

MQTT settings for the vacuum in Home Assistant: image

MQTT settings in Valetudo: image

camera.map_data image just shows the use this card message. Map data: image

TheLastProject commented 2 years ago

Anything in the browser console when on the screen that contains this card?

wimb0 commented 2 years ago

Nothing special: image

TheLastProject commented 2 years ago

What's your card config?

wimb0 commented 2 years ago

Sorry, forgot to add that to the start post.

type: custom:valetudo-map-card
entity: camera.map_data
vacuum_entity: vacuum.kees
rotate: 0
crop:
  top: 0
  bottom: 0
  left: 0
  right: 0
min_height: 0
TheLastProject commented 2 years ago

Hmm... that should be correct. No clue why it's not working.

Only thing I'm noticing is that I'm on Home Assistant 2021.11.0 myself, I'll try to update Home Assistant just to check if they broke something again.

TheLastProject commented 2 years ago

Hmm, nope, it still works for me. I really have no clue then :( Maybe try the Valetudo Telegram channel? Maybe someone there has a smart idea :(

wimb0 commented 2 years ago

No problem, I'll try to troubleshoot some more. Thanks for the quick responses. :-)

wimb0 commented 2 years ago

Fixed! Seems to have been a problem on my side: Wanted to uninstall / install the add-on one more time to start fresh while troubleshooting. HACS said that it uninstalled it, but I found that the files were still in /config/www/community/, so I rm -r'ed the lovelace-valetudo-map-card directory from disk. Installed again via HACS, hit CTRL-F5, and voila, card works...

No idea on how or why, but it is solved.

After a quick vacuum test: image