When you go to Developer Tools -> States and search for your entity, do you see the kelvin as an attribute there? I think for most lights the attribute is called color_temp, for my hue lights it is like this for example.
Just to confirm my understanding… are they different because the service calls are essentially functions to modify the state attributes? I’m just wondering why it’s possible to change the state attributes e.g., using kelvin, but that it’s not possible to actually retrieve the state attributes in kelvin…
Most lights do not support all attributes. You can check the integration documentation of your particular light for hints, but in general, you will have to try things out and see what works.
The attributes differ based on what kind of light bulbs you have, some have kelvin, some have color_temp, maybe there are some that even have both.
Hi, since I am pretty new to automation templating (I think that’s how it called?), can you maybe explain your statement?
kelvin: '{% set kel = states.light.kitchen_lights.attributes.kelvin
| int %} {{ [kel-200, 2200] | min }}'
I try to achieve the same thing for my yeelights, but it won’t work. I read all the docs about templating, Jinja2, … but I do not find them very helpful…