How to install swipe card properly?

I hope someone can help me.
I have installed the swipe card trough HACS.

The file swipe-card.js is inside the config\www\custom-lovelace\swipe-card folder.

Based on the install instruction, I should insert the following to the lovelace config:

resources:
  - url: /local/custom-lovelace/swipe-card/swipe-card.js
    type: module

But where is the lovelace config located and does dwains dashboard use a different config file?

I have inserted this code both to the configuration.yaml in the root folder an to the dwains-dashboard/configs/settings.yaml file, but in the frontend I get the error “custom element doesn’t exist: swiper-card”.

Settings - dashboards - upper right dots - resources

2 Likes

In my experience, when using HACS there is no need to register resources manually, it is already done by HACS.

1 Like

Correct, but even though the Swipe Card is present in HACS, it is not really installed by HACS. It is a manual download of a JavaScript file, followed by a manual addition of the Resource. Reason being that this custom card is archived and no longer actively maintained. Cheers!