Lovelace: Versatile Swiss Army Knife Custom Card

:frowning:
I also hope that the owner will come back or that someone will take over the project. I spent a lot of time to create my dashboard with this type of card.

1 Like

well lets cross finger, because it looks very very nice and I want to play around a bit and try to make out of it something, but when its stable.

1 Like

What version are you running?

latest version

Some cards shown here, only work with beta version v2.5.1-dev.2. Unfortunately, this version was never officially distributed.

Please try the 2.4.6 or 2.5.1 dev. 1
If the I.set issue is still there
 Maybe you should give up.

It is a pitty, i likr this carda a lot.

Dont know if someone is taking care of the project or someone would adopt it.

Anyway, ill try those versions

Bonjour, je reviens sur la discussion car je me retrouve au mĂȘme point
 pour l’installation de Swiss Army Knife

1 - J’ai installĂ© via HACS Swiss Army Knife

2 - fichier : configuration.yaml :

lovelace:
  resources:
    - url: /homeassistant/www/community/frigate-hass-card.js
    - url: /homeassistant/www/community/swiss-army-knife-card/resources.yaml
      type: module

3 - J’ai copiĂ© le fichier : sak_templates sous
/homeassistant/ mĂȘme s’il se trouvait dĂ©jĂ  dans le dossier crĂ©e lors de l’installation sous www/community/Swiss Army Knife car je n’ai pas de dossier lovelace fallait-il en crĂ©er un ?

4 - J’ai crĂ©e le fichier : ressources.yaml sous
/homeassistant/www/community/swiss-army-knife-card/resources.yaml

- url: /hacsfiles/swiss-army-knife-card/swiss-army-knife-card.js
  type: module

5 - et là, le drame
 je n’ai pas : user-svg-definitions.yaml

6 - et je n’ai pas le fichier : ui-lovelace.yaml. mais ui_lovelace_minimalist à la racine


En cherchant je l’ai trouvĂ© sous : /homeassistant/ui_lovelace_minimalist/dashboard/ui-lovelace.yaml du coup, j’ai rajoutĂ© :

# Swiss Army Knife Templates
#
# The system templates come with the HACS install and can be updated
# with a new release. That part is automatic!
sak_sys_templates:
  !include www/community/swiss-army-knife-card/sak_templates.yaml

# The user templates are created by the user, and won't be updated 
# with a new release. If changes are required, then the user has to
# upate the template configuration files.
sak_user_templates:
  !include lovelace/sak_templates/sak_templates.yaml

7 - j’ai rajoutĂ© dans le fichier configuration.yaml

http:
  cors_allowed_origins:
    - https://unpkg.com
    - https://unpkg.com/lit-html@1/directives/style-map.js?module
    - https://unpkg.com/lit-html@1/directives/if-defined?module
    - https://unpkg.com/lit-html@%5E1.0.0?module
    - https://unpkg.com/lit-html@1/directives/style-map.js?module

mĂȘme si j’ai rien compris Ă  :
Étape 2c : Ajouter quelques fichiers Ă  configuration.yaml Tant que cette carte n’est pas un bundle, vous devez ajouter manuellement quelques rĂ©fĂ©rences dans la **cors_allowed_origins** dĂ©finition du configuration.yaml
J’ai pas trouvĂ© ce “cors_allowed_origins”

Si quelqu’un avait la gentillesse de m’aider
 ? ça pourrait peut etre aussi en aider d’autres


Merci et désolée pour la longueur


TrÚs bonne journée !

In English

Hello, I am coming back to the discussion because I find myself at the same point
 for the installation of Swiss Army Knife

1 - I installed via HACS Swiss Army Knife

2 - file: configuration.yaml:

lovelace:
  resources:
    - url: /homeassistant/www/community/frigate-hass-card.js
    - url: /homeassistant/www/community/swiss-army-knife-card/resources.yaml
      type: module

3 - I copied the file: sak_templates under
/homeassistant/ even if it was already in the folder created during installation under www/community/Swiss Army Knife because I don’t have a lovelace folder, did I have to create one?

4 - I created the file: resources.yaml under
/homeassistant/www/community/swiss-army-knife-card/resources.yaml

- url: /hacsfiles/swiss-army-knife-card/swiss-army-knife-card.js
  type: module

5 - and here, the drama
 I don’t have: user-svg-definitions.yaml

6 - and I don’t have the file: ui-lovelace.yaml. but ui_lovelace_minimalist at the root


While searching I found it under: /home assistant/ui lovelace minimalist/dashboard/ui-lovelace.yaml so I added:

# Swiss Army Knife Templates
#
# The system templates come with the HACS install and can be updated
# with a new release. That part is automatic!
sak_sys_templates:
  !include www/community/swiss-army-knife-card/sak_templates.yaml

# The user templates are created by the user, and won't be updated 
# with a new release. If changes are required, then the user has to
# upate the template configuration files.
sak_user_templates:
  !include lovelace/sak_templates/sak_templates.yaml

7 - I added in the configuration.yaml file

http:
  cors_allowed_origins:
    - https://unpkg.com
    - https://unpkg.com/lit-html@1/directives/style-map.js?module
    - https://unpkg.com/lit-html@1/directives/if-defined?module
    - https://unpkg.com/lit-html@%5E1.0.0?module
    - https://unpkg.com/lit-html@1/directives/style-map.js?module

even if I didn’t understand anything about :
Step 2c: Add some files to configuration.yaml As long as this card is not a bundle, you have to manually add some references in the cors_allowed_origins definition of the configuration.yaml
I didn’t find this “cors_allowed_origins”

If someone would be kind enough to help me
? it could perhaps help others too


Thanks and sorry for the length


Have a great day!