Custom Cards? These instructions don't make sense

The card I’m trying to use is swipe-card.

  1. First order of business, use HACS to install the repository. Done.
  2. Now what?

The instructions on the repository seem to be outdated. There’s a resource already defined in Lovelace resources after installing the repository:

/hacsfiles/swipe-card/swipe-card.js

This path appears to be imaginary. The actual file is found in /usr/share/hassio/homeassistant/www/community/swipe-card/swipe-card.js

If I add this to the Lovelace config using the suggested yaml, I get:

Error: Custom element not found: swipe-card

Am I supposed to copy this file somewhere else, or am I supposed to manually add the resource when it’s already been added? Why is it in HACS? Ugh…what am I missing?

1 Like

The instructions make perfect sense if you read the instructions. It’s not an imaginary path. Please read this, then you’ll understand how plugins work.

1 Like

That makes perfect sense. The instructions on the card’s repository doesn’t. And you can kick me in the head now because the custom card just showed up in my card selections after I rebooted HA again.

Yoikes.

And it got solved without you even telling us what github repo this card is housed in.

Wait what? Googly boogly.

I’m seeing a lot of custom cards that still have old instructions that aren’t necessary anymore because of HACS…don’t know if that’s a good thing or not.

hacsfiles is an endpoint, not the ‘real’ path. Same as local is an endpoint that doesn’t exist (www is the ‘real’ path)
You have not been here 5 minutes… surely this is not news to you?
Your issue is probably you just needed to empty/refresh the cache…

Yeah in HACS there are 3 swipe cards of various names, and google finds even more :slight_smile:

not everyone uses HACS…

I think I’ll mark that as the solution. :slight_smile:

1 Like

quite a lot of people don’t use it actually from what I have seen. Most CC’s have manual and HACS install instructions but it can be confusing for sure.

Does every HACS compatible custom card install seamlessly? I’m trying to install this one:

The files were all automatically installed, I restarted HA, but the card doesn’t show up in LL when I try to add it.

The other custom card (the swiper one) eventually showed up in the cards selections.

Not sure how to get around this one.

you probably need to add a manual card in Lovelace… lots of cards have no GUI so select manual card and paste in the yaml

I see this:

- type: custom:thermostat-card
  entity: climate.gong_zuo_jian_kong_diao
  small_i: true
  title: 工作间

in the repo but that most likely won’t work… sigh… if you add the manual card try this:

type: custom:thermostat-card
entity: climate.gong_zuo_jian_kong_diao
small_i: true
title: 工作间

(I could be wrong lol)

Pfff…hahaha. This.

WHAT THE!!! This just happened moments later.

yeah… when you save it it should get the entity…

yeah it might only read it when the entity updates…

you’re learning all kinds of useful shit today aren’t you lol

1 Like

Lol…haha…yeah. I’ve been doing this stupid crap for 3 years now and you’d think I’d have figured out friggin Lovelace. Unfortunately it’s one of those once-you-get-it-going-you-don’t-need-to-remember-how problems.

1 Like

All that, and this particular thermostat doesn’t actually behave the way one would expect it to…it’s an up/down toggle, not a circular tap and drag. Bleh.

On another note, do you know how I can create a single thermostat to control all of the others?

I could do NodeRED automations to set 6 of the 7 when one of the 7 is updated…I suppose.