As far as i understand things right. The card parameter is to select the container, a card that is able to display many entities like the entty card ord the grid card or a vertical stack card. And with the options entry you define the card inside the container.
So if you select grid in card you could use button inside options.
I think you are talking about the hue scenes that are created with the Hue App and are made visible in Home Assistant by the Hue integration. I donât think you can filter by lamp/entity in the scene as my hue scenes only show the data below in the developer tools.
Since Hue scenes are associated with rooms or zones I use the code below to list all hue scenes in an area in an entities card. Home Assistant seems to automatically assign Hue Scenes to areas in Home Assistant if they have the same name as the room/zone in Philips Hue app so the list stays up to date when I change things in the Philips Hue appâŚ
Maybe that also works for you?
Then you could expand it to make it look more like you want.
I really like how you were able to get a different picture for each entity.
I want this for my hue scenes, but Iâm not there yet.
Will post a longer post below of what I have achieved so far.
Iâm not sure if this is a Auto-Entities discussion anymore, or if it should be moved to custom: button-card, butâŚ
We still need to figure out how to use different pictures for different scenes somehow.
I have created pictures for different scenes and name them the same as the scene name
Maybe it is possible to strip the scene entity name so only the scene name remains.
Example: strip scene.kontor_hr_golden_pond so only golden_pond remains
That way we could create something like this: entity_picture: /local/hue-icons/hue-icon_{{stripped_entity_name]]_lyst.png
I also think it would be wise to remove the text from the picture and use a stripped show_name instead.
That way the icons could be used by others than me
Thanks again for helping out, I really appreciate it
Thank you for answering.
I have seen your post now, and I must say your work is most impressive! Hats off to you.
What card you use to set up this?
But your scripts seems to populate an input select box that lists ALL lights that has Hue Scenes connected to them.
But how do I alter the template to list the scenes ONE light only?
This is because I have one card per room and therefor need scenes for that one room.
If I understand this correctly, it needs to be done in 2 rounds:
First use the light entity_id to find all hue scenes connected to that light and create a list.
And then use that list to find the scene entity_idâs for those scene into another list. And that list can be used to populate the auto-entities card?
although I am not familiar with the mushroom-template-card, I suspect your issue has to do with the quoting, which looks painful to my eyesâŚ
youâd help yourself a lot if youâd use multiline notation, and be done with all of these double single quotes.
As you state the primary works ( it uses 'index' ) , so single single quotes, youâd probably need to use that in the secondary too (now using double single quotes ''index'' )
if index is in fact a variable name. If it is an attribute, the question dibbler raises, youâd need to single quote them. that would be surprising though, given: Input Text - Home Assistant, and would have to been set via customize or some other option. Unless that would be some hidden option in either of the cards/integrationsâŚ
that would be the outcome if you pasted the template in dev tools template, and replace entity with an actual entity_id?
besides all of that, could it be the rest_command expects an entity_id, instead of an attribute only? this would make your challenge probably be rather Off topic for auto-entities.
DevTools - Templates â
This delivers the correct result:
{{ state_attr(âinput_text.xenia_script_17â, âindexâ) }} â 17
This provides âUndefinedError: âinput_textâ is undefinedâ:
{{ state_attr(input_text.xenia_script_17, âindexâ) }}
BUT quoting entity in primary: leads to an error.