-
-
Notifications
You must be signed in to change notification settings - Fork 4
Generic Card
The generic-card module applies to all ha-card
elements in Lovelace. This covers most cards in Lovelace except for functional cards like conditional
or entity-filter
.
The no_card
option, when set to true on a card, will hide the background of the card. This is especially useful when embedding cards in entity rows.
type: entities
no_card: true
entities:
- entity: light.bedroom
The canary_style
option can be used to apply a map of CSS styles to a card. Note that it must be a mapping, not an array or string.
type: entities
canary_style:
color: lightblue
background-color: black
entities:
- entity: light.bedroom
The canary_theme
option can be used to apply a theme to a card, similar to how the theme
option works except with wider support. It can also be used as another way to apply CSS styles to a card. Note that if you change a theme this will not update when you reload themes, you will need to refresh the page.
The canary_theme
option works slightly different to how Home Assistant's theme
option does, in that it only adds the CSS styles from the theme to a card.
type: entities
canary_theme: midnight
entities:
- entity: light.bedroom