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.48k stars 254 forks source link

Having trouble Installing the map card, specifying the resource url #711

Closed VrtlBrown closed 9 months ago

VrtlBrown commented 9 months ago

Checklist

The problem

Hi I've installed the card via HACS, the full path of the files I installed is: /volume1/docker/homeassistant/config/www/community/lovelace-xiaomi-vacuum-map-card/xiaomi-vacuum-map-card.js

But no matter what I insert into the resource url field it wont load the card on the dashboard.

What should I use for the url?

What version of a card has described problem?

v2.2.2

What was the last working version card?

No response

What vacuum model do you have problems with?

S6 maxV

Which integration do you use to control your vacuum (link)?

https://www.home-assistant.io/integrations/xiaomi_miio/

What browser (browsers/apps) does have this problem?

Safari

What version of Home Assistant do you use?

2024.1.6

What type of installation are you running?

Home Assistant Container

Card's configuration

Haven't got this far yet

Javascript errors shown in the browser's console (if applicable)

No response

Additional information

No response

sca075 commented 9 months ago

@VrtlBrown ,The path should be something like:

/config/www/community/custom_lovelace/xiaomi-vacuum-map-card.js

the same goes in the resources but there www need to be replaced with local

/local/custom_lovelace/xiaomi-vacuum-map-card.js

hope this helps

PiotrMachowski commented 9 months ago

If you installed it with HACS then it should automatically add it to resources. If not, it should be something like this:

/hacsfiles/lovelace-xiaomi-vacuum-map-card/xiaomi-vacuum-map-card.js?hacstag=331701152204