Custom Component: HACS

Yep, the restart fixed it. Thanks!

What is now the proper way to enable theme downloads using HACS? I tried adding

https://github.com/liri/lovelace-themes as a repo but it didn’t stick.


https://hacs.xyz/docs/navigation/settings#custom-repositories
1 Like

Installed latest release and got these errors:

2020-01-05 17:49:42 ERROR (MainThread) [frontend.js.latest.201912041] https://192.168.1.24:8123/hacs_frontend/20200104192235.js:1:17049 Uncaught NotSupportedError: Failed to execute 'define' on 'CustomElementRegistry': the name "hacs-frontendbase" has already been used with this registry
2020-01-05 17:51:02 ERROR (MainThread) [hacs.repository.integration.albertogeniola.meross-homeassistant] Download was not complete.

About Meross integration i updated manually the component, but still get the previous release in HACS frontend.

What are my options when I get this? Do I have to abandon HACS to get this card back?

If the card’s repo is not compatible with hacs, just install it as if hacs didn’t exist.

The instructions are RIGHT THERE https://github.com/sgttrs/lovelace-weather-card-chart#configuration

Okay so it will still be happy if I just put it into my lovelace.yaml like in the olden days? Because it looked like pretty much all my cards stopped working after I installed HACS…

Also, it’s not weather card chart I’m trying to install, that is the only one I actually was able to successfully add as a custom card. I’m trying to add @thomasloven’s markdown-mod card.

Well that is easy as that card is in hacs.

Not in mine it’s not… Why is that?

Also there’s this one, which says it exists in the store,

but try as I might, I can’t find it even after multiple reloads:

Markdown mod is obsolete and archived, archived repositories can not be added.
https://github.com/thomasloven/lovelace-markdown-mod

Browser mod is an integration not a plugin.

Markdown mod is deprecated, as it’s functionality is now included in Home Assistant (since 0.99).

And browser_mod is not a lovelace plugin, but an integration, and can be found in HACS under integrations.

1 Like

And as for why I have it in my HACS, it is because I added the repository manually, obviously some time ago :slight_smile:

Okay, a lot of mysteries have been solved… I guess HACS is at least forcing me to move to all the new components, it’s a band-aid I’ve been putting off ripping off for a while, but I’m close to having most functionality restored now, thanks for all the help… One last question, I’m getting these messages in the logs, is it something I should be concerned about?


http://10.10.10.20:8123/community_plugin/lovelace-weather-card-chart/weather-card-chart.js:506:0 NotSupportedError: 'weather-card-chart' has already been defined as a custom element
12:40 AM components/system_log/__init__.py (ERROR)
http://10.10.10.20:8123/community_plugin/simple-thermostat/simple-thermostat.js:1:0 NotSupportedError: 'simple-thermostat' has already been defined as a custom element
12:40 AM components/system_log/__init__.py (ERROR)
http://10.10.10.20:8123/community_plugin/lovelace-slider-entity-row/slider-entity-row.js:1:0 NotSupportedError: 'slider-entity-row' has already been defined as a custom element
12:40 AM components/system_log/__init__.py (ERROR)
http://10.10.10.20:8123/community_plugin/mini-graph-card/mini-graph-card-bundle.js:1:0 NotSupportedError: 'mini-graph-card' has already been defined as a custom element
12:40 AM components/system_log/__init__.py (ERROR)
http://10.10.10.20:8123/community_plugin/lovelace-layout-card/layout-card.js:1:0 NotSupportedError: 'layout-card' has already been defined as a custom element
12:40 AM components/system_log/__init__.py (ERROR)
http://10.10.10.20:8123/community_plugin/mini-media-player/mini-media-player-bundle.js:1:0 NotSupportedError: 'mmp-group-item' has already been defined as a custom element
12:40 AM components/system_log/__init__.py (ERROR)
http://10.10.10.20:8123/community_plugin/button-card/button-card.js:1142:0 NotSupportedError: 'long-press-button-card' has already been defined as a custom element
12:40 AM components/system_log/__init__.py (ERROR)

You have
A) the same card defined multiple times in your resources.
B) just need to clear your cache
C) both

@ludeeus I’m scratching my head here…the HACS logs don’t seem to indicate why this cannot be added to HACS.

jrlucier/eero_tracker

Here are the HAC log entries upon adding (it silently “succeeds”…and then doesn’t show up):

DEBUG (MainThread) [hacs.repository.integration.jrlucier.eero_tracker] Checking repository.
DEBUG (MainThread) [hacs] 4974
DEBUG (MainThread) [hacs] 2020-01-07 04:06:07

Thanks for any insight!

@ludeeus I enabled logging for the button-card issue and restarted and of course it’s now d/l the new one as I suspected.

One question - the docs say to enable logging:

logger:
  default: info
  logs:
    hacs: debug

Is there any reason the default has to be set to info? I normally use warn - if I just set hacs: debug will that give enough information? With default info, it is very wordy… I have disabled logging again now. I also use authenticated with debug and it doesn’t flood the logs…

I confirm it doesn’t add here either. hacs 0.20.7 and HA 0.103.5.

You can set it to warm, if my example don’t have anything there, it defaults to debug, info is more sensible

020-01-09 09:21:43 DEBUG (MainThread) [hacs] Running set_state for kalkih/mini-media-player
2020-01-09 09:21:43 DEBUG (MainThread) [hacs.data] Saving data
2020-01-09 09:21:43 DEBUG (MainThread) [hacs] Running update for kalkih/mini-media-player
2020-01-09 09:21:43 DEBUG (MainThread) [hacs.repository.plugin.kalkih.mini-media-player] Getting repository information
2020-01-09 09:21:48 DEBUG (MainThread) [hacs.data] Saving data
2020-01-09 09:21:49 DEBUG (MainThread) [hacs] Running set_state for kalkih/mini-media-player
2020-01-09 09:21:49 DEBUG (MainThread) [hacs.data] Saving data
2020-01-09 09:21:49 DEBUG (MainThread) [hacs] Running install for kalkih/mini-media-player
2020-01-09 09:21:49 DEBUG (MainThread) [hacs.repository.plugin.kalkih.mini-media-player] Getting repository information
2020-01-09 09:21:54 DEBUG (MainThread) [hacs.repository.plugin.kalkih.mini-media-player] Downloading mini-media-player-bundle.js
2020-01-09 09:21:54 DEBUG (MainThread) [hacs.download.downloader] Downloading https://github.com/kalkih/mini-media-player/releases/download/v1.5.1/mini-media-player-bundle.js
2020-01-09 09:21:56 DEBUG (MainThread) [hacs.download.save] Saving /config/www/community/mini-media-player/mini-media-player-bundle.js
2020-01-09 09:21:56 INFO (MainThread) [hacs.repository.plugin.kalkih.mini-media-player] download of mini-media-player-bundle.js complete
2020-01-09 09:21:56 DEBUG (MainThread) [hacs.data] Saving data

According to frontend should have downloaded 1.5.2
Also… if that downloading message was in the ‘info’ rather than debug, it wouldn’t spam the log file so much and I could leave HACS in there…

I just restarted HA again and reloaded the card and get the latest version