-
-
Notifications
You must be signed in to change notification settings - Fork 7
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
Possible to template "expanded" state? #212
Comments
This is exactly what is currently not possible and for this you would have to control the HA backend. A good place to start could be the mushroom card. That's where it was implemented. If anyone has experience with this, I would be happy if someone could contribute this feature. Maybe it is also possible to set the status via card mod. Haven't tried it myself yet. |
Yeah, I mean I could use a conditional card, duplicate the expander card info with one version being "expanded: true" and one version being "expanded: false", and set the conditions in the conditional card ... but that's like ... a LOT of work. A decluttering template might also be an option. |
It depends, i'am using the YAML Mode in HA for my UI. There you can move the the complete expander card into one file and then just reuse it in your conditional card with !include. e.g.
|
That's what i ended up doing, so i'm going to consider this closed |
From my point of view it can remain open, the feature definitely makes sense to offer template support :) |
Hi all. And especially @MelleD , the include trick. Can this be used to change the background color of the expand card too based on a sensors state too? And btw great work! I think it should be include in HA by default, such a handy and space saving function! |
Yes why not you can create 2 cards with different background and check with conditional which you would like to show. |
Hi! I was looking for this feature too to automatically expand the room I'm in. I understand having a template may be impossible for now.. But how about tying it to a binary_sensor? Would that be possible? Then we could create helper sensors with templates (or use existing sensors) |
This is a great card, so thank you for making this!
The feature I would like is the ability to "template" the "expanded" state. As an example, instead of
expanded: true
orexpanded: false
, I would like to be able to do something like the following:The text was updated successfully, but these errors were encountered: