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

[FR] Hide the card if all bars are hidden #167

Open
ildar170975 opened this issue Aug 6, 2023 · 1 comment
Open

[FR] Hide the card if all bars are hidden #167

ildar170975 opened this issue Aug 6, 2023 · 1 comment

Comments

@ildar170975
Copy link

ildar170975 commented Aug 6, 2023

Consider this card:

  - type: custom:bar-card
    severity:
      - from: '0'
        to: '0'
        hide: true
      - from: '1'
        to: '40'
        color: '#007A00'
      - from: '41'
        to: '90'
        color: '#EA9000'
      - from: '91'
        to: '100'
        color: '#C41400'
    entities:
      - entity: input_number.test_level_1

image

When a bar is hidden - the card still is displayed:

image

This may be solved by card-mod, but I would like to suggest an option: when it is set to true:
-- if no bars are displayed - hide the whole card.

@mkanet
Copy link

mkanet commented Aug 6, 2023

I would love to see this feature. I'm currently using card-mod to do this; but, it would be much nicer to have a builtin feature!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants