Groupstate doesn`t change state

  • Platform information:

    • Hardware: PI2
    • OS: OpenHabian
    • openHAB version: 2.1
  • Issue of the topic: Hello, i have made a group of Windowcontacts. All Items have a valid state and the state changes, but the groupstate ist always “NULL”.
    So i made a Testgroup with one Contact and the groupstate is also “NULL”. So whats wrong?

  • Please post configurations (if applicable):

    • Items configuration related to the issue
      ’’‘Contact Tuer_EG_Eingang “Eingangstür” (EG_Flur, gFe, gTest) { knx=“1/5/81”}’’’

Here`s my Group:
’’‘Group:Contact gTest (gOG)’’’

Thanks for your help.

Try this.

Group:Contact gTest "GTest[%s]"
Contact Tuer_EG_Eingang "Eingangstür[%s]" (gTest) { knx=“1/5/81”}
sitemap default label="default" {
    Group item=gTest

In 2.2 it works and in 2.1 it has to work also.

Thank you,
i only can test it this evening.

Restart openHAB, if you have problems.

Wouldn’t you want to define an aggregate function for your group (AND, OR)?

It says that defaults to EQUAL, which with a bunch of contacts, some open some closed, would result in UNDEF

Group:Contact:OR(OPEN,CLOSED) gTest
should tell you if any one is open

Thank you, i would try that for the group gFe.
I great a group with 1 item in it (gTest) and the state should be the same as the one Contact. Right? But i get the state NULL in Karaf for the group gTest and OPEN or CLOSED for the Contact

Thank you very much.
Now it works.
The solution are from both. I set the group aggregate function but nothing changed. Then I restart openhab and now it works. Thanks