Not sure if this is a feature request, or just some error in the configuration.
I have several hue lights. Each hue light has hue scenes attached to it. But the amount of scenes, types of scenes, etc varies for every light.
The goal here is to create a button card for each light. The card will contain a button for each scene that specific light has.
This means that the card has to be populated automatically. Using templates?
I have tried several things but:
I have created a template sensor looking like this:
Not sure if this is a feature request, or just some error in the configuration. I have several hue lights. Each hue light has hue scenes attached to it. But the amount of scenes, types of scenes, etc varies for every light. The goal here is to create a button card for each light. The card will contain a button for each scene that specific light has. This means that the card has to be populated automatically. Using templates?
I have tried several things but:
I have created a template sensor looking like this:
- platform: template sensors: kontor_hr_scenes: friendly_name: "Kontor HR Scenes" value_template: "{{ state_attr('light.kontor_hr', 'hue_scenes') }}
This produces an output like this:
So to the card: I have tried this approach:
But it produces just one button. and that button does nothing.
Is it possible to achieve this? Or is it necessary to create a sensor template first?
Thanks