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, Andrew Fiddian-Green - Added system Point and Property tags
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ChannelTypeAtmospheric-humidity: system wideChannelTypewhich shows the atmospheric humiditystatic final ChannelTypeBarometric-pressure: system wideChannelTypewhich shows the barometric pressurestatic final ChannelTypeBrightness: default system wideChannelTypewhich allows changing the brightness from 0-100%static final ChannelTypeSystem wide triggerChannelTypewhich triggers "SHORT_PRESSED", "DOUBLE_PRESSED" and "LONG_PRESSED" events.static final ChannelTypeBattery level default system wideChannelType.static final ChannelTypeLow battery default system wideChannelType.static final ChannelTypeSignal strength default system wideChannelType.static final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeUIDstatic final ChannelTypeColor: default system wideChannelTypewhich allows changing the colorstatic final ChannelTypeColor-temperature: default system wideChannelTypewhich allows changing the color temperature in percentstatic final ChannelTypeColor-temperature: default system wideChannelTypewhich allows changing the color temperature in Kelvinstatic final ChannelTypeElectric-current: system wideChannelTypewhich shows the electric currentstatic final ChannelTypeElectric-power: system wideChannelTypewhich shows the electric powerstatic final ChannelTypeElectric-voltage: system wideChannelTypewhich shows the electric voltagestatic final ChannelTypeElectrical-energy: system wideChannelTypewhich shows the electrical energystatic final ChannelTypeIndoor-temperature: system wideChannelTypewhich shows the indoor temperaturestatic final ChannelTypeLocation: default system wideChannelTypewhich displays a locationstatic final ChannelTypeMedia-artist: default system wideChannelTypewhich displays the artist of a (played) songstatic final ChannelTypeMedia-control: system wideChannelTypewhich controls a media playerstatic final ChannelTypeMedia-title: default system wideChannelTypewhich displays the title of a (played) songstatic final ChannelTypeMotion: default system wideChannelTypewhich indications whether motion was detected (state ON)static final ChannelTypeMute: default system wideChannelTypewhich allows muting and un-muting audiostatic final ChannelTypeOutdoor-temperature: system wideChannelTypewhich shows the outdoor temperaturestatic final ChannelTypePower: default system wideChannelTypewhich allows turning off (potentially on) a devicestatic final ChannelTypeSystem wide triggerChannelTypewhich triggers "PRESSED" and "RELEASED" events.static final ChannelTypeSystem wide triggerChannelTypewhich triggers "DIR1_PRESSED", "DIR1_RELEASED", "DIR2_PRESSED" and "DIR2_RELEASED" events.static final ChannelTypeSystem wide triggerChannelTypewithout event options.static final ChannelTypeUV Index: system wideChannelTypewhich shows the UV Indexstatic final ChannelTypeVolume: default system wideChannelTypewhich allows changing the audio volume from 0-100%static final ChannelTypeWind-direction: system wideChannelTypewhich shows the wind direction in degrees 0-360static final ChannelTypeWind-speed: system wideChannelTypewhich shows the wind speed -
Constructor Summary
ConstructorsConstructorDescriptionDefaultSystemChannelTypeProvider(ChannelTypeI18nLocalizationService channelTypeI18nLocalizationService, BundleResolver bundleResolver) -
Method Summary
Modifier and TypeMethodDescription@Nullable ChannelTypegetChannelType(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 triggerChannelTypewithout event options. -
SYSTEM_RAWBUTTON
System wide triggerChannelTypewhich triggers "PRESSED" and "RELEASED" events. -
SYSTEM_BUTTON
System wide triggerChannelTypewhich triggers "SHORT_PRESSED", "DOUBLE_PRESSED" and "LONG_PRESSED" events. -
SYSTEM_RAWROCKER
System wide triggerChannelTypewhich triggers "DIR1_PRESSED", "DIR1_RELEASED", "DIR2_PRESSED" and "DIR2_RELEASED" events. -
SYSTEM_POWER
Power: default system wideChannelTypewhich allows turning off (potentially on) a device -
SYSTEM_LOCATION
Location: default system wideChannelTypewhich displays a location -
SYSTEM_MOTION
Motion: default system wideChannelTypewhich indications whether motion was detected (state ON) -
SYSTEM_BRIGHTNESS
Brightness: default system wideChannelTypewhich allows changing the brightness from 0-100% -
SYSTEM_COLOR
Color: default system wideChannelTypewhich allows changing the color -
SYSTEM_COLOR_TEMPERATURE
Color-temperature: default system wideChannelTypewhich allows changing the color temperature in percent -
SYSTEM_COLOR_TEMPERATURE_ABS
Color-temperature: default system wideChannelTypewhich allows changing the color temperature in Kelvin -
SYSTEM_VOLUME
Volume: default system wideChannelTypewhich allows changing the audio volume from 0-100% -
SYSTEM_MUTE
Mute: default system wideChannelTypewhich allows muting and un-muting audio -
SYSTEM_MEDIA_CONTROL
Media-control: system wideChannelTypewhich controls a media player -
SYSTEM_MEDIA_TITLE
Media-title: default system wideChannelTypewhich displays the title of a (played) song -
SYSTEM_MEDIA_ARTIST
Media-artist: default system wideChannelTypewhich displays the artist of a (played) song -
SYSTEM_WIND_DIRECTION
Wind-direction: system wideChannelTypewhich shows the wind direction in degrees 0-360 -
SYSTEM_WIND_SPEED
Wind-speed: system wideChannelTypewhich shows the wind speed -
SYSTEM_OUTDOOR_TEMPERATURE
Outdoor-temperature: system wideChannelTypewhich shows the outdoor temperature -
SYSTEM_INDOOR_TEMPERATURE
Indoor-temperature: system wideChannelTypewhich shows the indoor temperature -
SYSTEM_ATMOSPHERIC_HUMIDITY
Atmospheric-humidity: system wideChannelTypewhich shows the atmospheric humidity -
SYSTEM_BAROMETRIC_PRESSURE
Barometric-pressure: system wideChannelTypewhich shows the barometric pressure -
SYSTEM_ELECTRIC_POWER
Electric-power: system wideChannelTypewhich shows the electric power -
SYSTEM_ELECTRIC_CURRENT
Electric-current: system wideChannelTypewhich shows the electric current -
SYSTEM_ELECTRIC_VOLTAGE
Electric-voltage: system wideChannelTypewhich shows the electric voltage -
SYSTEM_ELECTRICAL_ENERGY
Electrical-energy: system wideChannelTypewhich shows the electrical energy -
SYSTEM_UV_INDEX
UV Index: system wideChannelTypewhich shows the UV Index
-
-
Constructor Details
-
DefaultSystemChannelTypeProvider
public DefaultSystemChannelTypeProvider(ChannelTypeI18nLocalizationService channelTypeI18nLocalizationService, BundleResolver bundleResolver)
-
-
Method Details
-
getChannelTypes
- Specified by:
getChannelTypesin interfaceChannelTypeProvider- See Also:
-
getChannelType
- Specified by:
getChannelTypein interfaceChannelTypeProvider- See Also:
-