nathan-gs / ha-map-card

A Map Card for Home Assistant
https://community.home-assistant.io/t/map-card-a-slightly-improved-map-card/693088
MIT License
19 stars 4 forks source link

Custom element doesn't exist: map-card. #2

Closed hensjl closed 4 months ago

hensjl commented 4 months ago

A very good idea, Nathan, but for now, I can't get the map.

Pi4 Core 2024.2.3 Supervisor 2024.02.0 Operating System 11.5 Frontend 20240207.1

Does not exist in HACS

Downloaded button-card.js in www folder

In my lovelace:

resources:
  - url: /local/community/button-card/button-card.js
    type: module
  - url: /local/community/lovelace-mushroom/mushroom.js
    type: module
  - url: /hacsfiles/lovelace-auto-entities/auto-entities.js
    type: module
  - url: /local/map-card.js
    type: module
type: custom:map-card
zoom: 8
card_size: 6
wms:
...

Custom element doesn't exist: map-card.

nathan-gs commented 4 months ago

@hensjl it's called map-card.js not button-card.js.

If you are using HACS you can add the repo. If you aren't using HACS you need to add it manually, and do a hard refresh (ctrl+r or f5) of your browser. Also check in the interface if it's really listed there.

nathan-gs commented 4 months ago

You can use the following to add it as a custom repo: https://hacs.xyz/docs/faq/custom_repositories

I've also created a PR in https://github.com/hacs/default/pull/2377 to add it to the default repo.

hensjl commented 4 months ago

Added map-card to HACS via your repo OK and downloaded

It is now working. Thank you.

I will explore it tonight or tomorrow, and sent some feed back.