Just wanted to share my very first custom card for Lovelace.
I was setting up my lights and found my self missing a way to quickly change profile. After some searching without luck I took it on myself to create a custom card that could turn on lights based on light_profiles.csv(this csv file is a core file located in your config folder next to your configuration.yaml, see more on light component).
Now that I think it’s working, I wanted to share it. Maybe you been looking for something similar or maybe you have an idea to make it even better.
Here’s a small gif of the card in action (sorry for the Danish)
Nice card! But it would be better to put the profiles in a separate file. That way if there’s an update or bug fix, we can just swap out the lovelace-light-with-profiles.js with the new one.
I really like the look of this. What are the units in the light_profiles? At night I set my kids light to red, they show like this in the entity viewer:
anyway to get lights back to actually white. as in rgb color - 255, 255, 255?
0.323, 0.329 isnt the same with the merkury lights i have. its the colored version of it.
when i set themto 255.x.x they are actual bright lights again. cant seem to figure it out…
same question as @ramginugaI. i just now noticed you updated this 10 days ago-- been using it since the beginning…however im also not sure where to add the light profiles code in lovelace.yaml.
@fiftys and @ramginuga: right after resources, same almost same format as then you needed to add it to the js file. this is just better for future updates
@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.