Light Slider goes to 100% even when light not 100%

New to openHAB - love it!
I have multiple Hue lights connected and each light have assigned a Switch, Slider and Color item. Issue that I am facing is that the slider goes to 100% when I use the switch to turn the light Switch ON after the second time. When I start openHAB and switch the lights on, the first time the slider show correct value. Afterwards it always goes to 100%.
I have Hue refresh set to 5000ms in .cfg file - Maybe a hue refresh issue? In the Events i see slider is updated the first time to correct value, but after that it is just turned ON and value is not updated and slider goes to 100%.

Items File:
Group All
Group gLR (All)

/* active groups */
Group:Switch:OR(ON, OFF) Lights “All Lights [(%d)]” (All)
Group:Switch:OR(ON, OFF) LR_Lights “All Lights [(%d)]” (gLR)

/* Lights */
//Living Room
Switch swLight_LR_Ceiling_1 “Ceiling Light 1” (LR_Lights) {hue=“3”}
Color clLight_LR_Ceiling_1 “Ceiling Light 1 Color” {hue=“3;colorTemperature”}
Dimmer dmLR_DimmedLight_1 “Ceiling Light 1 [%d %%]” {hue=“3;brightness;10”}

SiteMap:
Frame label=“Living Room” {
Switch item=LR_Lights mappings=[OFF=“Off”, ON=“On”]
Text label=“Living Room” icon=“television” {
Switch item=swLight_LR_Ceiling_1
Slider item=dmLR_DimmedLight_1 visibility=[swLight_LR_Ceiling_1==ON]
Colorpicker item=clLight_LR_Ceiling_1 visibility=[swLight_LR_Ceiling_1==ON]
}
}

Events:
2015-09-28 11:29:37 - swLight_LR_Ceiling_1 received command ON
2015-09-28 11:29:41 - dmLR_DimmedLight_1 state updated to ON
2015-09-28 11:29:41 - dmLR_DimmedLight_1 state updated to 23
2015-09-28 11:29:41 - clLight_LR_Ceiling_1 state updated to ON
2015-09-28 11:29:41 - clLight_LR_Ceiling_1 state updated to 39.24175824175824089934394578449428081512451171875,100,23
2015-09-28 11:29:41 - swLight_LR_Ceiling_1 state updated to ON
2015-09-28 11:30:01 - swLight_LR_Ceiling_1 received command OFF
2015-09-28 11:30:02 - dmLR_DimmedLight_1 state updated to OFF
2015-09-28 11:30:02 - clLight_LR_Ceiling_1 state updated to OFF
2015-09-28 11:30:02 - swLight_LR_Ceiling_1 state updated to OFF
2015-09-28 11:31:22 - swLight_LR_Ceiling_1 received command ON
2015-09-28 11:31:27 - dmLR_DimmedLight_1 state updated to ON
2015-09-28 11:31:27 - clLight_LR_Ceiling_1 state updated to ON
2015-09-28 11:31:27 - swLight_LR_Ceiling_1 state updated to ON

The line

2015-09-28 11:29:41 - dmLR_DimmedLight_1 state updated to ON

comes from the autoupdate, which sets the state when seeing an according command. And ON is then interpreted as 100%. In order to prevent this from happening, you have to deactivate the autoupdate for this item, which can be done this way:

Dimmer dmLR_DimmedLight_1 "Ceiling Light 1 [%d %%]" {hue="3;brightness;10", autoupdate="false" }

I hope this leads to the expected behavior!

Regards,
Kai

Hi Kai,

Thanks for the help, unfortunately, seems the autoupdate does not work as describe. The bulb value is passed to the dimmer the first time (highlighted in events), afterwards it is not passed anymore. Below are the details:

Items:
/* Lights */
//Living Room
Switch swLight_LR_Ceiling_1 “Ceiling Light 1” {hue=“3”}
Dimmer dmLR_DimmedLight_1 “Ceiling Light 1 [%d %%]” {hue=“3;brightness;10” , autoupdate=“false” }

Sitemap:
sitemap gerrit label=“Gerrit’s Home”
{
Frame label=“Living Room” {
Switch item=swLight_LR_Ceiling_1
Slider item=dmLR_DimmedLight_1
}
}

