Log errors while using grouped items

Although there is a limited number of similar issues found in the www, I couldn’t find a solution:

I am using groups for my rollershutter items and during openhab startup that setup throws an error. During normal operation there are no errors:

2016-05-22 17:37:13.878 [WARN ] [i.internal.GenericItemProvider] - State 'STOP' is not valid for group item 'gRollershutterKitchen' with base type 'Rollershutter'
2016-05-22 17:37:13.883 [ERROR] [i.internal.GenericItemProvider] - Group function 'OR' requires two arguments. Using Equality instead.
2016-05-22 17:37:13.885 [ERROR] [i.internal.GenericItemProvider] - Group function 'NOT AND' requires two arguments. Using Equality instead.
2016-05-22 17:37:13.915 [WARN ] [i.internal.GenericItemProvider] - State 'STOP' is not valid for group item 'gRollershutterKitchen' with base type 'Rollershutter'
2016-05-22 17:37:13.917 [ERROR] [i.internal.GenericItemProvider] - Group function 'OR' requires two arguments. Using Equality instead.
2016-05-22 17:37:13.918 [ERROR] [i.internal.GenericItemProvider] - Group function 'NOT AND' requires two arguments. Using Equality instead.

Fortunately all is working fine but I’m still concerned about those errors. Any ideas?

items:

Group    gUG
...
Group gRollershutter "Rollläden" <rollershutter>
Group gRollershutterEG "Rollläden EG" <rollershutter> (gRollershutter)
Group gRollershutterSouth "Rollläden Süd" <rollershutter> (gRollershutter)
Group:Rollershutter:OR(UP, DOWN, STOP) gRollershutterKitchen "Rollläden Küche" <rollershutter> (gUG)

Rollershutter FibFGR222_Kitchen_East "Jal Küche Ost [%d %%]" (gRollershutterEG, gRollershutterKitchen) {zwave="11:command=switch_multilevel,invert_state=false,invert_percent=true"}
Rollershutter FibFGR222_Kitchen_South_L "Jal Küche Süd L [%d %%]" (gRollershutterSouth, gRollershutterEG, gRollershutterKitchen) {zwave="12:command=switch_multilevel,invert_state=false,invert_percent=true"}
Rollershutter FibFGR222_Kitchen_South_R "Jal Küche Süd R [%d %%]" (gRollershutterSouth, gRollershutterEG, gRollershutterKitchen) {zwave="13:command=switch_multilevel,invert_state=false,invert_percent=true"}

sitemap:

...
            Text label="Rollläden"
                {
                Text item=gRollershutterEG {
                Switch item=gRollershutterEG mappings=[UP="Auf", STOP="X", DOWN="Zu"]
                Frame    {
                        Switch item=gRollershutterKitchen mappings=[UP="Auf", STOP="X", DOWN="Zu"]
                        Switch item=gRollershutterSouth mappings=[UP="Auf", STOP="X", DOWN="Zu"]
                        }
                        Group item=gRollershutterEG
                    }
                }    
...

I thnk the group definition is wrong, it should be

Group:Rollershutter:OR(UP, DOWN) gRollershutterKitchen "Rollläden Küche" <rollershutter> (gUG)

because boolean OR for Rollershutter is either UP or DOWN. STOP isn’t allowed here (as the warning states).

You are right, after removing the STOP in the item definition there are no errors in the log anymore and when I map the STOP to the group in my sitemap that command still works.

BUT: according to the openHAB wiki, explanation of item types, the STOP command should be no problem:

  • Rollershutter
  • Allows the control of roller shutters, i.e. moving them up, down, stopping or setting it to close to a certain percentage.
  • Accepted Data Types: UpDown, Percent
  • Accepted Command Types: UpDown, StopMove, Percent

And according to this wiki “Rollershutter Bindings” it should also work:

So, do we have a functionality which was removed, a bug or just a misunderstanding from my side? :eyeglasses:

From Wiki:

OR(value1, value2) :
Does a logical ‘or’ operation. If at least one item is of ‘value1’ this is returned, otherwise the ‘value2’ is returned.

So, you probably could define something like

Group Rollershutter:OR(UP,STOP) group1
Group Rollershutter:OR(DOWN,STOP) group2

but it’s not allowed to give 3 values, because the third Value will never be returned from group.

Okay, now I got it, thanks :grinning: