dmulcahey / zha-network-card

Custom Lovelace card that displays ZHA network and device information
GNU General Public License v3.0
95 stars 20 forks source link

Zha Network Card not loading #19

Closed mirceadamian closed 3 years ago

mirceadamian commented 3 years ago

Hi guys,

I was trying to load ZHA-Map and Zha Network Card using HACS into my HA 0.113.2.

I can see ZHA-MAP working well but the Zha Network Card is showing as "Not loaded". Obviously I'm not able to add the card to the new panel. image

I see the files are in the directory so I wonder where to look next why this is "not loading".

image

Any hints would be appreciated.

Thank you

mirceadamian commented 3 years ago

I think I figured out a part of it. The card was not working because in the Configuration -> Lovelace Dashboards -> Resources the URL should have been "/hacsfiles/zha-network-card/zha-network-card.js" rather than "/local/community/zha-network-card/zha-network-card.js" image

Now the card looks ok: image

Still I cannot use it in the the UI: image

mirceadamian commented 3 years ago

So all figured out after digging. It seems that there are two cards: 1) zha-network-visualization-card 2) zha-network-card

If you are after zha-map then you need 1). The confusing part for the people using HACS (as myself) is that 1) is not available on HACS hence you end up downloading 2) (not a difficult mistake to make if you are new at it). Then you spend couple of hours figuring out why it does not work (again HACS will trick you with the directory name and translation) to realize in the end that you have downloaded the wrong card after all.

Maybe this ticket will help others understanding this confusion of names. Also maybe a suggestion would be to change the README for the 1) to highlight that it is not available on HACS and must be manually downloaded.