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 entity name in chips entity and color the icon if the state is on , playing.... #71

Closed
Nemesis24 opened this issue Feb 9, 2022 · 5 comments
Assignees
Milestone

Comments

@Nemesis24
Copy link

Show entity name in chips entity and color the icon if the state is on , playing.... I think it would be fine !!
Thanks for this good job.

@Roflcopterer
Copy link

You can do this by using the "Template" chip, here is an example:

icon color:
{% set robot = states('vacuum.robot') %}{% if robot == 'cleaning' %}amber{% else %}grey{% endif %}

@Nemesis24
Copy link
Author

ok thanks this is a way but it would be fine directly.

@Roflcopterer
Copy link

I think the plan is to keep Mushroom basic and easy to work with. The template options are for users that want to customize and spend a little more time on the cards. This gives you way more control, you can specify colors, icons and titles for all the entity state.

@Nemesis24
Copy link
Author

Sans titre
Ok an example for me it's not "easy" in this case to know what switch it is. So the name in place off on or off state will be more friendly, and showing the state with colour will be more Chips I think.

@piitaya
Copy link
Owner

piitaya commented Feb 9, 2022

I think we can have the same options than entity card :

  • content : state | namenone
  • colored icon based on entity state
  • possibility to customize name
  • possibility to customize icon (already possible)

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

3 participants