9.3 KiB
layout | title |
---|---|
documentation | Categories |
{% include base.html %}
Categories
Categories in openHAB are used to provide meta information about Things, Channels, etc. UIs can use this information to render specific icons or provide a search functionality to for example filter all Things for a certain category.
Differences between categories
We separate the categories into functional
and visual
.
Therefore we treat Thing categories
as how the physical device looks like and Channel categories
as something that describes the functional purpose of the Channel.
Thing Categories
The Thing type definition allows to specify a category. User interfaces can parse this category to get an idea how to render this Thing. A Binding can classify each Thing into one of the existing categories. The list of all predefined categories can be found in our categories overview:
Channel Group Categories
Channel Groups can be seen as a kind of sub-device
as they combine certain (physical) abilities of a Thing
into one. For such Group Channels
one can set a category from the Thing
category list.
Channel Categories
The Channel type definition allows to specify a category. A Binding should classify each Channel into one of the existing categories or leave the category blank, if there is no good match. There are different types of categories for Channels, which are listed below.
Widgets
Category | Icon Example |
---|---|
Colorpicker | ![]() |
Number | ![]() |
Rollershutter | ![]() |
Slider | ![]() |
Switch | ![]() |
Text | ![]() |
Group | ![]() |
Weather
Category | Icon Example |
---|---|
Sun | ![]() |
Moon | ![]() |
Clouds | ![]() |
Sun_Clouds | ![]() |
Rain | ![]() |
Snow | ![]() |
Wind | ![]() |
Humidity | ![]() |
Temperature | ![]() |
Properties
Category | Icon Example |
---|---|
BatteryLevel | ![]() |
LowBattery | ![]() |
CarbonDioxide | ![]() |
Energy | ![]() |
Gas | ![]() |
Oil | ![]() |
Water | ![]() |
Light | ![]() |
ColorLight | ![]() |
Temperature | ![]() |
Smoke | ![]() |
SoundVolume | ![]() |
Pressure | ![]() |
Fire | ![]() |
Motion | ![]() |
QualityOfService | ![]() |
Moisture | ![]() |
Noise | ![]() |
Flow | ![]() |
Price | ![]() |
Time | ![]() |
Control
Category | Icon Example |
---|---|
Heating | ![]() |
MediaControl | ![]() |
MoveControl | ![]() |
Zoom | ![]() |
Purpose
Category | Icon Example |
---|---|
Alarm | ![]() |
Presence | ![]() |
Vacation | ![]() |
Party | ![]() |