Group:Switch:NOR() not working anymore?

  • Platform information:
    • Hardware: Raspberry Pi 4
    • openHAB version: 4.0.2
  • Issue of the topic: Adding a Group Item with NOR/NAND aggregation function doesn’t seem to work anymore from UI?

I’m using mainUI extensively, but when bulk-adding/modifying items, I prefer pasting Items from textual definitions …

I haven’t used NAND/NOR Group aggregates for sometime … but when I do now, I’m getting an error message:

Group:Switch:NOR(ON,OFF) _OccupancyPlanned "Planned House Occupancy"  (_Plans) 

yields in

Error: Syntax error at line 1 col 17:

  Group:Switch:NOR(
                  ^
Unexpected lparen token: "(". Instead, I was expecting to see one of the following:

while pasting

Group:Switch:OR(ON,OFF) _OccupancyPlanned "Planned House Occupancy"  (_Plans) 

works perfectly fine…

I can also subsequently edit the Item definition yaml and change the OR to NOR, which works:

label: Planned House Occupancy
type: Group
category: ""
groupNames:
  - _Plans
tags:
  - Occupancy
  - Planned
groupType: Switch
function:
  name: NOR (was OR)
  params:
    - ON
    - OFF

yielding:

So why I can I not (anymore) use NOR (or NAND) when pasting the Item’s textual definition in MainUI?

On a side note, I think it would to clarity in MainUI to spell out the logical functions in the options popup:

All ON then ON else OFF (logical AND)
All ON then OFF else ON (logical NAND)

but that’s really another point.

Looking at the code, I don’t think this ever worked (NOR and NAND). If you don’t mind, log an issue in the webui repository so it doesn’t get forgotten.