I have installed openHab 2.4.0 upgraded from 2.3.0 on Ubuntu 18.04 fully updated.
Everythig works fine since 1 month, where two of my groups of items stop to work.
This are the groups: Group:Contact:OR(OPEN,CLOSED) gDoorSensor "Porte Aperte [ (%d) ]" <door> (Home)
This are some of items in tehe groups: Contact EntraceDoorSensorDoor "Porta Ingresso [%s]" <door> (GF_Entrace,gDoorSensor,gDoorSensorGF) { channel="zwave:device:755c5512:node4:sensor_door" }
When the items change his state the following rule don’t start: rule "Doors Intrusion alarm OPEN" when Item gDoorSensor changed from CLOSED to OPEN then
As Vincent said there maybe other states as expected.
Here a little rule to see what the states are:
rule "Show Members of Group"
when
Item Dummy4 changed to ON
then
gDoorSensor .members.forEach[item|
logInfo ("Schow Members", "Item Name: {} and Item State: {}", item.name, item.state)
]
end
You have to create a Dummy-Switch like this and announce it in the sitemap:
Switch Dummy4 "Testschalter Dummy4 [%s]" (gPower)
The result in the logger will look like:
2019-09-30 10:31:09.333 [INFO ] [smarthome.model.script.Schow Members] - Item Name: localHourlyForecastTemperature_00 and Item State: 14.0 °C
2019-09-30 10:31:09.338 [INFO ] [smarthome.model.script.Schow Members] - Item Name: localHourlyForecastTemperature_01 and Item State: 14.88 °C
2019-09-30 10:31:09.342 [INFO ] [smarthome.model.script.Schow Members] - Item Name: localHourlyForecastTemperature_02 and Item State: 14.9 °C
2019-09-30 10:31:09.346 [INFO ] [smarthome.model.script.Schow Members] - Item Name: localHourlyForecastTemperature_03 and Item State: 15.97 °C
2019-09-30 10:31:09.351 [INFO ] [smarthome.model.script.Schow Members] - Item Name: localHourlyForecastTemperature_04 and Item State: 11.66 °C
2019-09-30 10:31:09.355 [INFO ] [smarthome.model.script.Schow Members] - Item Name: localHourlyForecastTemperature_05 and Item State: 10.04 °C
2019-09-30 10:31:09.360 [INFO ] [smarthome.model.script.Schow Members] - Item Name: localHourlyForecastTemperature_06 and Item State: 9.09 °C
2019-09-30 10:31:09.362 [INFO ] [smarthome.model.script.Schow Members] - Item Name: localHourlyForecastTemperature_07 and Item State: 8.81 °C
2019-09-30 10:31:09.366 [INFO ] [smarthome.model.script.Schow Members] - Item Name: localHourlyForecastTemperature_08 and Item State: 9.35 °C
2019-09-30 10:31:09.369 [INFO ] [smarthome.model.script.Schow Members] - Item Name: localHourlyForecastTemperature_09 and Item State: 16.45 °C
2019-09-30 10:31:09.373 [INFO ] [smarthome.model.script.Schow Members] - Item Name: localHourlyForecastTemperature_10 and Item State: 17.79 °C
2019-09-30 10:31:09.376 [INFO ] [smarthome.model.script.Schow Members] - Item Name: localHourlyForecastTemperature_11 and Item State: 17.85 °C
2019-09-30 10:31:09.379 [INFO ] [smarthome.model.script.Schow Members] - Item Name: localHourlyForecastTemperature_12 and Item State: 14.95 °C
2019-09-30 10:31:09.382 [INFO ] [smarthome.model.script.Schow Members] - Item Name: localHourlyForecastTemperature_13 and Item State: 13.43 °C
2019-09-30 10:31:09.386 [INFO ] [smarthome.model.script.Schow Members] - Item Name: localHourlyForecastTemperature_14 and Item State: 13.18 °C
2019-09-30 10:31:09.392 [INFO ] [smarthome.model.script.Schow Members] - Item Name: localHourlyForecastTemperature_15 and Item State: 12.62 °C
2019-09-30 10:31:09.396 [INFO ] [smarthome.model.script.Schow Members] - Item Name: localHourlyForecastTemperature_16 and Item State: 11.92 °C
If the Group is already OPEN, there will be no change.
If the Group was UNDEF before it changes to OPEN, this trigger will not fire.
(Groups can go to UNDEF if there is some problem calculating group state, like a bad member type)
Look in events.log to follow changes in your Item states.
This trigger: Item gDoorSensor changed from CLOSED to OPEN will only trigger if the group item changes. Maybe you want a different trigger: Member of gDoorSensor changed from CLOSED to OPEN
This will trigger the rule each time a member of the group changes from CLOSED to OPEN.