Milight dimming another channel when lights turn on

Hi,

I have OpenHab running on Linux with openjdk version “1.8.0_91”.

I am using distribution-1.8.3-runtime with 1.8.3 of the Milight bindings.

It controls a single Milight bridge that has three groups of globes set to it.

I have tried a few different configurations in OpenHab but my issue persists. The current setup is as follows:

Switch Light_LivingRoom "Living Room Lights"
Dimmer Light_LivingRoomB “Living Room Dimmer” {milight=“bridge1;3;brightness”}
Dimmer Light_LivingRoomT “Living Room Temp” {milight=“bridge1;3;colorTemperature”}

I then have a rule to turn the brightness and warmth to 100% when the switch is turned on and a rule to turn the brightness to zero when the switch is turned off.

The lights on channel 3 behave as expected.

My issue, however, is that when I turn this switch on, the lights on channel two dim to about 30% and I can’t work out why.

This happens even if I remove all mention of channel two from the OpenHab config. There is also no mention of channel two being changed in the logs when this happens.

A snippet of the logs from when this has happened is below.

Does anyone have any ideas or suggestions?

media-halley logs # tail -f openhab.log | grep -i milight
17:44:14.353 [DEBUG] [.o.b.m.internal.MilightBinding:96 ] - milight: item is of type brightness
17:44:14.353 [DEBUG] [.o.b.m.internal.MilightBinding:111 ] - milight: command is of type PercentType
17:44:14.353 [DEBUG] [.o.b.m.internal.MilightBinding:192 ] - milight: sendPercent
17:44:14.353 [DEBUG] [.o.b.m.internal.MilightBinding:664 ] - milight: sendOff
17:44:14.353 [DEBUG] [.o.b.m.internal.MilightBinding:350 ] - milight: sendDecrease
17:44:14.354 [DEBUG] [.o.b.m.internal.MilightBinding:383 ] - milight: Bulb ‘3’ getting decreased to '91’
17:44:14.354 [DEBUG] [.o.b.m.internal.MilightBinding:786 ] - milight: messageBytes to transform: '34:00:55’
17:44:14.354 [DEBUG] [.o.b.m.internal.MilightBinding:778 ] - Sent packet ‘34:00:55’ to bridge ‘bridge1’ (192.168.8.11:8899)
17:44:14.454 [DEBUG] [.o.b.m.internal.MilightBinding:350 ] - milight: sendDecrease
17:44:14.455 [DEBUG] [.o.b.m.internal.MilightBinding:383 ] - milight: Bulb ‘3’ getting decreased to '82’
17:44:14.455 [DEBUG] [.o.b.m.internal.MilightBinding:786 ] - milight: messageBytes to transform: '34:00:55’
17:44:14.456 [DEBUG] [.o.b.m.internal.MilightBinding:778 ] - Sent packet ‘34:00:55’ to bridge ‘bridge1’ (192.168.8.11:8899)
17:44:14.556 [DEBUG] [.o.b.m.internal.MilightBinding:350 ] - milight: sendDecrease
17:44:14.557 [DEBUG] [.o.b.m.internal.MilightBinding:383 ] - milight: Bulb ‘3’ getting decreased to '73’
17:44:14.557 [DEBUG] [.o.b.m.internal.MilightBinding:786 ] - milight: messageBytes to transform: '34:00:55’
17:44:14.557 [DEBUG] [.o.b.m.internal.MilightBinding:778 ] - Sent packet ‘34:00:55’ to bridge ‘bridge1’ (192.168.8.11:8899)
17:44:14.658 [DEBUG] [.o.b.m.internal.MilightBinding:350 ] - milight: sendDecrease
17:44:14.658 [DEBUG] [.o.b.m.internal.MilightBinding:383 ] - milight: Bulb ‘3’ getting decreased to '64’
17:44:14.658 [DEBUG] [.o.b.m.internal.MilightBinding:786 ] - milight: messageBytes to transform: '34:00:55’
17:44:14.659 [DEBUG] [.o.b.m.internal.MilightBinding:778 ] - Sent packet ‘34:00:55’ to bridge ‘bridge1’ (192.168.8.11:8899)
17:44:14.759 [DEBUG] [.o.b.m.internal.MilightBinding:350 ] - milight: sendDecrease
17:44:14.760 [DEBUG] [.o.b.m.internal.MilightBinding:383 ] - milight: Bulb ‘3’ getting decreased to '55’
17:44:14.760 [DEBUG] [.o.b.m.internal.MilightBinding:786 ] - milight: messageBytes to transform: '34:00:55’
17:44:14.760 [DEBUG] [.o.b.m.internal.MilightBinding:778 ] - Sent packet ‘34:00:55’ to bridge ‘bridge1’ (192.168.8.11:8899)
17:44:14.861 [DEBUG] [.o.b.m.internal.MilightBinding:350 ] - milight: sendDecrease
17:44:14.861 [DEBUG] [.o.b.m.internal.MilightBinding:383 ] - milight: Bulb ‘3’ getting decreased to '45’
17:44:14.862 [DEBUG] [.o.b.m.internal.MilightBinding:786 ] - milight: messageBytes to transform: '34:00:55’
17:44:14.862 [DEBUG] [.o.b.m.internal.MilightBinding:778 ] - Sent packet ‘34:00:55’ to bridge ‘bridge1’ (192.168.8.11:8899)
17:44:14.963 [DEBUG] [.o.b.m.internal.MilightBinding:350 ] - milight: sendDecrease
17:44:14.963 [DEBUG] [.o.b.m.internal.MilightBinding:383 ] - milight: Bulb ‘3’ getting decreased to '36’
17:44:14.963 [DEBUG] [.o.b.m.internal.MilightBinding:786 ] - milight: messageBytes to transform: '34:00:55’
17:44:14.964 [DEBUG] [.o.b.m.internal.MilightBinding:778 ] - Sent packet ‘34:00:55’ to bridge ‘bridge1’ (192.168.8.11:8899)
17:44:15.064 [DEBUG] [.o.b.m.internal.MilightBinding:350 ] - milight: sendDecrease
17:44:15.064 [DEBUG] [.o.b.m.internal.MilightBinding:383 ] - milight: Bulb ‘3’ getting decreased to '27’
17:44:15.065 [DEBUG] [.o.b.m.internal.MilightBinding:786 ] - milight: messageBytes to transform: '34:00:55’
17:44:15.065 [DEBUG] [.o.b.m.internal.MilightBinding:778 ] - Sent packet ‘34:00:55’ to bridge ‘bridge1’ (192.168.8.11:8899)
17:44:15.165 [DEBUG] [.o.b.m.internal.MilightBinding:350 ] - milight: sendDecrease
17:44:15.166 [DEBUG] [.o.b.m.internal.MilightBinding:383 ] - milight: Bulb ‘3’ getting decreased to '18’
17:44:15.166 [DEBUG] [.o.b.m.internal.MilightBinding:786 ] - milight: messageBytes to transform: '34:00:55’
17:44:15.166 [DEBUG] [.o.b.m.internal.MilightBinding:778 ] - Sent packet ‘34:00:55’ to bridge ‘bridge1’ (192.168.8.11:8899)
17:44:15.267 [DEBUG] [.o.b.m.internal.MilightBinding:350 ] - milight: sendDecrease
17:44:15.267 [DEBUG] [.o.b.m.internal.MilightBinding:383 ] - milight: Bulb ‘3’ getting decreased to '9’
17:44:15.267 [DEBUG] [.o.b.m.internal.MilightBinding:786 ] - milight: messageBytes to transform: '34:00:55’
17:44:15.268 [DEBUG] [.o.b.m.internal.MilightBinding:778 ] - Sent packet ‘34:00:55’ to bridge ‘bridge1’ (192.168.8.11:8899)
17:44:15.368 [DEBUG] [.o.b.m.internal.MilightBinding:786 ] - milight: messageBytes to transform: '3A:00:55’
17:44:15.369 [DEBUG] [.o.b.m.internal.MilightBinding:778 ] - Sent packet ‘3A:00:55’ to bridge ‘bridge1’ (192.168.8.11:8899)

