Hi,
I’m new to openhab2, but read the documentation extensively… Still I must have misunderstood how to properly group items in a group. So any help would be very much appreciated.
I’ve got a rather small KNX setup (that I got to work after many hours of trial & error and searching through the forums). But now I’ve stumbled on a basic issue using groups. Here are the relevant items:
Group:Switch:OR(ON,OFF) Garden_Lights "Luuchten" <light>
Switch LargeTerrace_Outlet "Steckdous grouss Terrass" <poweroutlet> (Garden_Lights) { knx="1/1/9+1/7/1" }
Switch Garden_Outlet "Steckdous Gaart" <poweroutlet> (Garden_Lights) { knx="1/1/8+1/7/1" }
Switch SmallTerrace_Outlet "Steckdous kleng Terrass" <poweroutlet> { knx="1/1/7+1/7/1" }
and here’s the corresponding part of my sitemap:
Frame label="Gaart" {
Switch item=Garden_Lights
Switch item=LargeTerrace_Outlet
Switch item=Garden_Outlet
Switch item=SmallTerrace_Outlet
}
As you can see I have three power outlets in my garden, two of which are used to power some garden lights. What I intended to achieve using my above configuration is to have single switches for each outlet and additionally one switch that can be used to turn on the two outlets that are used for lighting. Based on the documentation I expected the state of the individual switches to be in sync with the group switch. In other words:
click to turn ON the group switch in Basic UI → both outlets are turned on, both individual switch items change state to ON, the corresponding UI switches reflect this ON state and, consequently, the group item turns ON also and, finally, the UI representation reflects the group’s ON state.
Conversely if at least one light is turned individually, the group switch should reflect this ON state due to the logical OR aggregator.
What actually happens is that the power outlets do turn on and off nicely using the individual switches, but the UI never changes the group’s state. Furthermore I can use the group switch to turn the lights on but in the UI the “ON” state doesn’t stick. It immediately reverts to OFF (but the actual lamps stay on). Since the UI group switch is off I can’t use it to turn off the light either.
Somehow the “OR” aggregator seems to be broken. Or I’m misusing it…
Any help or insight would be appreciated!
(I’m aware that having four UI switches for 3 outlets could be considered bad design/overkill, but for now it’s my test case for group items.)
- Platform information:
- Hardware: x86
- OS: Ubuntu 16.04
- Java Runtime Environment: oracle java 8 update 161
- openHAB version: 2.2
- If logs where generated please post these here using code fences:
The log excerpt below is the result of me clicking around in the UI and using actual KNX wall switches (by Gira). At no point did the group switch correctly reflect the ON state.
2018-04-12 18:01:48.743 [thome.event.ExtensionEvent] - Extension 'binding-knx1' has been installed. 2018-04-12 18:32:51.043 [ome.event.ItemCommandEvent] - Item 'Garden_Lights' received command ON 2018-04-12 18:32:51.092 [ome.event.ItemCommandEvent] - Item 'LargeTerrace_Outlet' received command ON 2018-04-12 18:32:51.100 [ome.event.ItemCommandEvent] - Item 'Garden_Outlet' received command ON 2018-04-12 18:33:21.684 [ome.event.ItemCommandEvent] - Item 'Garden_Outlet' received command ON 2018-04-12 18:33:32.555 [ome.event.ItemCommandEvent] - Item 'Garden_Outlet' received command OFF 2018-04-12 18:33:52.208 [ome.event.ItemCommandEvent] - Item 'LargeTerrace_Outlet' received command ON 2018-04-12 18:33:52.447 [ome.event.ItemCommandEvent] - Item 'LargeTerrace_Outlet' received command OFF 2018-04-12 18:34:19.202 [ome.event.ItemCommandEvent] - Item 'Garden_Lights' received command ON 2018-04-12 18:34:19.211 [ome.event.ItemCommandEvent] - Item 'LargeTerrace_Outlet' received command ON 2018-04-12 18:34:19.217 [ome.event.ItemCommandEvent] - Item 'Garden_Outlet' received command ON 2018-04-12 18:36:11.144 [ome.event.ItemCommandEvent] - Item 'Garden_Outlet' received command ON 2018-04-12 18:36:13.017 [ome.event.ItemCommandEvent] - Item 'LargeTerrace_Outlet' received command ON 2018-04-12 18:36:27.843 [ome.event.ItemCommandEvent] - Item 'SmallTerrace_Outlet' received command ON 2018-04-12 18:36:32.791 [ome.event.ItemCommandEvent] - Item 'SmallTerrace_Outlet' received command OFF 2018-04-12 18:36:35.204 [ome.event.ItemCommandEvent] - Item 'SmallTerrace_Outlet' received command ON 2018-04-12 18:36:39.508 [vent.ItemStateChangedEvent] - LargeTerrace_Outlet changed from NULL to OFF 2018-04-12 18:36:39.518 [GroupItemStateChangedEvent] - Garden_Lights changed from ON to OFF through LargeTerrace_Outlet 2018-04-12 18:36:39.524 [vent.ItemStateChangedEvent] - Garden_Outlet changed from NULL to OFF 2018-04-12 18:36:39.529 [vent.ItemStateChangedEvent] - SmallTerrace_Outlet changed from NULL to OFF 2018-04-12 18:36:52.202 [ome.event.ItemCommandEvent] - Item 'LivingRoom_Outlet' received command ON 2018-04-12 18:36:52.215 [vent.ItemStateChangedEvent] - LivingRoom_Outlet changed from NULL to ON 2018-04-12 18:41:56.810 [ome.event.ItemCommandEvent] - Item 'Garden_Lights' received command ON 2018-04-12 18:41:56.819 [ome.event.ItemCommandEvent] - Item 'LargeTerrace_Outlet' received command ON 2018-04-12 18:41:56.823 [ome.event.ItemCommandEvent] - Item 'Garden_Outlet' received command ON 2018-04-12 18:41:59.097 [ome.event.ItemCommandEvent] - Item 'Garden_Lights' received command ON 2018-04-12 18:41:59.114 [ome.event.ItemCommandEvent] - Item 'LargeTerrace_Outlet' received command ON 2018-04-12 18:41:59.119 [ome.event.ItemCommandEvent] - Item 'Garden_Outlet' received command ON 2018-04-12 18:42:00.716 [ome.event.ItemCommandEvent] - Item 'Garden_Lights' received command ON 2018-04-12 18:42:00.728 [ome.event.ItemCommandEvent] - Item 'LargeTerrace_Outlet' received command ON 2018-04-12 18:42:00.732 [ome.event.ItemCommandEvent] - Item 'Garden_Outlet' received command ON 2018-04-12 18:43:11.915 [ome.event.ItemCommandEvent] - Item 'SmallTerrace_Outlet' received command ON 2018-04-12 18:43:19.264 [ome.event.ItemCommandEvent] - Item 'SmallTerrace_Outlet' received command OFF 2018-04-12 18:43:20.725 [ome.event.ItemCommandEvent] - Item 'LargeTerrace_Outlet' received command OFF 2018-04-12 18:43:21.780 [ome.event.ItemCommandEvent] - Item 'Garden_Outlet' received command OFF 2018-04-12 18:43:35.706 [ome.event.ItemCommandEvent] - Item 'LargeTerrace_Outlet' received command ON 2018-04-12 18:44:09.103 [ome.event.ItemCommandEvent] - Item 'Garden_Outlet' received command ON 2018-04-12 18:44:11.459 [ome.event.ItemCommandEvent] - Item 'SmallTerrace_Outlet' received command ON 2018-04-12 18:44:15.268 [ome.event.ItemCommandEvent] - Item 'SmallTerrace_Outlet' received command ON 2018-04-12 18:44:19.962 [ome.event.ItemCommandEvent] - Item 'SmallTerrace_Outlet' received command OFF