hacs / integration

HACS gives you a powerful UI to handle downloads of all your custom needs.
https://hacs.xyz
MIT License
5.24k stars 1.26k forks source link

hacs components are not added to lovelace resources #1234

Closed craiq closed 4 years ago

craiq commented 4 years ago

Installation details

Description Value
HACS version 1.0.1
Home Assistant version 0.110.1
Installation method for HA supervisor
Dashboard config method UI controlled

Checklist

Describe the issue

after installing eg a plugin via hacs it's not added to the lovelace resources

Steps to reproduce

  1. browse hacs cards
  2. "install this repository in hacs"

Debug logs

Logs ```text 2020-05-23 13:52:51 DEBUG (MainThread) [hacs] Configuration type: flow 2020-05-23 13:52:51 INFO (MainThread) [hacs] ------------------------------------------------------------------- HACS (Home Assistant Community Store) Version: 1.0.1 This is a custom integration If you have any issues with this you need to open an issue here: https://github.com/hacs/integration/issues ------------------------------------------------------------------- 2020-05-23 13:52:51 DEBUG (MainThread) [hacs] Can update 488 repositories 2020-05-23 13:52:51 DEBUG (MainThread) [hacs.repository.integration.hacs.integration] Checking repository. 2020-05-23 13:52:51 DEBUG (MainThread) [hacs.repository.integration.hacs.integration] Running checks against 1.0.1 2020-05-23 13:52:52 INFO (MainThread) [hacs.repository.integration.hacs.integration] Registration complete 2020-05-23 13:52:52 INFO (MainThread) [hacs.data] Restore started 2020-05-23 13:52:57 INFO (MainThread) [hacs.data] Restore done 2020-05-23 13:52:57 DEBUG (MainThread) [hacs.configuration] appdaemon_path: appdaemon/apps/ 2020-05-23 13:52:57 DEBUG (MainThread) [hacs.configuration] appdaemon: True 2020-05-23 13:52:57 DEBUG (MainThread) [hacs.configuration] netdaemon_path: netdaemon/apps/ 2020-05-23 13:52:57 DEBUG (MainThread) [hacs.configuration] netdaemon: True 2020-05-23 13:52:57 DEBUG (MainThread) [hacs.configuration] config_type: flow 2020-05-23 13:52:57 DEBUG (MainThread) [hacs.configuration] debug: True 2020-05-23 13:52:57 DEBUG (MainThread) [hacs.configuration] dev: False 2020-05-23 13:52:57 DEBUG (MainThread) [hacs.configuration] frontend_mode: Grid 2020-05-23 13:52:57 DEBUG (MainThread) [hacs.configuration] frontend_compact: False 2020-05-23 13:52:57 DEBUG (MainThread) [hacs.configuration] onboarding_done: True 2020-05-23 13:52:57 DEBUG (MainThread) [hacs.configuration] plugin_path: www/community/ 2020-05-23 13:52:57 DEBUG (MainThread) [hacs.configuration] python_script_path: python_scripts/ 2020-05-23 13:52:57 DEBUG (MainThread) [hacs.configuration] python_script: False 2020-05-23 13:52:57 DEBUG (MainThread) [hacs.configuration] sidepanel_icon: hacs:hacs 2020-05-23 13:52:57 DEBUG (MainThread) [hacs.configuration] sidepanel_title: HACS 2020-05-23 13:52:57 DEBUG (MainThread) [hacs.configuration] theme_path: themes/ 2020-05-23 13:52:57 DEBUG (MainThread) [hacs.configuration] theme: False 2020-05-23 13:52:57 DEBUG (MainThread) [hacs.configuration] country: ALL 2020-05-23 13:52:57 DEBUG (MainThread) [hacs.configuration] experimental: False 2020-05-23 13:52:57 DEBUG (MainThread) [hacs.configuration] release_limit: 5 2020-05-23 13:53:05 INFO (MainThread) [hacs] Loading known repositories 2020-05-23 13:53:10 DEBUG (MainThread) [hacs] Starting recuring background task for installed repositories 2020-05-23 13:53:13 DEBUG (MainThread) [hacs.data] Saving data 2020-05-23 13:53:17 DEBUG (MainThread) [hacs] Recuring background task for installed repositories done 2020-05-23 13:53:23 DEBUG (MainThread) [queueman.manager] Checking out tasks to execute 2020-05-23 13:53:23 DEBUG (MainThread) [queueman.manager] Starting queue execution for 12 tasks 2020-05-23 13:53:23 DEBUG (MainThread) [hacs.repository.integration.hacs.integration] Getting repository information 2020-05-23 13:53:23 DEBUG (MainThread) [hacs.repository.plugin.kalkih.mini-media-player] Getting repository information 2020-05-23 13:53:23 DEBUG (MainThread) [hacs.repository.plugin.kalkih.mini-graph-card] Getting repository information 2020-05-23 13:53:23 DEBUG (MainThread) [hacs.repository.plugin.ljmerza.calendar-card] Getting repository information 2020-05-23 13:53:23 DEBUG (MainThread) [hacs.repository.plugin.custom-cards.spotify-card] Getting repository information 2020-05-23 13:53:23 DEBUG (MainThread) [hacs.repository.plugin.bramkragten.weather-card] Getting repository information 2020-05-23 13:53:23 DEBUG (MainThread) [hacs.repository.appdaemon.apop880.Night-Mode] Getting repository information 2020-05-23 13:53:23 DEBUG (MainThread) [hacs.repository.plugin.PiotrMachowski.lovelace-xiaomi-vacuum-map-card] Getting repository information 2020-05-23 13:53:23 DEBUG (MainThread) [hacs.repository.theme.seangreen2.slate_theme] Getting repository information 2020-05-23 13:53:23 DEBUG (MainThread) [hacs.repository.theme.home-assistant-community-themes.amoled] Getting repository information 2020-05-23 13:53:23 DEBUG (MainThread) [hacs.repository.theme.naofireblade.clear-theme-dark] Getting repository information 2020-05-23 13:53:23 DEBUG (MainThread) [hacs.repository.theme.chaptergy.noctis-grey] Getting repository information 2020-05-23 13:53:26 DEBUG (MainThread) [hacs.repository.integration.hacs.integration] Running checks against 1.0.1 2020-05-23 13:53:27 DEBUG (MainThread) [hacs.repository.plugin.bramkragten.weather-card] Running checks against v1.4.3 2020-05-23 13:53:27 DEBUG (MainThread) [hacs.repository.plugin.ljmerza.calendar-card] Running checks against 3.108.6 2020-05-23 13:53:27 DEBUG (MainThread) [hacs.repository.plugin.PiotrMachowski.lovelace-xiaomi-vacuum-map-card] Running checks against master 2020-05-23 13:53:27 DEBUG (MainThread) [hacs.repository.plugin.kalkih.mini-graph-card] Running checks against v0.9.3 2020-05-23 13:53:27 DEBUG (MainThread) [hacs.repository.theme.home-assistant-community-themes.amoled] Running checks against master 2020-05-23 13:53:27 DEBUG (MainThread) [hacs.repository.theme.seangreen2.slate_theme] Running checks against master 2020-05-23 13:53:27 DEBUG (MainThread) [hacs.repository.plugin.custom-cards.spotify-card] Running checks against v1.25.0 2020-05-23 13:53:27 DEBUG (MainThread) [hacs.repository.theme.chaptergy.noctis-grey] Running checks against v1.2.2 2020-05-23 13:53:27 DEBUG (MainThread) [hacs.repository.theme.naofireblade.clear-theme-dark] Running checks against v1.3 2020-05-23 13:53:27 DEBUG (MainThread) [hacs.repository.appdaemon.apop880.Night-Mode] Running checks against v1.0.0 2020-05-23 13:53:27 DEBUG (MainThread) [hacs.repository.plugin.kalkih.mini-media-player] Running checks against v1.8.1 2020-05-23 13:53:33 DEBUG (MainThread) [queueman.manager] Queue execution finished for 12 tasks finished in 9.89 seconds 2020-05-23 13:53:33 DEBUG (MainThread) [hacs.data] Saving data 2020-05-23 14:00:11 DEBUG (MainThread) [hacs] Running update for thomasloven/lovelace-slider-entity-row 2020-05-23 14:00:11 DEBUG (MainThread) [hacs.repository.plugin.thomasloven.lovelace-slider-entity-row] Getting repository information 2020-05-23 14:00:11 DEBUG (MainThread) [hacs.repository.plugin.thomasloven.lovelace-slider-entity-row] Running checks against 14 2020-05-23 14:00:12 DEBUG (MainThread) [hacs.data] Saving data 2020-05-23 14:00:22 DEBUG (MainThread) [hacs] Running update for thomasloven/lovelace-slider-entity-row 2020-05-23 14:00:22 DEBUG (MainThread) [hacs.repository.plugin.thomasloven.lovelace-slider-entity-row] Getting repository information 2020-05-23 14:00:22 DEBUG (MainThread) [hacs.repository.plugin.thomasloven.lovelace-slider-entity-row] Running checks against 14 2020-05-23 14:00:23 DEBUG (MainThread) [hacs.data] Saving data 2020-05-23 14:00:32 DEBUG (MainThread) [hacs] Running install for thomasloven/lovelace-slider-entity-row 2020-05-23 14:00:32 DEBUG (MainThread) [hacs.repository.plugin.thomasloven.lovelace-slider-entity-row] Getting repository information 2020-05-23 14:00:33 DEBUG (MainThread) [hacs.repository.plugin.thomasloven.lovelace-slider-entity-row] Running checks against 14 2020-05-23 14:00:34 DEBUG (MainThread) [hacs.repository.plugin.thomasloven.lovelace-slider-entity-row] Getting repository information 2020-05-23 14:00:34 DEBUG (MainThread) [hacs.repository.plugin.thomasloven.lovelace-slider-entity-row] Running checks against 14 2020-05-23 14:00:35 DEBUG (MainThread) [hacs.repository.plugin.thomasloven.lovelace-slider-entity-row] 2020-05-23 14:00:35 DEBUG (MainThread) [queueman.manager] Checking out tasks to execute 2020-05-23 14:00:35 DEBUG (MainThread) [queueman.manager] Starting queue execution for 2 tasks 2020-05-23 14:00:35 DEBUG (MainThread) [hacs.repository.plugin.thomasloven.lovelace-slider-entity-row] Downloading slider-entity-row.js 2020-05-23 14:00:35 DEBUG (MainThread) [hacs.download.downloader] Downloading https://raw.githubusercontent.com/thomasloven/lovelace-slider-entity-row/14/slider-entity-row.js 2020-05-23 14:00:35 DEBUG (MainThread) [hacs.repository.plugin.thomasloven.lovelace-slider-entity-row] Downloading webpack.config.js 2020-05-23 14:00:35 DEBUG (MainThread) [hacs.download.downloader] Downloading https://raw.githubusercontent.com/thomasloven/lovelace-slider-entity-row/14/webpack.config.js 2020-05-23 14:00:35 DEBUG (MainThread) [hacs.download.save] Saving /config/www/community/lovelace-slider-entity-row/slider-entity-row.js 2020-05-23 14:00:35 DEBUG (MainThread) [hacs.download.save] Saving /config/www/community/lovelace-slider-entity-row/webpack.config.js 2020-05-23 14:00:35 INFO (MainThread) [hacs.repository.plugin.thomasloven.lovelace-slider-entity-row] download of webpack.config.js complete 2020-05-23 14:00:35 INFO (MainThread) [hacs.repository.plugin.thomasloven.lovelace-slider-entity-row] download of slider-entity-row.js complete 2020-05-23 14:00:35 DEBUG (MainThread) [queueman.manager] Queue execution finished for 2 tasks finished in 0.17 seconds 2020-05-23 14:00:35 DEBUG (MainThread) [hacs.data] Saving data 2020-05-23 14:00:42 WARNING (MainThread) [asyncio] socket.send() raised exception. 2020-05-23 14:00:42 WARNING (MainThread) [asyncio] socket.send() raised exception. 2020-05-23 14:00:42 WARNING (MainThread) [asyncio] socket.send() raised exception. 2020-05-23 14:00:42 WARNING (MainThread) [asyncio] socket.send() raised exception. 2020-05-23 14:00:42 WARNING (MainThread) [asyncio] socket.send() raised exception. 2020-05-23 14:00:42 WARNING (MainThread) [asyncio] socket.send() raised exception. 2020-05-23 14:00:42 WARNING (MainThread) [asyncio] socket.send() raised exception. 2020-05-23 14:00:42 WARNING (MainThread) [asyncio] socket.send() raised exception. 2020-05-23 14:00:42 WARNING (MainThread) [asyncio] socket.send() raised exception. 2020-05-23 14:00:42 WARNING (MainThread) [asyncio] socket.send() raised exception. 2020-05-23 14:00:42 WARNING (MainThread) [asyncio] socket.send() raised exception. 2020-05-23 14:00:42 WARNING (MainThread) [asyncio] socket.send() raised exception. 2020-05-23 14:00:42 WARNING (MainThread) [asyncio] socket.send() raised exception. 2020-05-23 14:00:42 WARNING (MainThread) [asyncio] socket.send() raised exception. 2020-05-23 14:00:49 DEBUG (MainThread) [hacs] Serving DEBUG frontend 2020-05-23 14:01:03 DEBUG (MainThread) [hacs] Serving weather-card/weather-card.js from /config/www/community/weather-card/weather-card.js.gz 2020-05-23 14:01:03 DEBUG (MainThread) [hacs] Serving mini-media-player-custom/mini-media-player-bundle.js from /config/www/community/mini-media-player-custom/mini-media-player-bundle.js 2020-05-23 14:01:03 DEBUG (MainThread) [hacs] Serving calendar-card/calendar-card.js from /config/www/community/calendar-card/calendar-card.js.gz 2020-05-23 14:01:03 DEBUG (MainThread) [hacs] Serving mini-graph-card/mini-graph-card-bundle.js from /config/www/community/mini-graph-card/mini-graph-card-bundle.js.gz 2020-05-23 14:01:18 DEBUG (MainThread) [hacs] Running update for custom-cards/spotify-card 2020-05-23 14:01:18 DEBUG (MainThread) [hacs.repository.plugin.custom-cards.spotify-card] Getting repository information 2020-05-23 14:01:18 DEBUG (MainThread) [hacs.repository.plugin.custom-cards.spotify-card] Running checks against v1.25.0 2020-05-23 14:01:19 DEBUG (MainThread) [hacs.data] Saving data 2020-05-23 14:03:11 DEBUG (MainThread) [hacs] Nothing in the queue ```
hacs-bot[bot] commented 4 years ago

