Dimmer items error

Hi,

i’m getting a lot of the below errors since the last couple of snapshot updates. currently im on #951
those errors occur as soon as an item of the corresponding group gets changed.

22:18:31.055 [ERROR] [rthome.core.library.items.DimmerItem] - Tried to set invalid state 1.00000000 on item R_LR_LIGHT_D of type DimmerItem, ignoring it
22:18:31.058 [ERROR] [rthome.core.library.items.DimmerItem] - Tried to set invalid state 0.44333333 on item H_Lamps_D of type DimmerItem, ignoring it
22:18:31.061 [ERROR] [rthome.core.library.items.DimmerItem] - Tried to set invalid state 0.28000000 on item R_LR_LIGHT_T of type DimmerItem, ignoring it
22:18:31.064 [ERROR] [rthome.core.library.items.DimmerItem] - Tried to set invalid state 0.36333333 on item H_Lamps_T of type DimmerItem, ignoring it

The group function recently changed:

ok, but if the item and group both are of the type ‘Dimmer’ it should not give that error, or am i wrong?
as soon as im changing S_LR_LIGHT_Ceiling_D or S_LR_LIGHT_Ceiling_T i’m getting the mentioned errors.

below part of my item list

Group:Switch:OR(ON, OFF) H_Lamps_S "All Lights" <light>	(PR_All_OFF)	[ "Lighting" ]
Group:Dimmer:AVG H_Lamps_D "All Lamps Dimmer" <dimmablelight>
Group:Dimmer:AVG H_Lamps_T "All Lamps Color Temperature" <colorlight>
Group:Color:AVG H_Lamps_C "All Lamps Color" <colorlight>

Group:Switch:OR(ON, OFF) R_LR_LIGHT_S "All" <light> (H_Lamps_S)
Group:Dimmer:AVG R_LR_LIGHT_D "Livingroom Dimmer" <dimmablelight> (H_Lamps_D)
Group:Dimmer:AVG R_LR_LIGHT_T "Livingroom Temperature" <colorlight> (H_Lamps_T)
Group:Color:AVG R_LR_LIGHT_C "Livingroom Color" <colorlight> (H_Lamps_C)

Switch S_LR_LIGHT_Ceiling_S "Ceiling Light" (R_LR_LIGHT_S, R_LR_LIGHT, R_LR)	        { channel="hue:0210:0017884e88f5:1:color" }
Dimmer S_LR_LIGHT_Ceiling_D "Ceiling Dimmer" (R_LR_LIGHT_D, R_LR_LIGHT, R_LR)			{ channel="hue:0210:0017884e88f5:1:color" }
Dimmer S_LR_LIGHT_Ceiling_T "Ceiling Temperature" (R_LR_LIGHT_T, R_LR_LIGHT, R_LR)		{ channel="hue:0210:0017884e88f5:1:color_temperature" }
Color S_LR_LIGHT_Ceiling_C "Ceiling Color" (R_LR_LIGHT_C, R_LR_LIGHT, R_LR)	    		{ channel="hue:0210:0017884e88f5:1:color" }

Just want to say I’m seeing the same error. The lights respond correctly but it still clutters up the log. Anyone know how to make this command compatible with the new group behavior?

Here’s the group:

Group:Dimmer:AVG gOffice_Lights "Office Lights [%s]"

4 Hue bulbs are the only members in the group and are all defined as type Dimmer. The rule sends a command to gOffice_Lights which then correctly updates the members.


rule "Desk Motion Sensing ON"
when
	Item MS_Desk_Motion changed from OFF to ON
then
	gOffice_Lights.sendCommand(dimlevel.state.toString)
	if(timer == null){
		logInfo("Office Motion", "Office Lights ON")
	} else{
		timer.cancel()
		timer = null
	}
end


2017-06-23 18:07:25.044 [ItemStateChangedEvent     ] - MS_Desk_Motion changed from OFF to ON
2017-06-23 18:07:25.046 [ItemCommandEvent          ] - Item 'gOffice_Lights' received command 90
2017-06-23 18:07:25.049 [ItemCommandEvent          ] - Item 'SB_Office_Brightness_4' received command 90
2017-06-23 18:07:25.061 [ItemCommandEvent          ] - Item 'SB_Office_Brightness_3' received command 90
2017-06-23 18:07:25.073 [ItemCommandEvent          ] - Item 'SB_Office_Brightness_2' received command 90
2017-06-23 18:07:25.085 [ItemCommandEvent          ] - Item 'SB_Office_Brightness_1' received command 90

But then also generates an error.

2017-06-23 18:07:07.128 [ERROR] [rthome.core.library.items.DimmerItem] - Tried to set invalid state 0.90000000 on item gOffice_Lights of type DimmerItem, ignoring it
2017-06-23 18:07:07.165 [ERROR] [rthome.core.library.items.DimmerItem] - Tried to set invalid state 0.90000000 on item gOffice_Lights of type DimmerItem, ignoring it
2017-06-23 18:07:07.166 [ERROR] [rthome.core.library.items.DimmerItem] - Tried to set invalid state 0.90000000 on item gOffice_Lights of type DimmerItem, ignoring it
2017-06-23 18:07:07.166 [ERROR] [rthome.core.library.items.DimmerItem] - Tried to set invalid state 0.90000000 on item gOffice_Lights of type DimmerItem, ignoring it

You’re not alone!

Thanks! I was going crazy thinking more people must have had the same issue.

Thanks. Was going cazy here too. My logs get spammed with this error. I think also a lot of rules stopped working correctly.

Same problem here! My logs are full of these messages concerning Dimmers and Rollershutters. All groups are of the same type as their members. Most of my rules stopped working. Don’t know if the problem is related to above change, though.
I read somewhere that the command/state type is now enforced in more places and it seems to be a type mismatch (PercentType should be between 0 and 100)…

Same problem here. Items respond correctly but log shows errors as above…

openhab 2.1.0-1

Check the thread I linked in my previous post… it has more details. This issue is resolved in the snapshot builds.