Hi,

first of all, it is not recommended to run openHAB with openJDK, so please change to oracleJRE/JDK.

To analyse your problem further, I need to know your rule and the complete MiLight item definitions, not just channel3.

Hi,

Thanks for the quick reply.

I have now installed Oracle’s Java, but the issue persists. - java version “1.8.0_91”

My Items are configured as follows:

/* Lights */
Switch Light_FrontDoor_Outside "Outside Light"
Dimmer Light_FrontDoor_OutsideB “Outside Light Dimmer” {milight=“bridge1;2;brightness”}
Dimmer Light_FrontDoor_OutsideT “Outside Light Temp” {milight=“bridge1;2;colorTemperature”}
Switch Light_LivingRoom "Living Room Lights"
Dimmer Light_LivingRoomB “Living Room Dimmer” {milight=“bridge1;3;brightness”}
Dimmer Light_LivingRoomT “Living Room Temp” {milight=“bridge1;3;colorTemperature”}

/* DateTime */
DateTime Date “Date [%1$tA, %1$td/%1$tm/%1$tY, %1$tk:%1$tM]” (Status) { ntp=“Australia/Melbourne:en_US” }
DateTime Sunrise_Time “Sunrise [%1$tk:%1$tM]” (Status) {astro=“planet=sun, type=rise, property=end”}
DateTime Sunset_Time “Sunset [%1$tk:%1$tM]” (Status) {astro=“planet=sun, type=set, property=start”}

