Package org.openhab.core.thing
Class DefaultSystemChannelTypeProvider
java.lang.Object
org.openhab.core.thing.DefaultSystemChannelTypeProvider
- All Implemented Interfaces:
ChannelTypeProvider
@NonNullByDefault
public class DefaultSystemChannelTypeProvider
extends Object
implements ChannelTypeProvider
Implementation providing default system wide channel types
- Author:
- Ivan Iliev - Initial contribution, Chris Jackson - Added battery level, Dennis Nobel - Changed to
ChannelTypeProvider
, Markus Rathgeb - Make battery-low indication read-only, Moritz Kammerer - Added system trigger types, Christoph Weitkamp - Added support for translation, Stefan Triller - Added more system channels, Christoph Weitkamp - factored out common i18n aspects into ThingTypeI18nLocalizationService
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ChannelType
Atmospheric-humidity: system wideChannelType
which shows the atmospheric humiditystatic final ChannelType
Barometric-pressure: system wideChannelType
which shows the barometric pressurestatic final ChannelType
Brightness: default system wideChannelType
which allows changing the brightness from 0-100%static final ChannelType
System wide triggerChannelType
which triggers "SHORT_PRESSED", "DOUBLE_PRESSED" and "LONG_PRESSED" events.static final ChannelType
Battery level default system wideChannelType
.static final ChannelType
Low battery default system wideChannelType
.static final ChannelType
Signal strength default system wideChannelType
.static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelTypeUID
static final ChannelType
Color: default system wideChannelType
which allows changing the colorstatic final ChannelType
Color-temperature: default system wideChannelType
which allows changing the color temperature in percentstatic final ChannelType
Color-temperature: default system wideChannelType
which allows changing the color temperature in Kelvinstatic final ChannelType
Electric-current: system wideChannelType
which shows the electric currentstatic final ChannelType
Electric-power: system wideChannelType
which shows the electric powerstatic final ChannelType
Electric-voltage: system wideChannelType
which shows the electric voltagestatic final ChannelType
Electrical-energy: system wideChannelType
which shows the electrical energystatic final ChannelType
Indoor-temperature: system wideChannelType
which shows the indoor temperaturestatic final ChannelType
Location: default system wideChannelType
which displays a locationstatic final ChannelType
Media-artist: default system wideChannelType
which displays the artist of a (played) songstatic final ChannelType
Media-control: system wideChannelType
which controls a media playerstatic final ChannelType
Media-title: default system wideChannelType
which displays the title of a (played) songstatic final ChannelType
Motion: default system wideChannelType
which indications whether motion was detected (state ON)static final ChannelType
Mute: default system wideChannelType
which allows muting and un-muting audiostatic final ChannelType
Outdoor-temperature: system wideChannelType
which shows the outdoor temperaturestatic final ChannelType
Power: default system wideChannelType
which allows turning off (potentially on) a devicestatic final ChannelType
System wide triggerChannelType
which triggers "PRESSED" and "RELEASED" events.static final ChannelType
System wide triggerChannelType
which triggers "DIR1_PRESSED", "DIR1_RELEASED", "DIR2_PRESSED" and "DIR2_RELEASED" events.static final ChannelType
System wide triggerChannelType
without event options.static final ChannelType
UV Index: system wideChannelType
which shows the UV Indexstatic final ChannelType
Volume: default system wideChannelType
which allows changing the audio volume from 0-100%static final ChannelType
Wind-direction: system wideChannelType
which shows the wind direction in degrees 0-360static final ChannelType
Wind-speed: system wideChannelType
which shows the wind speed -
Constructor Summary
ConstructorDescriptionDefaultSystemChannelTypeProvider
(ChannelTypeI18nLocalizationService channelTypeI18nLocalizationService, BundleResolver bundleResolver) -
Method Summary
Modifier and TypeMethodDescription@Nullable ChannelType
getChannelType
(ChannelTypeUID channelTypeUID, @Nullable Locale locale) getChannelTypes
(@Nullable Locale locale)
-
Field Details
-
SYSTEM_CHANNEL_TYPE_UID_SIGNAL_STRENGTH
-
SYSTEM_CHANNEL_TYPE_UID_LOW_BATTERY
-
SYSTEM_CHANNEL_TYPE_UID_BATTERY_LEVEL
-
SYSTEM_CHANNEL_TYPE_UID_TRIGGER
-
SYSTEM_CHANNEL_TYPE_UID_RAWBUTTON
-
SYSTEM_CHANNEL_TYPE_UID_BUTTON
-
SYSTEM_CHANNEL_TYPE_UID_RAWROCKER
-
SYSTEM_CHANNEL_TYPE_UID_POWER
-
SYSTEM_CHANNEL_TYPE_UID_LOCATION
-
SYSTEM_CHANNEL_TYPE_UID_MOTION
-
SYSTEM_CHANNEL_TYPE_UID_BRIGHTNESS
-
SYSTEM_CHANNEL_TYPE_UID_COLOR
-
SYSTEM_CHANNEL_TYPE_UID_COLOR_TEMPERATURE
-
SYSTEM_CHANNEL_TYPE_UID_COLOR_TEMPERATURE_ABS
-
SYSTEM_CHANNEL_TYPE_UID_VOLUME
-
SYSTEM_CHANNEL_TYPE_UID_MUTE
-
SYSTEM_CHANNEL_TYPE_UID_MEDIA_CONTROL
-
SYSTEM_CHANNEL_TYPE_UID_MEDIA_TITLE
-
SYSTEM_CHANNEL_TYPE_UID_MEDIA_ARTIST
-
SYSTEM_CHANNEL_TYPE_UID_WIND_DIRECTION
-
SYSTEM_CHANNEL_TYPE_UID_WIND_SPEED
-
SYSTEM_CHANNEL_TYPE_UID_OUTDOOR_TEMPERATURE
-
SYSTEM_CHANNEL_TYPE_UID_INDOOR_TEMPERATURE
-
SYSTEM_CHANNEL_TYPE_UID_ATMOSPHERIC_HUMIDITY
-
SYSTEM_CHANNEL_TYPE_UID_BAROMETRIC_PRESSURE
-
SYSTEM_CHANNEL_TYPE_UID_ELECTRIC_POWER
-
SYSTEM_CHANNEL_TYPE_UID_ELECTRIC_CURRENT
-
SYSTEM_CHANNEL_TYPE_UID_ELECTRIC_VOLTAGE
-
SYSTEM_CHANNEL_TYPE_UID_ELECTRIC_ENERGY
-
SYSTEM_CHANNEL_TYPE_UID_UV_INDEX
-
SYSTEM_CHANNEL_SIGNAL_STRENGTH
Signal strength default system wideChannelType
. Represents signal strength of a device as a number with values 0, 1, 2, 3 or 4, 0 being worst strength and 4 being best strength. -
SYSTEM_CHANNEL_LOW_BATTERY
Low battery default system wideChannelType
. Represents a low battery warning with possible values on (low battery) and off (battery ok). -
SYSTEM_CHANNEL_BATTERY_LEVEL
Battery level default system wideChannelType
. Represents the battery level as a percentage. -
SYSTEM_TRIGGER
System wide triggerChannelType
without event options. -
SYSTEM_RAWBUTTON
System wide triggerChannelType
which triggers "PRESSED" and "RELEASED" events. -
SYSTEM_BUTTON
System wide triggerChannelType
which triggers "SHORT_PRESSED", "DOUBLE_PRESSED" and "LONG_PRESSED" events. -
SYSTEM_RAWROCKER
System wide triggerChannelType
which triggers "DIR1_PRESSED", "DIR1_RELEASED", "DIR2_PRESSED" and "DIR2_RELEASED" events. -
SYSTEM_POWER
Power: default system wideChannelType
which allows turning off (potentially on) a device -
SYSTEM_LOCATION
Location: default system wideChannelType
which displays a location -
SYSTEM_MOTION
Motion: default system wideChannelType
which indications whether motion was detected (state ON) -
SYSTEM_BRIGHTNESS
Brightness: default system wideChannelType
which allows changing the brightness from 0-100% -
SYSTEM_COLOR
Color: default system wideChannelType
which allows changing the color -
SYSTEM_COLOR_TEMPERATURE
Color-temperature: default system wideChannelType
which allows changing the color temperature in percent -
SYSTEM_COLOR_TEMPERATURE_ABS
Color-temperature: default system wideChannelType
which allows changing the color temperature in Kelvin -
SYSTEM_VOLUME
Volume: default system wideChannelType
which allows changing the audio volume from 0-100% -
SYSTEM_MUTE
Mute: default system wideChannelType
which allows muting and un-muting audio -
SYSTEM_MEDIA_CONTROL
Media-control: system wideChannelType
which controls a media player -
SYSTEM_MEDIA_TITLE
Media-title: default system wideChannelType
which displays the title of a (played) song -
SYSTEM_MEDIA_ARTIST
Media-artist: default system wideChannelType
which displays the artist of a (played) song -
SYSTEM_WIND_DIRECTION
Wind-direction: system wideChannelType
which shows the wind direction in degrees 0-360 -
SYSTEM_WIND_SPEED
Wind-speed: system wideChannelType
which shows the wind speed -
SYSTEM_OUTDOOR_TEMPERATURE
Outdoor-temperature: system wideChannelType
which shows the outdoor temperature -
SYSTEM_INDOOR_TEMPERATURE
Indoor-temperature: system wideChannelType
which shows the indoor temperature -
SYSTEM_ATMOSPHERIC_HUMIDITY
Atmospheric-humidity: system wideChannelType
which shows the atmospheric humidity -
SYSTEM_BAROMETRIC_PRESSURE
Barometric-pressure: system wideChannelType
which shows the barometric pressure -
SYSTEM_ELECTRIC_POWER
Electric-power: system wideChannelType
which shows the electric power -
SYSTEM_ELECTRIC_CURRENT
Electric-current: system wideChannelType
which shows the electric current -
SYSTEM_ELECTRIC_VOLTAGE
Electric-voltage: system wideChannelType
which shows the electric voltage -
SYSTEM_ELECTRICAL_ENERGY
Electrical-energy: system wideChannelType
which shows the electrical energy -
SYSTEM_UV_INDEX
UV Index: system wideChannelType
which shows the UV Index
-
-
Constructor Details
-
DefaultSystemChannelTypeProvider
public DefaultSystemChannelTypeProvider(ChannelTypeI18nLocalizationService channelTypeI18nLocalizationService, BundleResolver bundleResolver)
-
-
Method Details
-
getChannelTypes
- Specified by:
getChannelTypes
in interfaceChannelTypeProvider
- See Also:
-
getChannelType
- Specified by:
getChannelType
in interfaceChannelTypeProvider
- See Also:
-