Make sure you have read the issue guidelines and that you filled out the entire template.

ludeeus commented 4 years ago

Tha only happens when you are in storage mode for Lovelace. Share your lovelace configuration.

craiq commented 4 years ago

-- deleted

ludeeus commented 4 years ago

That is not the Lovelace config. https://www.home-assistant.io/lovelace/yaml-mode/ If you do not have that, you are in storage mode. When you click install on a repository, check for issues in your browser console.

craiq commented 4 years ago

ah ok will fix this as the page reloads after install the console is cleared or at which time point to check?

craiq commented 4 years ago

so result of adding following to the 'configuration.yaml'

lovelace:
  mode: yaml
ludeeus commented 4 years ago

Do not add that, I was asking if you used it

craiq commented 4 years ago

reverted to not use it. So issue was filed with UI controlled

ludeeus commented 4 years ago

image

craiq commented 4 years ago

resources are back 👍

ludeeus commented 4 years ago

So no issue?

hubudavs commented 4 years ago

What was the solution? I have the same problem.

craiq commented 4 years ago

So no issue?

issue is still there.

What was the solution? I have the same problem.

I add them manually

ludeeus commented 4 years ago

Add the logs from browser console.

craiq commented 4 years ago

how? the page is automatically reloaded as soon as the plugin is installed So the console is empty

