A card that displays Nintendo Switch games that are on sale from your wish list.
Cover Art | Background Art |
---|---|
- Install the Nintendo Wishlist Custom Component.
- Copy the nintendo-wishlist-card.js into your
www/custom-lovelace
folder or install it from the HACS (Home Assistant Community Store). - Add the following to your
ui-lovelace.yaml
file underresources
:
resources:
- url: /local/custom-lovelace/nintendo-wishlist-card.js
type: js
- Add the card to one of your lovelace views.
cards:
- type: custom:nintendo-wishlist-card
entity: sensor.nintendo_wishlist
title: Switch Wishlist
image_style: boxart
Name | Type | Default | Description |
---|---|---|---|
type | string | Required | custom:nintendo-wishlist-card |
entity | string | Required | The entity id of the nintendo-wishlist custom component. e.g. sensor.nintendo_wishlist |
title | string | The title to display at the top of the card. | |
image_style | string | boxart | The art style to display. Options are boxart or backgroundart . |
max | int | 5 | The maximum number of items to show in the card. |
accent_color | string | var(--primary-color) when image_style is boxart , #000 when image_style is backgroundart |
Color of the ribbon in boxart image_style and background in backgroundart image_style. Accepts any valid css color e.g. (red , #fff ) |
title_color | string | var(--primary-color) when image_style is boxart , #fff when image_style is backgroundart |
Color of the title. Accepts any valid css color e.g. (red , #fff ) |
line1_color | string | var(--primary-color) when image_style is boxart , #fff when image_style is backgroundart |
Color of the pricing text. Accepts any valid css color e.g. (red , #fff ) |
border_color | string | #fff when image_style is boxart , #000 when image_style is backgroundart |
Color of the outside border in boxart image_style and border around image in backgroundart image_style. Accepts any valid css color e.g. (red , #fff ) |
sort_by | percent_off , sale_price |
No specific order | What field the results should be sorted by. |
sort_dir | asc , desc |
desc |
Which direction to sort the results. |
The code for this card is a minor modification of @maykar's upcoming-media-card.