I faced the same issue and was wondering what the reason could be and I discovered that the label formatting of the item is causing an issue. Look at the code above from post #1. The switch status is either ON, OF for a contact OPEN, CLOSED. These values are handled as strings but the formatting says %d which is decimal. This is a type mismatch and that’s causing the issue at least it was the solution in my case to change the formatting to s%.
Note that you can use %d with Switch type groups, but it may not do what you expect - it provides a count of active members.
Hi rossko57,
thanks. I know you can get a count of items but in my case it caused issues.
Well I’ve used %d and it caused the following error:
Tried to set invalid state 1.0 (DecimalType) on item gTasterOUT of type SwitchItem, ignoring it
But the items config was:
Group:Switch:OR(ON, OFF) gTaster "Switch Illum. [%d]" (gScene)
Group:Switch:OR(ON, OFF) gTasterOUT "Switch Illum. Out [%d]" (All)
Switch Taster_Garage (gTaster,gTasterOUT) { knx="4/6/0" }
After changing the format to %s the error disappeared. I got the error message always on startup.
hth,
Manolo