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

Show attributes based on state possible? #78

Open
X1pheR opened this issue Aug 29, 2021 · 0 comments
Open

Show attributes based on state possible? #78

X1pheR opened this issue Aug 29, 2021 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@X1pheR
Copy link

X1pheR commented Aug 29, 2021

Great minimalistic card! As a nice finish I tried adding custom attributes per the instructions and it works nicely. But would it be possible to only show things based on the state? For example below to show the cleaned area. But if it's not running it doesn't make sense to show it. Also for buttons. It doesn't make sense to show a stop button for example if it is docked.

- type: custom:xiaomi-vacuum-card
  entity: vacuum.xiaomi_vacuum_cleaner
  attributes:
    clean_area:
      key: 'clean_area'
      label: 'Cleaned area: '
      unit: ' m2'
@benct benct added enhancement New feature or request help wanted Extra attention is needed labels Nov 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants