Not sure what you expect that to do. “Transforming” on/off to open/closed at the GUI for display is not going to affect how the Item state really is back at the server.
You can’t. Contact type Items are only allowed to take states OPEN/CLOSED, Switch type Items are only allowed to take states ON/OFF.
You can make Groups of mixed Item types. You don’t have to use group aggregation functions, but if you do, the functions do not deal with all possible combinations.
Could you tell us what end result you are looking for, rather than tell us what doesn’t work?
Guessing you want to know if any lights are on or windows open, try this -
Make a number Group of lights, function to COUNT lights ON
Make a number Group of windows, function to COUNT windows OPEN
Make a switch or contact type Group of those two Groups, function to NOR OFF or OPEN as required.
(this exploits an internal cheat where OFF equivalent to “0” etc.)
One understanding question in an example, to build a number group via “Einstellungen” “Items”:
I have two KNX-based valve (normaly 1 bit, so CLOSED/OPEN) as items (valve_1, valve_2); if I build a number group “valve_bath” and select the two valve, I could not define COUNT for the group. It is only possible to declare them in the item DSL?
Thank you very much for helping. It works!
But I need an easier function to invert a switch item (at the moment I using one group with NAND): ITEM lamp ON/OFF => OFF/ON for the COUNT(ON)-Number Group