@cweitkamp @BobMiles @couriersud
I did further investigatons: I’ve checked all results with the Hue API.
There are different color modes of the Hue Brigde: hs=HSB, xy=XY, ct=Color Temperature
I’ve checked all DEFAULT COLORS: RED, YELLOW, GREEN, CYAN, BLUE, MAGENTA
here are my results:
RED:
2019-08-24 08:22:26.527 [ome.event.ItemCommandEvent] - Item 'Innr_Light1_Color' received command 0,100,100
2019-08-24 08:22:26.529 [vent.ItemStateChangedEvent] - Innr_Light1_Color changed from 25,98,100 to 0,100,100
{
"state": {
"on": true,
"bri": 254,
"hue": 0,
"sat": 254,
"effect": "none",
"xy": [
0.6961,
0.3003
],
"ct": 500,
"alert": "select",
"colormode": "hs",
"mode": "homeautomation",
"reachable": true
}
“hue:” 0/182=0°
.
YELLOW:
2019-08-24 08:25:28.492 [ome.event.ItemCommandEvent] - Item 'Innr_Light1_Color' received command 60,100,100
2019-08-24 08:25:28.495 [vent.ItemStateChangedEvent] - Innr_Light1_Color changed from 0,100,100 to 60,100,100
{
"state": {
"on": true,
"bri": 254,
"hue": 10920,
"sat": 254,
"effect": "none",
"xy": [
0.472,
0.499
],
"ct": 388,
"alert": "select",
"colormode": "hs",
"mode": "homeautomation",
"reachable": true
},
“hue:” 10920/182=60°
.
GREEN:
2019-08-24 09:23:40.768 [ome.event.ItemCommandEvent] - Item 'Innr_Light1_Color' received command 120,100,100
2019-08-24 09:23:40.775 [vent.ItemStateChangedEvent] - Innr_Light1_Color changed from 60,100,100 to 120,100,100
{
"state": {
"on": true,
"bri": 254,
"hue": 21840,
"sat": 254,
"effect": "none",
"xy": [
0.1141,
0.8113
],
"ct": 500,
"alert": "select",
"colormode": "hs",
"mode": "homeautomation",
"reachable": true
}
“hue:” 21840/182=120°
.
CYAN:
2019-08-24 09:29:12.010 [ome.event.ItemCommandEvent] - Item 'Innr_Light1_Color' received command 180,100,100
2019-08-24 09:29:12.021 [vent.ItemStateChangedEvent] - Innr_Light1_Color changed from 300,100,100 to 180,100,100
{
"state": {
"on": true,
"bri": 254,
"hue": 32760,
"sat": 254,
"effect": "none",
"xy": [
0.1177,
0.3473
],
"ct": 500,
"alert": "select",
"colormode": "hs",
"mode": "homeautomation",
"reachable": true
}
“hue:” 32760/182=180°
.
BLUE:
2019-08-24 09:41:57.266 [ome.event.ItemCommandEvent] - Item 'Innr_Light1_Color' received command 240,100,100
2019-08-24 09:41:57.271 [vent.ItemStateChangedEvent] - Innr_Light1_Color changed from 180,100,100 to 240,100,100
{
"state": {
"on": true,
"bri": 254,
"hue": 43680,
"sat": 254,
"effect": "none",
"xy": [
0.122,
0.0828
],
"ct": 500,
"alert": "select",
"colormode": "hs",
"mode": "homeautomation",
"reachable": true
}
“hue:” 43680/182=240°
.
MAGENTA:
2019-08-24 09:46:58.030 [ome.event.ItemCommandEvent] - Item 'Innr_Light1_Color' received command 300,100,100
2019-08-24 09:46:58.032 [vent.ItemStateChangedEvent] - Innr_Light1_Color changed from 180,100,100 to 300,100,100
{
"state": {
"on": true,
"bri": 254,
"hue": 54600,
"sat": 254,
"effect": "none",
"xy": [
0.3948,
0.1851
],
"ct": 266,
"alert": "select",
"colormode": "hs",
"mode": "homeautomation",
"reachable": true
}
“hue:” 54600/182=300°
.
.
.
As you can see, everything seems to be OK. Saturation always=254 (!!!)
The xy values I don’t know if they are correct??
But I also had strange effects while testing. Sometimes the color temperature changed from 500 to 388 or 266, but I could not find the reason. Especially (388) when switching to “yellow”.
Sometimes saturation was not 254, it then was 243 or 238.
And sometimes the color mode changed to xy. EDIT: (I now found out) when official Hue APP is used for setting a color!
To get it back to “hs” I had to switch “color temperature” manually e.g. to 100% (=500), then the color mode switched to “ct”. After that, when I’ve changed the color, then it was “hs” again.
Here is a screenshot of HueApp when e.g. RED was set correct by openhab.
And here BLUE:
.
.
EDIT: SUMMARY of above:
Color |
hue |
saturation |
brightness |
x |
y |
ct |
comment |
RED |
0 |
254 |
254 |
0.6961 |
0.3003 |
500 |
OK |
YELLOW |
10920 |
254 |
254 |
0.472 |
0.499 |
388 |
?? |
GREEN |
21840 |
254 |
254 |
0.1141 |
0.8113 |
500 |
OK |
CYAN |
32760 |
254 |
254 |
0.1177 |
0.3473 |
500 |
OK |
BLUE |
43680 |
254 |
254 |
0.122 |
0.0828 |
500 |
OK |
MAGENTA |
54600 |
254 |
254 |
0.3948 |
0.1851 |
266 |
?? |
.
.
Why is color temperature (=ct) changed by switching to yellow or magenta?
Could anyone please calculate if x,y are OK? Thanks a lot!