Closed RoBro92 closed 3 years ago
Hello The same issue ! However I have files in /config/www/community/dual-gauge-card
Check if you added "url" in ui-lovelace.yaml.
- url: /community_plugin/dual-gauge-card/dual-gauge-card.js
type: js
No change
Hello,
I got the same issue and I was thinking that it's not working too (the js module not being loaded/loaded correctly) - but it loads (web browser dev tools show that the js is loaded with HTTP/200 OK).
The dual-gauge-card just won't show up in the card list - you have to enter it's code manually 😞 ...
Here is a short "guide":
dual-gauge-card.js
into config/www/
, /local/dual-gauge-card.js
(eventually adjust path to your HA system)
Resource type: JavaScript Module
(should set automatically) Need to add a custom card or just want to manually write the YAML?
, use it. Should open editor, with empty type: ''
Use the code as base, you have to adjust entities and other parameters to fit your need:
type: 'custom:dual-gauge-card'
title: Test 1
outer:
entity: sensor.zewnatrz
unit: °C
min: -20
max: 60
inner:
entity: sensor.zewnatrz_2
min: 0
max: 100
unit: '%'
Everything is down to manually edit card YAML and set type to custom:dual-gauge-card
to get this card to work.
I guess this should be mentioned in README.md .
Thanks for your solution !
installed via hacs and added to repository and also tried adding direct to yaml