ludeeus commented 4 years ago

https://github.com/hacs/integration/issues/1234#issuecomment-633051707

craiq commented 4 years ago

ah oversaw this, sorry. Edge Chromium doesn't care and clears console anyway... Also can't see any message pop up

Romario1972 commented 4 years ago

Tha only happens when you are in storage mode for Lovelace. Share your lovelace configuration.

I'm using yaml mode and I have the same issue. the result of installation of any custom cards using HACS - "Custom element doesn't exist: mini-graph-card." ui-lovelace.yaml:

# The beginning of ui-lovelace.yaml
resources:
#  - url: /config/www/community/mini-graph-card/mini-graph-card-bundle.js?v=0.9.3
#  - type: module
#  - url: /hacsfiles/mini-graph-card/mini-graph-card-bundle.js
#    type: module
   - url: /local/mini-graph-card-bundle.js?v=0.9.3
     type: module
   - url: /local/battery-state-card.js
     type: module

and below card:

            - type: custom:mini-graph-card
              name: speedtest
              icon: mdi:speedometer
              entities:
                    - entity: sensor.speedtest_download
                    - entity: sensor.speedtest_upload
                    - entity: sensor.speedtest_ping
ludeeus commented 4 years ago

You do not have the same issue, when you are using YAML mode you need to manually add them. See the Lovelace documentation for how to do that.

