Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 96121

Unable to make custom cards work

$
0
0

@nocd wrote:

Unfortunately, I’ve been through all the threads and this is just driving me nuts.

I’ve begun working on a custom UI for my HASS install (Unraid -> Docker -> hass v0.103.2). I thought I’d start with a simply weather card (https://github.com/bramkragten/weather-card). I cleaned out all the card from my UI so I could work from scratch. No matter what I do, repath file locations, change url sources, switch between manual yaml and storage UI, etc seems to make this work. I cannot get past the “Entity not available: weather.yourweatherentity” error.

I’m using the ui-lovelace.yaml file:

resources:
  - url: /local/weather-card.js
    type: module
title: Home
views:
  - cards:
      - entity: weather.yourweatherentity
        type: 'custom:weather-card'
        icons: /local/icons/

    panel: false
    path: default_view
    theme: default
    title: Home

and specifying YAML mode in my configuration.yaml:

lovelace:
  mode: yaml

I have tried /www/ and /www/custom-lovelace/weather-card/ and no pathing seems to work.

My dev logs show this error, yet I can’t seem to find where the duplicate is:

http://192.168.1.239:8123/local/weather-card.js?:410:0 NotSupportedError: 'weather-card' has already been defined as a custom element

Anyone have any idea why this isn’t working?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 96121

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>