Hi all,
I have a strange behaviour of a group switch:
Group:Switch:AND(ON,OFF) CorridorSwitch "Lichtschalter Flur" <switch> (Corridor)
Switch Corridor1_Toggle (CorridorSwitch) { channel="hue:0220:1:corridor_bulb_1:brightness" }
Switch Corridor2_Toggle (CorridorSwitch) { channel="hue:0220:1:corridor_bulb_2:brightness" }
Switch Corridor3_Toggle (CorridorSwitch) { channel="hue:0100:1:corridor_bulb_3:brightness" }
Switch Corridor4_Toggle (CorridorSwitch) { channel="hue:0100:1:corridor_bulb_4:brightness" }
The Group switch is defined as AND.
When I switch it to “ON” the following is logged:
2019-03-09 14:18:52.888 [ome.event.ItemCommandEvent] - Item 'CorridorSwitch' received command ON
2019-03-09 14:18:52.896 [ome.event.ItemCommandEvent] - Item 'Corridor3_Toggle' received command ON
2019-03-09 14:18:52.918 [ome.event.ItemCommandEvent] - Item 'Corridor4_Toggle' received command ON
2019-03-09 14:18:52.924 [ome.event.ItemCommandEvent] - Item 'Corridor1_Toggle' received command ON
2019-03-09 14:18:52.933 [ome.event.ItemCommandEvent] - Item 'Corridor2_Toggle' received command ON
2019-03-09 14:18:52.964 [nt.ItemStatePredictedEvent] - Corridor3_Toggle predicted to become ON
2019-03-09 14:18:52.972 [nt.ItemStatePredictedEvent] - Corridor4_Toggle predicted to become ON
2019-03-09 14:18:52.976 [vent.ItemStateChangedEvent] - Corridor3_Toggle changed from OFF to ON
-----> 2019-03-09 14:18:52.980 [GroupItemStateChangedEvent] - CorridorSwitch changed from ON to OFF through Corridor3_Toggle <-----
2019-03-09 14:18:52.984 [vent.ItemStateChangedEvent] - Corridor4_Toggle changed from OFF to ON
2019-03-09 14:18:52.986 [nt.ItemStatePredictedEvent] - Corridor1_Toggle predicted to become ON
2019-03-09 14:18:52.990 [nt.ItemStatePredictedEvent] - Corridor2_Toggle predicted to become ON
2019-03-09 14:18:52.993 [vent.ItemStateChangedEvent] - Corridor1_Toggle changed from OFF to ON
2019-03-09 14:18:52.997 [vent.ItemStateChangedEvent] - Corridor2_Toggle changed from OFF to ON
2019-03-09 14:18:53.001 [GroupItemStateChangedEvent] - CorridorSwitch changed from OFF to ON through Corridor2_Toggle
Please see the -----> marked row where the Item state is switching back.
When I set up the Group switch as “OR”
Group:Switch:OR(ON,OFF) CorridorSwitch "Lichtschalter Flur" <switch> (Corridor)
and switch it to “OFF” the following is logged:
2019-03-09 14:25:31.819 [ome.event.ItemCommandEvent] - Item 'CorridorSwitch' received command OFF
2019-03-09 14:25:31.830 [ome.event.ItemCommandEvent] - Item 'Corridor3_Toggle' received command OFF
2019-03-09 14:25:31.845 [ome.event.ItemCommandEvent] - Item 'Corridor4_Toggle' received command OFF
2019-03-09 14:25:31.856 [ome.event.ItemCommandEvent] - Item 'Corridor1_Toggle' received command OFF
2019-03-09 14:25:31.864 [ome.event.ItemCommandEvent] - Item 'Corridor2_Toggle' received command OFF
2019-03-09 14:25:31.876 [nt.ItemStatePredictedEvent] - Corridor3_Toggle predicted to become OFF
2019-03-09 14:25:31.905 [nt.ItemStatePredictedEvent] - Corridor4_Toggle predicted to become OFF
2019-03-09 14:25:31.916 [nt.ItemStatePredictedEvent] - Corridor1_Toggle predicted to become OFF
2019-03-09 14:25:31.928 [nt.ItemStatePredictedEvent] - Corridor2_Toggle predicted to become OFF
2019-03-09 14:25:31.954 [vent.ItemStateChangedEvent] - Corridor3_Toggle changed from ON to OFF
-----> 2019-03-09 14:25:31.960 [GroupItemStateChangedEvent] - CorridorSwitch changed from OFF to ON through Corridor3_Toggle <-----
2019-03-09 14:25:31.964 [vent.ItemStateChangedEvent] - Corridor4_Toggle changed from ON to OFF
2019-03-09 14:25:31.967 [vent.ItemStateChangedEvent] - Corridor1_Toggle changed from ON to OFF
2019-03-09 14:25:31.970 [vent.ItemStateChangedEvent] - Corridor2_Toggle changed from ON to OFF
2019-03-09 14:25:31.973 [GroupItemStateChangedEvent] - CorridorSwitch changed from ON to OFF through Corridor2_Toggle
Please see again the -----> marked row where the Item state is switching back.
I have a rule “CorridorSwitch changed from ON to OFF”.
No matter how I define the switch, the rule gets triggered twice.
Any idea?