-
-
Notifications
You must be signed in to change notification settings - Fork 329
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
[Feature]: Allow buttons in Template card #887
Comments
Really good idea, now it is only achievable by
|
@mikedrawback that looks great, mind sharing the yaml? |
@NickChristensen here is the YAML for that kitchen lights card. The most you can fit on the right side is probably 4 buttons.
|
Any updates on this feature? I don't feel good enough at web development to add this myself but I think it shouldn't be that difficult as there is already mushroom-button with the right styles. We just need a way to add those elements to the template specifying an icon, color, action and style (to get the horizontal appearance like we get for covers or climates). It would be very useful to group different entities in a single card, e.g. climate + button controlling it's quiet mode. Additional accessories like number selectors/sliders would be nice too in the future. |
This feature can be found natively in many cards. |
Requirements
Is your feature request related to a problem?
I would like the possibility to add buttons with custom actions in
mushroom-template-card
.When we create a template card, we can customize all properties to have the look and feel of the other cards, but with custom data. It would be interesting to also be able to define actions.
Describe the solution you'd like
The solution should be something along the line of defining the action through yaml, like this:
This code would produce a card with three or four buttons depending on the state of the entity.
Describe alternatives you've considered
Actions can be defined just like chips, that is:
Additional context
No response
The text was updated successfully, but these errors were encountered: