Light_profiles.csv

I’ve googled around and searched the forums and can’t quite find what I’m looking for. I’m trying to use light_profiles.csv to set a default level for all lights based on something my wife is happy with:

id,x,y,brightness
group.all_lights.default,0.449,0.405,254

I have a mixture of HUE ambient and non-ambient lights. Is there a way for me to set 100% brightness on all lights regardless? When I tried the above, the HUE component failed to load (no such entity as light.kitchen_table, etc etc etc)

Do I need to keep the defaults scenes in here as well? Really would like to get this to work.

Hi.

Did you ever figure this out? Please can you share your final light_profiles.csv and how you used it? There is little documentation on this.

Thanks

No, I didn’t follow-up on this. I’m going to assume you need the defaults + any changes but I haven’t tested it.

EDIT: Googled around looking for examples; came across this:

Doesn’t look like it’s supported/recommended anymore. I’m going to take another stab at it though.

Figured it out - seems to work but will test further.

2019-02-09 12:58:31 INFO (MainThread) [homeassistant.loader] Loaded light from homeassistant.components.light
2019-02-09 12:58:31 INFO (MainThread) [homeassistant.setup] Setting up light
2019-02-09 12:58:31 INFO (MainThread) [homeassistant.setup] Setup of domain light took 0.2 seconds.
2019-02-09 12:58:31 INFO (MainThread) [homeassistant.loader] Loaded light.zwave from homeassistant.components.light.zwave
2019-02-09 12:58:31 INFO (MainThread) [homeassistant.components.light] Setting up light.zwave
2019-02-09 12:58:31 INFO (MainThread) [homeassistant.loader] Loaded hue.light from homeassistant.components.hue.light
2019-02-09 12:58:32 INFO (MainThread) [homeassistant.components.light] Setting up light.hue

And my light_profiles.csv:

relax,0.5119,0.4147,144
concentrate,0.5119,0.4147,219
energize,0.368,0.3686,203
reading,0.4448,0.4066,240
group.all_lights.default,0.5119,0.4147,219

Seems if you have the CSV headers in the file, it fails to load the light component. Still needs further testing though.

EDIT: It works. I originally had all_lights set to concentrate and then switched it back to my original values and I can definitely see a difference in the light firing up after restart.

Where do you put the CSV file?

In your HA root dir:

root@freenas:/home/hass/.homeassistant# ls -la *.csv
-rw-r--r-- 1 hass users 147 Feb  9  2019 light_profiles.csv

What are the x and y values? Can I choose a Kelvin equivalent value like 3500K or 5000K?