@asa79 thats correct and the reason is that its a core settings file just like configuration.yaml and lovelace.yaml. My card just uses this feature not inventing it.
I now see a lot of ppl dont know about this file (light_profiles.csv) soI will add a small description of its existence in the near future.
Hey folks,
I just started setting up this card together with a IKEA LED1623G12 ZigBee bulb. Just brightness choice possible, no RGB, no temperature.
The setup works in general, but…
neither the color highlighting of the current profile works, nor is the switch shown - although it’s clickable and controls the bulb.
Anyone any ideas?
I’ve set up the following: ../config/light_profiles.csv
I actually had this little issue myself. The card cant see what profile the light is using only the x,y,brightness value. It uses this to compare to the profiles you defined.
So how to solve this.
click a profile on the card
go to developer tools and go to states
find the light on which you switched the profile
see the values it really got (for some reason some lights aint taking the exact values you send)
use the values it actally is using at put that in your config for the card and profiles.csv
this should fix the issue. let me know how it goes
thanks for this constructive reply! I checked it and found (obviously) the following: As I just have a withe light bulb there are no rgb-/xy-entries for the color in that particular entity. The brightness has the same value as noted in the profile, though.
Would this automatically mean that the profile highlighting just works with rgb- AND brightness-controllable lights (as all three values are being compared?)
Forgive me, I simply assumed (first mistake), that since it didn’t have the HACS default badge that it wasn’t in the HACs library. I should have looked before posting (second mistake). Thanks for the reply
Just another question for my understanding:
Do I define the light profiles once in the ui-lovelace.yaml to have them available in the card and once in the light_profiles.csv to be compared against and make the highlighting possible? Or is there a slimmer way without the need of double documentation?
And maybe just another idea for future development after we now discussed lights with and without RGB: how about RGBW lights with the abilityto control the white temperatures? Or is this currently out of HA’s light profiles scope as there’s just RGB + brightness?
you are defining the light_profiles.csv because its the native way to make and use light profiles in HA
you are defining the profiles you wanna use in the card so the card can compare the values to see which profile is active. Cards dont have access to config files like the light_profiles.csv, so there is no other way around this if you want the active profile to light up.
If you can live with not having the icons show the active profile you can just dont add them in ui-lovelace.yaml. the card will still work, just not show the active profile
Hi,
In home assistant 0.106 there is not light_profiles.csv and lovelace.yaml.
Do we have to add them manually? Also do we have to enable lovelace.yaml mode in order to be able to customize it?