ludeeus commented 4 years ago

@craiq try 1.0.3

Romario1972 commented 4 years ago

You do not have the same issue, when you are using YAML mode you need to manually add them. See the Lovelace documentation for how to do that.

Yep, I've add resources And I've try it different ways:

ui-lovelace.yaml:

# The beginning of ui-lovelace.yaml
resources:
#  - url: /config/www/community/mini-graph-card/mini-graph-card-bundle.js?v=0.9.3
#  - type: module
#  - url: /hacsfiles/mini-graph-card/mini-graph-card-bundle.js
#    type: module
   - url: /local/mini-graph-card-bundle.js?v=0.9.3
     type: module
   - url: /local/battery-state-card.js
     type: module

but it doesn't work at all. HACS 1.0.3

Romario1972 commented 4 years ago

See the Lovelace documentation for how to do that.

Could you please point me on what I'm missing?

ludeeus commented 4 years ago

https://www.home-assistant.io/lovelace/dashboards-and-views/

Romario1972 commented 4 years ago

Yes, I've put resources as written on this page and it simply doesn't work. What I'm doing wrong?

ludeeus commented 4 years ago

Use the one HACS told you to use /hacsfiles/mini-graph-card/mini-graph-card-bundle.js and stop hijacking unrelated issues.

craiq commented 4 years ago

@craiq try 1.0.3

@ludeeus works!!! thank you very much!

craiq commented 4 years ago

uninstalling the plugin does not delete the resource xD It's no visible problem, but still ^^