Milight channels dimming when another channel brightness changed

Hi,

Three of us at work have installed OpenHAB are using it to control our LimitlessLED globes, amongst other things, and it’s great. We are all experiencing a similar problem with the Milight binding globes dimming when the brightness of another channel is changed however.

For example, if I increase the brightness of the globes on bridge 1, channel 1, the globes on bridge 1, channel 2 will more than likely dim.

Things we have noticed are:

  • It only happens if the channels are on the same bridge. Changing the brightness of a channel on bridge 1 will never effect channels on bridge 2.
  • It only appears to happen with the dual white globes and not the RBG globes.
  • It happens even if a channel isn’t configured in OpenHAB. For example, if only channel 1 is defined in OpenHAB, the globes on channel 2 will still dim when channel 1 is changed.

We have tried the following versions of Openhab.
1.81
1.83
2.0

We have tried Ubuntu, Debian and Windows 7.

We are all using Oracle’s Java. I am currently using 1.8.0_101.

Has anyone else experienced this issue or have any suggestions about what we could try?

At first we suspected a possible hardware issue, but this appears to have been ruled out now that three of us are having the same problem with multiple bridges and globes.

My config is below.

Switch Light_FrontDoor_Outside          "Outside Light"
Dimmer Light_FrontDoor_OustideB         "Outside Light Dimmer"  {milight="bridge2;2;brightness"}
Dimmer Light_FrontDoor_OutsideT         "Outside Light Temp"    {milight="bridge2;2;colorTemperature"}
Switch Light_ChrisRoom_Ceiling          "Ceiling Light"
Dimmer Light_ChrisRoom_CeilingB         "Ceiling Light Dimmer"  {milight="bridge1;1;brightness"}
Dimmer Light_ChrisRoom_CeilingT         "Ceiling Light Temp"    {milight="bridge1;1;colorTemperature"}
Switch Light_LivingRoom                         "Living Room Lights"
Dimmer Light_LivingRoomB                        "Living Room Dimmer"    {milight="bridge2;1;brightness"}
Dimmer Light_LivingRoomT                        "Living Room Temp"              {milight="bridge2;1;colorTemperature"}
rule "Light_FrontDoor_Outside_Brightness_ON"
when
        Item Light_FrontDoor_Outside received command ON
then
        sendCommand(Light_FrontDoor_OustideB, 100)
end


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

Please post your debug log to see what happens on the bus.

Hi,

Thanks for the reply. Please find the log below.

I turned a switch off, Light_FrontDoor_Outside.

Switch Light_FrontDoor_Outside         "Outside Light"
Dimmer Light_FrontDoor_OustideB     "Outside Light Dimmer"     {milight="bridge2;2;brightness"}
Switch Light_LivingRoom             "Living Room Lights"
Dimmer Light_LivingRoomB        "Living Room Dimmer"    {milight="bridge2;1;brightness"}

This kicked off the following rule.

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

The globes on bridge 2, channel 2 dimmed and then turned off entirely, as they should have.
The globes on bridge 2, channel 1 also dimmed though. Down to about 20%. I can’t see why this happened.

Please find the debug log attached.

