dmulcahey / zha-network-visualization-card

Lovelace custom element for visualizing the ZHA Zigbee network
36 stars 20 forks source link

Lovelace Dashboard #19

Open mcfarlde opened 4 years ago

mcfarlde commented 4 years ago

I'd like to get this working. I never moved to full yaml mode as I like being able to tweak via the UI. I cannot add this to the Raw config, it tells me to add via lovelace Dashboard config as a resource. I do that adding. "/local/zha-network-visualization-card/zha-network-visualization-card.js" as a javascript module. I then make a new view as panel and try to add a custom card with "type: zha-network-visualization-card.js" and get "Error Unknown Type..." I think the problem is with the lovelace dashboard resource, but cannot determine how to fix.

LEJOUI commented 4 years ago

Did you install it with Home Assistant Community Store, HACS? Also make sure it’s type: zha-network-visualization-card

what you put in your Lovelace card. Ditch the .js at the end.

maxi1134 commented 4 years ago

I added through HACS and have the same issue: I tried ditching the .js at the end of the path too.

image

mcfarlde commented 4 years ago

I did remove everything and then try HACS with same results. I then follwed JonG's instructions at https://community.home-assistant.io/t/zha-network-map-question/166230/3 but using the new lovelace dashboard resources and it worked once I removed the single quotes when adding the manual panel to a view. I then found that navigation in home Assistant was greatly affected. Developer Tools and Supervisor took ages to open som I removed everything again. I did see the visualization of my zigbee network which was cool but not very useful for anything. Thanks for this, I'll try again if you add functionality to it.

LEJOUI commented 4 years ago

I added through HACS and have the same issue: I tried ditching the .js at the end of the path too.

image

This is the code for the ZHA network card and is another component. If you want that to work you should install the ZHA network card and not the zha network card visualization card. If you want to have the map card you should install the zha network visualization card and add it in Lovelace with the code that can be found in the readme of this repo.

LEJOUI commented 4 years ago

I did remove everything and then try HACS with same results. I then follwed JonG's instructions at https://community.home-assistant.io/t/zha-network-map-question/166230/3 but using the new lovelace dashboard resources and it worked once I removed the single quotes when adding the manual panel to a view. I then found that navigation in home Assistant was greatly affected. Developer Tools and Supervisor took ages to open som I removed everything again. I did see the visualization of my zigbee network which was cool but not very useful for anything. Thanks for this, I'll try again if you add functionality to it.

Glad you got it working. In #15 they also have the same issue. Having the same thing there. Only refreshing the browser is the solution for now.