Events:
2015-09-29 17:58:09 - swLight_LR_Ceiling_1 state updated to OFF
2015-09-29 17:58:09 - dmLR_DimmedLight_1 state updated to OFF
2015-09-29 17:58:16 - swLight_LR_Ceiling_1 received command ON
2015-09-29 17:58:20 - swLight_LR_Ceiling_1 state updated to ON
2015-09-29 17:58:20 - dmLR_DimmedLight_1 state updated to ON
2015-09-29 17:58:20 - dmLR_DimmedLight_1 state updated to 31
2015-09-29 17:58:29 - swLight_LR_Ceiling_1 received command OFF
2015-09-29 17:58:30 - swLight_LR_Ceiling_1 state updated to OFF
2015-09-29 17:58:30 - dmLR_DimmedLight_1 state updated to OFF
2015-09-29 17:58:37 - swLight_LR_Ceiling_1 received command ON
2015-09-29 17:58:40 - swLight_LR_Ceiling_1 state updated to ON
2015-09-29 17:58:40 - dmLR_DimmedLight_1 state updated to ON

I have run in debug mode as well - logfile:
17:58:07.979 [DEBUG] [.o.b.hue.internal.HueActivator:30 ] - Hue binding has been started.
17:58:07.984 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item ‘swLight_LR_Ceiling_1 (Type=SwitchItem, State=Uninitialized)’ with ‘HueGenericBindingProvider’ reader.
17:58:07.985 [DEBUG] [i.internal.GenericItemProvider:341 ] - Start processing binding configuration of Item ‘dmLR_DimmedLight_1 (Type=DimmerItem, State=Uninitialized)’ with ‘HueGenericBindingProvider’ reader.
17:58:08.587 [INFO ] [.service.AbstractActiveService:169 ] - Hue Refresh Service has been started
17:58:08.587 [DEBUG] [inding.hue.internal.HueBinding:97 ] - Start Hue data refresh
17:58:09.984 [DEBUG] [inding.hue.internal.HueBinding:170 ] - Done Hue data refresh.
17:58:16.863 [DEBUG] [inding.hue.internal.HueBinding:178 ] - Hue binding received command ‘ON’ for item ‘swLight_LR_Ceiling_1’
17:58:16.895 [DEBUG] [.hue.internal.hardware.HueBulb:276 ] - Sent message: ‘{“on”:true}’ to http://192.168.2.55/api/openHABRuntime/lights/3/state
17:58:19.985 [DEBUG] [inding.hue.internal.HueBinding:97 ] - Start Hue data refresh
17:58:20.163 [DEBUG] [inding.hue.internal.HueBinding:170 ] - Done Hue data refresh.
17:58:29.115 [DEBUG] [inding.hue.internal.HueBinding:178 ] - Hue binding received command ‘OFF’ for item ‘swLight_LR_Ceiling_1’
17:58:29.146 [DEBUG] [.hue.internal.hardware.HueBulb:276 ] - Sent message: ‘{“on”:false}’ to http://192.168.2.55/api/openHABRuntime/lights/3/state
17:58:30.164 [DEBUG] [inding.hue.internal.HueBinding:97 ] - Start Hue data refresh
17:58:30.348 [DEBUG] [inding.hue.internal.HueBinding:170 ] - Done Hue data refresh.
17:58:37.036 [DEBUG] [inding.hue.internal.HueBinding:178 ] - Hue binding received command ‘ON’ for item ‘swLight_LR_Ceiling_1’
17:58:37.076 [DEBUG] [.hue.internal.hardware.HueBulb:276 ] - Sent message: ‘{“on”:true}’ to http://192.168.2.55/api/openHABRuntime/lights/3/state
17:58:40.348 [DEBUG] [inding.hue.internal.HueBinding:97 ] - Start Hue data refresh
17:58:40.533 [DEBUG] [inding.hue.internal.HueBinding:170 ] - Done Hue data refresh.

Hm, sorry, I have no idea why dmLR_DimmedLight_1 would receive a status update ON when the command is actually sent to swLight_LR_Ceiling_1. The only link between these two items is the Hue binding itself - so I would assume that this is actually a bug inside this binding. I am not using it myself, but maybe somebody else can confirm this?

Hi there,

Has this ever been resolved? I have the same issue that my slider moves up to 100% while my Hue app shows the last status (not 100%).

Hi,

No not solved yet - Issue seems to be solved in OH2. Have done a quick test and seems to be solved in OH2.