-
Notifications
You must be signed in to change notification settings - Fork 19
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
input_select not rendered as dropdown #70
Comments
@nottledim did you find a solution/workaround for your issue? I have the same issue, I am creating a dashboard that will help me start playing music throughout the house. I have the luxury of having Google Chromecast & Sonos speakers (/sigh) so I am trying to determine with a input select which type of speaker(s) I will be targetting for the action. This custom type card seems promising if this could be fixed. |
Nice demonstration! No, in answer to your question. You can select it from the entity settings popup as you show but that's not ideal. |
Couldn't you wrap that input_select in a hui-element? |
Like this:
The reason it doesn't render normally is because it is an 'entity' row. If you use a 'entity' card, you'll notice the same behavior. Notice I am using 'entities'.
That will render showing the state which is exactly what the template card is doing. It isn't a bug.
This isn't in a entity card. It is in a entities card. In the entity card it will show just the state. |
Interesting, I was unaware of hui-element. It doesn't really help; I use template-entity-row mostly for it's conditional feature. Without that I would use a normal entities row. However if I do use hui-element it creates a nested entities card which effectively indents the rows (icons don't line up). It doesn't seem to play with template-entity row either. So I don't really see the point of it (hui-element) in this situation. |
These are 4 variants I've tried, all rows in an entities card:
The condition statements are commented so the row renders. I'm open to suggestions for more ways to do this :-) |
You could use card_mod to change the padding for D and line them back up.
For your examples, you don't really need to use the custom card though. Unless you have more complex conditions requiring the templates?
|
This will not work definitely. |
What was the final goal? |
Thanks for all the suggestions.
However your other suggestion is neater and does exactly what I want:
Many thanks for that. It's been a great help. @ildar170975 Why do you need the input_select inside the template-entity-row? Because I want to display only when charging and template-entity-row has that feature. Now I know there's another way - live and learn! |
Then you may use these options:
Example:
Compare with:
and
conditional-row ----- card-mod ----- state-switch ----- simple card with 2 fixed rows |
In an entity card if I have the following the choices are presented as a dropdown list:
If I use template entity row it just displays current selection but doesn't offer the dropdown list for selection:
The text was updated successfully, but these errors were encountered: