Thank you, I already read your post, the example I posted was purely for debugging purposes to see if hue-element worked at all. It didn’t because the extension was missing. So I don’t want to use the map like that :).
The code I’m working on looks more like this:
card:
type: custom:hui-element
card_type: vertical-stack
cards:
- type: 'custom:button-card'
name: Living Room Lights
entity: sensor.placeholder
show_name: true
show_icon: false
state:
- operator: default
styles:
card: [background-color: none]
name: [color: '#ffffff']
state: [color: '#ffffff']
icon: [color: '#ffffff']
styles:
name:
- justify-self: middle
- font-size: 1.8vw
- font-weight: 550
- font-familly: 'Arial, Helvetica, sans-serif'
- cursor: default
style: |
ha-card {
box-shadow: none;
}
- type: custom:hui-element
card_type: horizontal-stack
cards:
- type: custom:light-popup-card
entity: '[[[ return entity.entity_id ]]]'
icon: mdi:wall-sconce-flat
fullscreen: false
brightnessWidth: 90px
brightnessHeight: 350px
borderRadius: 1.8em
sliderColor: '#c7c7c7'
sliderTrackColor: rgba(25, 25, 25, 0.9)
actionsInARow: 2
actionSize: 5em
actions:
- service: scene.turn_on
service_data:
entity_id: scene.day
color: black
icon: 'mdi:brightness-5'
- service: scene.turn_on
service_data:
entity_id: scene.afternoon
color: black
icon: 'mdi:brightness-6'
- service: scene.turn_on
service_data:
entity_id: scene.evening
color: black
icon: 'mdi:brightness-7'
- service: scene.turn_on
service_data:
entity_id: scene.late_night
color: black
icon: 'mdi:brightness-3'
- type: custom:light-popup-card
entity: light.living_room_light
icon: mdi:track-light
fullscreen: false
...
And please, nobody likes to waste your time, so just don’t answer newbie questions when they do just that. Look, the community did a great job, I understood and learned a lot again.
And yes, I use AI, super successfully, because I’m not 20 anymore, I have a house, child, dog, wife, car, friends, … I no longer have the time I used to have to understand every technology that looks kind of fancy in depth by reading documentation. And I come from a world where that was the only way, I’ve been using Linux since 1996, so if you’ve been around since then, you know how to read documentation.
I use Gemini as a counterpart for my ideas and not as a code generator that I just let babble something down.
So please accept my apologies, I didn’t mean to waste your time, but please take 10 seconds to think about how you come across to someone who has written their first post here, and that as a moderator who should be a figurehead of their community.