Hi
I use the code below for the lighting on my floorplan. But, it doesn’t change color when I change it. Anyone have an idea what else I should do in this?
The code below works but does not change color
- type: image
entity: light.staande_lamp_licht
style:
left: 50%
top: 50%
width: 100%
mix-blend-mode: lighten
filter: >-
${ "hue-rotate(" +
(states[‘light.staande_lamp_licht’].attributes.hs_color ?
states[‘light.staande_lamp_licht’].attributes.hs_color[0] : 0) +
"deg)"}
opacity: >-
${states[‘light.staande_lamp_licht’].state === 'on' ?
(states[‘light.staande_lamp_licht’].attributes.brightness / 255)
: '0'}
state_image:
"on": /local/map/3D/flp/staandelamp.png
"off": /local/map/3D/flp/basis.png
tap_action:
action: none