Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom card theme config #670

Open
rigrig opened this issue Feb 7, 2024 · 0 comments
Open

Custom card theme config #670

rigrig opened this issue Feb 7, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@rigrig
Copy link

rigrig commented Feb 7, 2024

Is your feature request related to a problem? Please describe.

I've got a "Battery Warning" card for my front page, and I'd like to apply a custom theme to it, so it stands out when there is a problem.

Describe the solution you'd like

A theme: <string> config for the card: Override the used theme for this card with any loaded theme, same as for built-in cards.

Additional context

My current setup, using custom:auto-entities with an entities card and theme: uglychristmas:

card YAML
type: custom:auto-entities
card:
  type: entities
  title: Battery Warning
  secondary_info: '{attributes.battery_type_and_quantity}'
  theme: uglychristmas
filter:
  include:
    - entity_id: '*_battery'
  exclude:
    - state: '> 25'
    - state: unavailable

image
Using battery-state-card would mean no need for the auto-entities wrapper, and being able to show the battery type attribute, so I know what to replace.

@rigrig rigrig added the enhancement New feature or request label Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant