custom-cards / dual-gauge-card

Dual gauge custom card for Lovelace in Home Assistant
MIT License
192 stars 43 forks source link

No card type found #46

Closed RoBro92 closed 3 years ago

RoBro92 commented 3 years ago

installed via hacs and added to repository and also tried adding direct to yaml

myca5a commented 3 years ago

Hello The same issue ! However I have files in /config/www/community/dual-gauge-card

DrNam1225 commented 3 years ago

Check if you added "url" in ui-lovelace.yaml.

- url: /community_plugin/dual-gauge-card/dual-gauge-card.js type: js

myca5a commented 3 years ago

No change

saper-2 commented 3 years ago

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 😞 ...

obraz

Here is a short "guide":

  1. copy the dual-gauge-card.js into config/www/ ,
  2. Next add resource, go to config -> Lovelace Dashborads -> tab Resources,
  3. click Add Resource
  4. Set fields: url: /local/dual-gauge-card.js (eventually adjust path to your HA system) Resource type: JavaScript Module (should set automatically)
  5. Now go to Dashboard that you want put the dual gauge,
  6. From list of available cards at the very end there is button: 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 .

DGF117 commented 3 years ago

Thanks for your solution !