[OH3] User Interface equivalent of Group:Number:Count("String")

I don’t think you are doing anything wrong. This appears to be broken in MainUI.

There may be an issue already open for this so search first. If not please do file an issue. As far as I’m aware using COUNT like this is still allowed.

In the mean time you can insert it through the REST API or keep it in a text file. To insert it in the REST API, create the Item without the ("ControlledOff") part. Then go to the API Explorer and query for the Item using the “Get a single item” end point and copy the JSON that results. It’ll look something like this:

{
  "members": [],
  "groupType": "Number",
  "function": {
    "name": "EQUALITY"
  },
  "link": "http://10.10.1.112:8080/rest/items/TestGroup",
  "state": "NULL",
  "editable": true,
  "type": "Group",
  "name": "TestGroup",
  "label": "Test Group",
  "category": "",
  "tags": [],
  "groupNames": []
}

Go to the next end point down labeled “Adds a new item to the registry or updates an existing item”. Enter the Item name and paste the JSON into the “Request body”. Make the following edits:

  • remove the link field and editable field
  • add a common after “EQUALITY”
  • add the parameter:
    "params": [
      "ControlledOff"
    ]

It’ll look something like this

{
  "members": [],
  "groupType": "Number",
  "function": {
    "name": "EQUALITY",
    "params": [
      "ControlledOff"
    ]  },
  "state": "NULL",
  "type": "Group",
  "name": "TestGroup",
  "label": "Test Group",
  "category": "",
  "tags": [],
  "groupNames": []
}

Note, you can’t modify an Item defined in a text file this way.