sbryfcz / harmony-card

A Home Assistant Lovelace Care for Harmony Integration
MIT License
104 stars 12 forks source link

No card type configured #12

Closed jankete closed 4 years ago

jankete commented 4 years ago

Hi, I just installed the component via HACS and did the configuration in Lovelace. But all I get is "No card type configured"

Screenshot_20200204-211640

What might be wrong here?

mcowger commented 4 years ago

Sounds like the config in ui-lovelace.yaml is not correct.

What did you add to your resources section, and whats the path for the card on disk?

sbryfcz commented 4 years ago

Very weird. Are you sure HACS put the proper resource in the resources yaml config?

mcowger commented 4 years ago

I will say HACS never puts the right paths in my resource config.

jankete commented 4 years ago

The config entry was done by HACS ans looks like this

  - type: module
    url: /community_plugin/garbage-collection-card/garbage-collection-card.js
  - type: module
    url: /community_plugin/harmony-card/harmony-card.js
  - type: module
    url: /community_plugin/swipe-glance-card/swipe-glance-card.js

The path on the filesystem is:

/www/community/harmony-card/harmony-card.js

The path "/www/community/" is the same for the other plugins installed via HACS - and they working fine (see examples above). So I cannot confirm this:

I will say HACS never puts the right paths in my resource config.

Maybe, @ludeeus can say anything about this.

ludeeus commented 4 years ago

Resources is correct, HACS will always use the correct path.

users will not

The issue here is missing card type. You are using a manual card from the UI, most card examples are not shown for that.

Remove - before type, and adjust the rest of the config to match the new indents.

jankete commented 4 years ago

That did it, thanks!