18:15:02.484 [DEBUG] [o.i.r.i.resources.ItemResource:205  ] - Received HTTP POST request at 'items/Light_FrontDoor_Outside' with value 'OFF'.
18:15:02.491 [DEBUG] [m.r.internal.engine.RuleEngine:305  ] - Executing rule 'Light_FrontDoor_Outside_OFF'
18:15:02.608 [DEBUG] [.o.b.m.internal.MilightBinding:96   ] - milight: item is of type brightness
18:15:02.611 [DEBUG] [.o.b.m.internal.MilightBinding:111  ] - milight: command is of type PercentType
18:15:02.613 [DEBUG] [.o.b.m.internal.MilightBinding:192  ] - milight: sendPercent
18:15:02.616 [DEBUG] [.o.b.m.internal.MilightBinding:664  ] - milight: sendOff
18:15:02.623 [DEBUG] [.o.b.m.internal.MilightBinding:350  ] - milight: sendDecrease
18:15:02.626 [DEBUG] [.o.b.m.internal.MilightBinding:383  ] - milight: Bulb '2' getting decreased to '91'
18:15:02.629 [DEBUG] [.o.b.m.internal.MilightBinding:786  ] - milight: messageBytes to transform: '34:00:55'
18:15:02.635 [DEBUG] [.o.b.m.internal.MilightBinding:778  ] - Sent packet '34:00:55' to bridge 'bridge2' (192.168.8.13:8899)
18:15:02.737 [DEBUG] [.o.b.m.internal.MilightBinding:350  ] - milight: sendDecrease
18:15:02.740 [DEBUG] [.o.b.m.internal.MilightBinding:383  ] - milight: Bulb '2' getting decreased to '82'
18:15:02.741 [DEBUG] [.o.b.m.internal.MilightBinding:786  ] - milight: messageBytes to transform: '34:00:55'
18:15:02.744 [DEBUG] [.o.b.m.internal.MilightBinding:778  ] - Sent packet '34:00:55' to bridge 'bridge2' (192.168.8.13:8899)
18:15:02.847 [DEBUG] [.o.b.m.internal.MilightBinding:350  ] - milight: sendDecrease
18:15:02.849 [DEBUG] [.o.b.m.internal.MilightBinding:383  ] - milight: Bulb '2' getting decreased to '73'
18:15:02.852 [DEBUG] [.o.b.m.internal.MilightBinding:786  ] - milight: messageBytes to transform: '34:00:55'
18:15:02.856 [DEBUG] [.o.b.m.internal.MilightBinding:778  ] - Sent packet '34:00:55' to bridge 'bridge2' (192.168.8.13:8899)
18:15:02.927 [DEBUG] [o.o.i.r.i.b.GeneralBroadcaster:46   ] - broadcaster 'org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@54377' is empty
18:15:02.959 [DEBUG] [.o.b.m.internal.MilightBinding:350  ] - milight: sendDecrease
18:15:02.962 [DEBUG] [.o.b.m.internal.MilightBinding:383  ] - milight: Bulb '2' getting decreased to '64'
18:15:02.966 [DEBUG] [.o.b.m.internal.MilightBinding:786  ] - milight: messageBytes to transform: '34:00:55'
18:15:02.971 [DEBUG] [.o.b.m.internal.MilightBinding:778  ] - Sent packet '34:00:55' to bridge 'bridge2' (192.168.8.13:8899)
18:15:03.073 [DEBUG] [.o.b.m.internal.MilightBinding:350  ] - milight: sendDecrease
18:15:03.076 [DEBUG] [.o.b.m.internal.MilightBinding:383  ] - milight: Bulb '2' getting decreased to '55'
18:15:03.079 [DEBUG] [.o.b.m.internal.MilightBinding:786  ] - milight: messageBytes to transform: '34:00:55'
18:15:03.081 [DEBUG] [.r.i.resources.SitemapResource:146  ] - Received HTTP GET request at 'sitemaps/default/0000' for media type 'null'.
18:15:03.084 [DEBUG] [.o.b.m.internal.MilightBinding:778  ] - Sent packet '34:00:55' to bridge 'bridge2' (192.168.8.13:8899)
18:15:03.142 [DEBUG] [.r.i.resources.SitemapResource:146  ] - Received HTTP GET request at 'sitemaps/default/0000' for media type 'null'.
18:15:03.193 [DEBUG] [.o.b.m.internal.MilightBinding:350  ] - milight: sendDecrease
18:15:03.196 [DEBUG] [.o.b.m.internal.MilightBinding:383  ] - milight: Bulb '2' getting decreased to '45'
18:15:03.199 [DEBUG] [.o.b.m.internal.MilightBinding:786  ] - milight: messageBytes to transform: '34:00:55'
18:15:03.203 [DEBUG] [.o.b.m.internal.MilightBinding:778  ] - Sent packet '34:00:55' to bridge 'bridge2' (192.168.8.13:8899)
18:15:03.305 [DEBUG] [.o.b.m.internal.MilightBinding:350  ] - milight: sendDecrease
18:15:03.308 [DEBUG] [.o.b.m.internal.MilightBinding:383  ] - milight: Bulb '2' getting decreased to '36'
18:15:03.310 [DEBUG] [.o.b.m.internal.MilightBinding:786  ] - milight: messageBytes to transform: '34:00:55'
18:15:03.314 [DEBUG] [.o.b.m.internal.MilightBinding:778  ] - Sent packet '34:00:55' to bridge 'bridge2' (192.168.8.13:8899)
18:15:03.416 [DEBUG] [.o.b.m.internal.MilightBinding:350  ] - milight: sendDecrease
18:15:03.418 [DEBUG] [.o.b.m.internal.MilightBinding:383  ] - milight: Bulb '2' getting decreased to '27'
18:15:03.420 [DEBUG] [.o.b.m.internal.MilightBinding:786  ] - milight: messageBytes to transform: '34:00:55'
18:15:03.424 [DEBUG] [.o.b.m.internal.MilightBinding:778  ] - Sent packet '34:00:55' to bridge 'bridge2' (192.168.8.13:8899)
18:15:03.525 [DEBUG] [.o.b.m.internal.MilightBinding:350  ] - milight: sendDecrease
18:15:03.528 [DEBUG] [.o.b.m.internal.MilightBinding:383  ] - milight: Bulb '2' getting decreased to '18'
18:15:03.531 [DEBUG] [.o.b.m.internal.MilightBinding:786  ] - milight: messageBytes to transform: '34:00:55'
18:15:03.535 [DEBUG] [.o.b.m.internal.MilightBinding:778  ] - Sent packet '34:00:55' to bridge 'bridge2' (192.168.8.13:8899)
18:15:03.637 [DEBUG] [.o.b.m.internal.MilightBinding:350  ] - milight: sendDecrease
18:15:03.639 [DEBUG] [.o.b.m.internal.MilightBinding:383  ] - milight: Bulb '2' getting decreased to '9'
18:15:03.640 [DEBUG] [.o.b.m.internal.MilightBinding:786  ] - milight: messageBytes to transform: '34:00:55'
18:15:03.643 [DEBUG] [.o.b.m.internal.MilightBinding:778  ] - Sent packet '34:00:55' to bridge 'bridge2' (192.168.8.13:8899)
18:15:03.746 [DEBUG] [.o.b.m.internal.MilightBinding:786  ] - milight: messageBytes to transform: '33:00:55'
18:15:03.748 [DEBUG] [.o.b.m.internal.MilightBinding:778  ] - Sent packet '33:00:55' to bridge 'bridge2' (192.168.8.13:8899)

i guess I found the Problem, but can fix it earliest after 9/26 as I am on holiday.
Just to proof, this only happens when sending a decrease command, right?

Thanks Hans. No rush, sometime after the 26th would be good.

In the example above, it could happen when either Light_FrontDoor_Outside it turned up or down.

The rogue light, that shouldn’t change (Light_LivingRoom in the example above), will only dim. It’ll never get brighter.

Hi Hans-Jörg,

Hope you had a good trip.

Just wondering if you have had a chance to have another look at this yet?

Regards,

Chris

Hi Chris,

not really, but I will try to have a look over this long weekend.

Best
Hans-Jörg

That’s great. Thanks mate.

Hopefully the issue is solved with this new version. Please give it a try and report back.

If it is solved, I will create an according PR.

Awesome. Thanks. I’ve just installed it.
I’ll let you know how it goes.

Thanks again.

Hi,

The new binding seems good. I have been unable to replicate the problem since installing it.

Sounds good🙂