/* Astro */
Switch SunriseEvent {astro=“planet=sun, type=rise, property=end”}
Switch SunsetEvent {astro=“planet=sun, type=set, property=start”}

The rules are:

/* Front Door */

rule "Light_FrontDoor_Outside_ON"
when
Item Light_FrontDoor_Outside received command ON
then
sendCommand(Light_FrontDoor_OutsideB, 100)
sendCommand(Light_FrontDoor_OutsideT, 100)
end

rule "Light_FrontDoor_Outside_OFF"
when
Item Light_FrontDoor_Outside received command OFF
then
sendCommand(Light_FrontDoor_OutsideB, 0)
end

rule "Daylight - Sunset"
when
Item SunsetEvent changed to ON
then
sendCommand(Light_FrontDoor_Outside,ON)
end

rule "Daylight - Sunrise"
when
Item SunriseEvent changed to ON
then
sendCommand(Light_FrontDoor_Outside,OFF)
end

/* Living Room */
rule "Light_LivingRoom_ON"
when
Item Light_LivingRoom received command ON
then
sendCommand(Light_LivingRoomB, 100)
sendCommand(Light_LivingRoomT, 100)
end

rule "Light_LivingRoom_Outside_OFF"
when
Item Light_LivingRoom received command OFF
then
sendCommand(Light_LivingRoomB, 0)
end

And the binding config:

################################### Milight Binding ###################################

Host of the first Milight bridge to control

milight:bridge1.host=192.168.8.11

Port of the bridge to control (optional, defaults to 50000)

milight:bridge1.port=8899

I’m not sure what happened to the formatting at the end there…

Your config looks good to me.
As you mentioned in your first post, no log entry according to changing channel2 exists, so I guess there is a problem with your bridge.

Please reset it to factory settings and repair your LED lights.
If this does not help, I am running out of clues.

Hi,

I have reset the bridge this morning but still have the same issue.

Is there anything else you can think of that I could try?

Give it a try with the original app, to compare both behaviours. If it is the same, your bridge might be faulty.