Hi have some strange behavior when using Homekit to control my Hue devices using OH2.2. (same behavior was already with 2.0 and 2.1)
The Brightness seems to be chosen arbitrary for unknown reason - same for the color - sometimes.
I did some testing with three Hue lights.
I configured below brigthness:
Black Iris - 40%
Light Strip - 50%
White Iris - 60%
When I activated the scence, two of three lights turned on, but only one with the correct setup.
Black Iris - 40% (Correct)
Light Strip - OFF (Wrong)
White Iris - 59% (Wrong)
I checked the logfile afterwards, and it seems that for unknown reason, some wrong commands are sent in addition to the correct parameters.
For the first device - with the correct activated light, the device received multiple commands - fortunately the last command was the correct one, causing the light to show correctly.
11:26:19.748 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'eg_wohn_black_iris_Color' received command ON
11:26:19.822 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'eg_wohn_black_iris_Color' received command 255.0,5,0
11:26:19.832 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'eg_wohn_black_iris_Color' received command 323,68,0
11:26:19.886 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'eg_wohn_black_iris_Color' received command 323,5,40
11:26:19.896 [INFO ] [smarthome.event.ItemStateChangedEvent] - eg_wohn_black_iris_Color changed from 323,5,0 to 323,5,100
11:26:19.929 [INFO ] [smarthome.event.ItemStateChangedEvent] - eg_wohn_black_iris_Color changed from 323,5,100 to 323,68,0
11:26:19.950 [INFO ] [smarthome.event.ItemStateChangedEvent] - eg_wohn_black_iris_Color changed from 323,68,0 to 255.0,5,0
11:26:19.981 [INFO ] [smarthome.event.ItemStateChangedEvent] - eg_wohn_black_iris_Color changed from 255.0,5,0 to 323,5,40
11:26:26.214 [INFO ] [smarthome.event.ItemStateChangedEvent] - eg_wohn_black_iris_Dimmer changed from 0 to 40
11:26:26.224 [INFO ] [smarthome.event.ItemStateChangedEvent] - eg_wohn_black_iris_Toggle changed from OFF to ON
The 2nd and 3rd Light received the correct command as well, however followed by another command with wrong parameters, causing the light to turn off or being activated with the wrong brightness.
11:26:19.781 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'eg_wohn_lightstrip_Color' received command ON
11:26:19.843 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'eg_wohn_lightstrip_Color' received command 28.0,48,0
11:26:19.864 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'eg_wohn_lightstrip_Color' received command 39,48,50
11:26:19.875 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'eg_wohn_lightstrip_Color' received command 39,23,0
11:26:19.918 [INFO ] [smarthome.event.ItemStateChangedEvent] - eg_wohn_lightstrip_Color changed from 39,48,0 to 39,48,100
11:26:19.939 [INFO ] [smarthome.event.ItemStateChangedEvent] - eg_wohn_lightstrip_Color changed from 39,48,100 to 28.0,48,0
11:26:19.971 [INFO ] [smarthome.event.ItemStateChangedEvent] - eg_wohn_lightstrip_Color changed from 28.0,48,0 to 39,48,50
11:26:19.992 [INFO ] [smarthome.event.ItemStateChangedEvent] - eg_wohn_lightstrip_Color changed from 39,48,50 to 39,23,0
11:26:26.233 [INFO ] [smarthome.event.ItemStateChangedEvent] - eg_wohn_lightstrip_Color changed from 39,23,0 to 39,48,0
11:26:19.811 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'eg_wohn_white_iris_Color' received command ON
11:26:19.854 [INFO ] [smarthome.event.ItemCommandEvent ] - Item 'eg_wohn_white_iris_Color' received command 337,14,60
11:26:19.907 [INFO ] [smarthome.event.ItemStateChangedEvent] - eg_wohn_white_iris_Color changed from 337,14,0 to 337,14,100
11:26:19.960 [INFO ] [smarthome.event.ItemStateChangedEvent] - eg_wohn_white_iris_Color changed from 337,14,100 to 337,14,60
11:26:26.181 [INFO ] [smarthome.event.ItemStateChangedEvent] - eg_wohn_white_iris_Toggle changed from OFF to ON
11:26:26.193 [INFO ] [smarthome.event.ItemStateChangedEvent] - eg_wohn_white_iris_Dimmer changed from 0 to 59
11:26:26.204 [INFO ] [smarthome.event.ItemStateChangedEvent] - eg_wohn_white_iris_Color changed from 337,14,60 to 337,14,59
I already tried to change the item configuration but without any success.
// EG White IRIS
Switch eg_wohn_white_iris_Toggle "White IRIS" (gEG,gLamps) { channel="hue:0200:Hue_Bridge:eg_wohn_white_iris:color" }
Dimmer eg_wohn_white_iris_Dimmer "White IRIS" { channel="hue:0200:Hue_Bridge:eg_wohn_white_iris:color" }
Color eg_wohn_white_iris_Color "White IRIS" [ "Lighting" ] { channel="hue:0200:Hue_Bridge:eg_wohn_white_iris:color" }
// EG Black IRIS
Switch eg_wohn_black_iris_Toggle "Black IRIS" (gEG,gLamps) { channel="hue:0200:Hue_Bridge:eg_wohn_black_iris:color" }
Dimmer eg_wohn_black_iris_Dimmer "Black IRIS" { channel="hue:0200:Hue_Bridge:eg_wohn_black_iris:color" }
Color eg_wohn_black_iris_Color "Black IRIS" [ "Lighting" ] { channel="hue:0200:Hue_Bridge:eg_wohn_black_iris:color" }
// Light Strip - TV Regal
Switch eg_wohn_lightstrip_Toggle "TV Regal" (gEG,gLamps) { channel="hue:0210:Hue_Bridge:eg_wohn_lightstrip:color" }
Dimmer eg_wohn_lightstrip_Dimmer "TV Regal" { channel="hue:0210:Hue_Bridge:eg_wohn_lightstrip:color" }
Color eg_wohn_lightstrip_Color "TV Regal" [ "Lighting" ] { channel="hue:0210:Hue_Bridge:eg_wohn_lightstrip:color" }
Dimmer eg_wohn_lightstrip_ColorTemp "TV Regal" (gEG) { channel="hue:0210:Hue_Bridge:eg_wohn_lightstrip:color_temperature" }
Any clue what is happening here?
I’m using the Hue-Bridge currently to control my lights using Homekit instead of OH as a workaround. However this is not the desired setup, as I want to have everything controlled by the OpenHAB system.
Your support is very much appreciated
Stefan