Skip to content

Commit

Permalink
Change group function EQUAL to EQUALITY (openhab#783)
Browse files Browse the repository at this point in the history
Relates to eclipse-archived/smarthome#6278.

Signed-off-by: Henning Treu <[email protected]>
  • Loading branch information
htreu authored and Confectrician committed Oct 1, 2018
1 parent 580f309 commit 4e8ac7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions configuration/items.md
Original file line number Diff line number Diff line change
Expand Up @@ -467,14 +467,14 @@ The general syntax for groups with a specific item type and aggregation function
Group[:itemtype[:function]] groupname ["labeltext"] [<iconname>] [(group1, group2, ...)]
```

- If the aggregation function is omitted, the function `EQUAL` will be used
- If the aggregation function and `itemtype` are omitted, no group state will be aggregated from member Items
- If the aggregation function is omitted, the function `EQUALITY` will be used.
- If the aggregation function and `itemtype` are omitted, no group state will be aggregated from member Items.

Group state aggregation functions can be any of the following:

| Function | Description |
|------------------------|-------------|
| `EQUAL` | Default if no function is specified. If ALL members have state X the group state will be X, otherwise the group state will be `UNDEF`. |
| `EQUALITY` | Default if no function is specified. If ALL members have state X the group state will be X, otherwise the group state will be `UNDEF`. |
| `AND(value1,value2)` | [Boolean](https://en.wikipedia.org/wiki/Boolean_algebra) AND operation. If all item states are 'value1', 'value1' is returned, otherwise 'value2' is returned. |
| `OR(value1,value2)` | [Boolean](https://en.wikipedia.org/wiki/Boolean_algebra) OR operation. If at least one item state is of 'value1', 'value1' is returned, otherwise 'value2' is returned. |
| `NAND(value1,value2)` | [Boolean](https://en.wikipedia.org/wiki/Boolean_algebra) NAND (not AND) operation. Returns the opposite of the AND operation. |
Expand Down

0 comments on commit 4e8ac7a

Please sign in to comment.