openhab-docs/concepts/items.md

1.8 KiB

layout
documentation

{% include base.html %}

Items

Eclipse SmartHome has a strict separation between the physical world (the "things", see below) and the application, which is built around the notion of "items" (also called the virtual layer).

Items represent functionality that is used by the application (mainly user interfaces or automation logic). Items have a state and are used through events.

The following item types are currently available (alphabetical order):

ItemnameDescriptionCommand Types
ColorColor information (RGB)OnOff, IncreaseDecrease, Percent, HSB
ContactItem storing status of e.g. door/window contactsOpenClose
DateTimeStores date and time
DimmerItem carrying a percentage value for dimmersOnOff, IncreaseDecrease, Percent
GroupItem to nest other items / collect them in groups-
NumberStores values in number formatDecimal
PlayerAllows to control players (e.g. audio players)PlayPause, NextPrevious, RewindFastforward
RollershutterTypically used for blindsUpDown, StopMove, Percent
StringStores textsString
SwitchTypically used for lights (on/off)OnOff

Group Items can derive their own state depending on their member items.

  • AVG displays the average of the item states in the group.
  • OR displays an OR of the group, typically used to display whether any item in a group has been set.
  • other aggregations: AND, SUM, MIN, MAX, NAND, NOR