For reference, here is my Eos config for the lights I was referring to. They are Sonoff RGBWW bulbs (B1 if I recall) running Espurna, configured to think it has only RGB channels, I manage the WW and CW channels manually using separate items. The channels are 0-255 and not 0-100.
FYI I don’t have any real light level sensors right now, so in the backend I am using values from Astro and the weather to approximate outdoor light level and then scaling per room based on sun angle. So if the lux values look strange it’s because they aren’t real.
I have moved to using Jython scripts that run before any other rules (they are named 210_xxx.py and my other rules have a prefix of 300 or higher) to assign the metadata when openHAB starts. I have found this more manageable than using the Eos Editor because I am using git to manage my entire openHAB config. The example below is an excerpt from my 210_kitchen.py file.
from core.metadata import set_metadata
set_metadata("kitchen_light_island_warmwhite", "eos",
{
"morning": {
"alias_scene": "soft"
},
"day": {
"alias_scene": "soft"
},
"evening": {
"alias_scene": "soft"
},
"bright": {
"level_high": 800,
"state_low": 150,
"level_low": 400
},
"soft": {
"level_high": 1000,
"state_low": 175,
"level_low": 200
},
},
value="True",
overwrite=True
)
set_metadata("kitchen_light_island_coldwhite", "eos",
{
"bright": {
"level_high": 800,
"level_low": 400
},
"soft": {
"level_high": 1000,
"state_low": 45,
"level_low": 200
}
},
value="True",
overwrite=True
)