HACS: sometimes 'Custom element doesn't exists'

Hello all,

I’ve recently installed HACS and made an dashboard, but there is one problem which is getting on my bothering me. Sometimes it says that the custom element doesn’t exists (see the attached image). On the PC this doesn’t bother me a lot (a simple crtl+F5 fixes this), but on the app it goes even so far, that I have to clear my HASS cache about every day in the, which also logs me out of HASS.

This is the code I’m currently using:

button_card_templates: !include_dir_merge_named "../../custom_components/ui_lovelace_minimalist/__ui_minimalist__/ulm_templates/"

resources:
  - url: ../../www/community/button-card/button-card.js
    type: module

title: "Dashboard"
theme: "minimalist-desktop"
background: "var(--background-image)"
# views: !include_dir_merge_list "views/"
views:
  - title: "Example View"
    path: 0
    icon: "mdi:flower"
    cards:
      - type: "vertical-stack"
        cards:
          - type: "custom:button-card"
            template: "card_title"
            name: "Scenes"
          - type: "custom:auto-entities"
            card:
              type: "grid"
              columns: 2
              square: false
            card_param: "cards"
            sort:
              count: 6
            filter:
              include:
                - type: "custom:button-card"
                  template: card_script
                  variables:
                    ulm_card_script_title: Nightmode lights closet
                    ulm_card_script_icon: "mdi:ceiling-light-multiple"
                  tap_action:
                    action: call-service
                    service: script.turn_on
                    service_data:
                      entity_id: script.control_bedroom_closet_lights
                - type: "custom:button-card"
                  template: card_script
                  variables:
                    ulm_card_script_title: Nightmode lights bed
                    ulm_card_script_icon: "mdi:ceiling-light-multiple"
                  tap_action:
                    action: call-service
                    service: script.turn_on
                    service_data:
                      entity_id: script.control_bedroom_bed
                - type: "custom:button-card"
                  template: card_script
                  variables:
                    ulm_card_script_title: Moviemode
                    ulm_card_script_icon: "mdi:movie-play"
                  tap_action:
                    action: call-service
                    service: script.turn_on
                    service_data:
                      entity_id: script.bedroom_movie_mode

      - type: "vertical-stack"
        cards:
          - type: "custom:button-card"
            template: "card_title"
            name: "Slaapkamer"
          - type: "custom:auto-entities"
            card:
              type: "grid"
              columns: 2
              square: false
            card_param: "cards"
            sort:
              count: 6
            filter:
              include:
                - type: "custom:button-card"
                  template: card_graph
                  entity: sensor.bedroom_humidity
                  variables:
                    ulm_card_graph_color: "var(--google-blue)"
                    ulm_card_graph_name: Vochtigheid
                    ulm_card_graph_entity: sensor.bedroom_humidity
                    ulm_card_graph_type: fill
                    ulm_card_graph_hours: 24
                - type: "custom:button-card"
                  template: card_graph
                  entity: sensor.bedroom_temperature
                  variables:
                    ulm_card_graph_color: "var(--google-red)"
                    ulm_card_graph_name: Temperatuur
                    ulm_card_graph_entity: sensor.bedroom_temperature
                    ulm_card_graph_type: fill
                    ulm_card_graph_hours: 24
                - type: "custom:button-card"
                  template: card_graph
                  entity: sensor.dallas_temperature_sensor_2
                  variables:
                    ulm_card_graph_color: "var(--google-red)"
                    ulm_card_graph_name: Temperatuur DS18B20
                    ulm_card_graph_entity: sensor.dallas_temperature_sensor_2
                    ulm_card_graph_type: fill
                    ulm_card_graph_hours: 24
                - type: "custom:button-card"
                  template: card_light
                  entity: light.lights_pointing_to_the_closet
                  variables:
                    ulm_card_light_name: "Verlichting kledingkast"
                    ulm_card_light_enable_slider: true
                    ulm_card_light_enable_color: true
                    ulm_card_light_enable_slider_minSet: 10
                    ulm_card_light_enable_slider_maxSet: 100
                - type: "custom:button-card"
                  template: card_light
                  entity: light.lights_pointing_to_the_bed
                  variables:
                    ulm_card_light_name: "Verlichting bed"
                    ulm_card_light_enable_slider: true
                    ulm_card_light_enable_color: true
                    ulm_card_light_enable_slider_minSet: 10
                    ulm_card_light_enable_slider_maxSet: 100

Is there an way to fix this problem?

Hi,

Having the same problem, did you ever find a fix?

Thanks

use
- url: local/community/button-card/button-card.js