ljmerza / light-entity-card

Control any light or switch entity
MIT License
233 stars 41 forks source link

ERROR (MainThread) [hacs] Tried to serve up '/config/www/community/light-entity-card/dist/light-entity-card.js' but it does not exist #34

Closed tomlut closed 4 years ago

tomlut commented 4 years ago

I get this error:

ERROR (MainThread) [hacs] Tried to serve up '/config/www/community/light-entity-card/dist/light-entity-card.js' but it does not exist

Whenever the light entity card stacked in an entities card in a conditional card is made visible.

It is installed correctly according to HACS and does display, it just generates the above error.

  - card:
      cards:
        - entity: light.led_strip_bar
          group: true
          style: |
            ha-card {
              border: solid 2px var(--primary-color);
              --ha-card-background: rgba(0, 0, 0, 0);
            }
          type: 'custom:light-entity-card'
        - entities:
            - input_number.ledspeed
            - input_number.ledintensity
            - input_number.ledbrightness
          style: |
            ha-card {
              border: solid 2px var(--primary-color);
              --ha-card-background: rgba(0, 0, 0, 0);
            }
          type: entities
        - cards:
            - entities:
                - input_select.wled_palette_list
              style: |
                ha-card {
                  border: solid 2px var(--primary-color);
                  --ha-card-background: rgba(0, 0, 0, 0);
                }
              type: entities
            - entities:
                - input_select.wled_presets
              style: |
                ha-card {
                  border: solid 2px var(--primary-color);
                  --ha-card-background: rgba(0, 0, 0, 0);
                }
              type: entities
          type: 'custom:hui-horizontal-stack-card'
        - entities:
            - script.wled_random
          style: |
            ha-card {
              border: solid 2px var(--primary-color);
              --ha-card-background: rgba(0, 0, 0, 0);
            }
          type: entities
      type: vertical-stack
    conditions:
      - entity: light.led_strip_bar
        state: 'on'
    type: 'custom:hui-conditional-card'

Screenshot_2020-03-31 Home Assistant(1)

ljmerza commented 4 years ago

looks like the conditional card has not been updated to the new path HACS installs cards. Open an issue there.

tomlut commented 4 years ago

Nope. This was an issue before 0.106.

ljmerza commented 4 years ago

config/www/community/ is the old path HACS installs for cards. Does the card work by itself without being instead the conditional card?

tomlut commented 4 years ago

Huh. That's weird. I'm not using that path. lovelace_resources contains:

                "id": "53a7866da2e245e298aa1876804619b7",
                "type": "module",
                "url": "/hacsfiles/light-entity-card/dist/light-entity-card.js"

I uninstalled it from HACS and reinstalled it but am getting the same error.

ljmerza commented 4 years ago

hacsfiles is the new path HACS installs lovelace cards. If this card is working just fine on it's own, then it's either the conditional card or HACS. Open an issue there.

tomlut commented 4 years ago

Actually it is not working just fine.

I just worked out that I can generate the error with the following config just by refreshing the page:

group: false
color_wheel: true
persist_features: false
brightness: true
color_temp: true
white_value: true
color_picker: true
smooth_color_wheel: false
show_slider_percent: false
full_width_sliders: false
brightness_icon: weather-sunny
white_icon: file-word-box
temperature_icon: thermometer
entity: light.led_strip_bar
type: 'custom:light-entity-card'
ljmerza commented 4 years ago

It has nothing to do with your config. The card is installed wrong. Look at the HACS docs.

tomlut commented 4 years ago

None of the 20 other HACS plugins I use has this issue. The file path was correct but I've given up trying to convince you and uninstalled it. Problem solved.