Uses of Class
org.openhab.core.library.types.PercentType
Package
Description
-
Uses of PercentType in org.openhab.core.audio
Modifier and TypeMethodDescriptionRetrieves the current volume of a sinkAudioSink.getVolume()
Gets the volumeModifier and TypeMethodDescriptionAudioManager.handleVolumeCommand
(@Nullable PercentType volume, AudioSink sink) Handles a volume command change and returns a Runnable to restore it.void
AudioManager.play
(@Nullable AudioStream audioStream, @Nullable String sinkId, @Nullable PercentType volume) Plays the passed audio stream on the given sink.void
AudioManager.playFile
(String fileName, @Nullable String sinkId, @Nullable PercentType volume) Plays an audio file with the given volume from the "sounds" folder using the given audio sink.void
AudioManager.playFile
(String fileName, @Nullable PercentType volume) Plays an audio file with the given volume from the "sounds" folder using the default audio sink.void
AudioManager.playMelody
(String melody, @Nullable String sinkId, @Nullable PercentType volume) Parse and synthesize a melody and play it into the given sink at the desired volume.void
AudioManager.setVolume
(PercentType volume, @Nullable String sinkId) Sets the volume for a sink.void
AudioSink.setVolume
(PercentType volume) Sets the volume -
Uses of PercentType in org.openhab.core.library.items
Modifier and TypeMethodDescriptionvoid
DimmerItem.send
(PercentType command) void
RollershutterItem.send
(PercentType command) -
Uses of PercentType in org.openhab.core.library.types
Modifier and TypeClassDescriptionclass
The HSBType is a complex type with constituents for hue, saturation and brightness and can be used for color items.Modifier and TypeFieldDescriptionstatic final PercentType
PercentType.HUNDRED
static final PercentType
PercentType.ZERO
Modifier and TypeMethodDescriptionHSBType.getBlue()
Deprecated.HSBType.getBrightness()
HSBType.getGreen()
Deprecated.UseColorUtil.hsbToRgb(HSBType)
insteadHSBType.getRed()
Deprecated.UseColorUtil.hsbToRgb(HSBType)
insteadHSBType.getSaturation()
HSBType.toRGB()
Deprecated.HSBType.toXY()
Returns the xyY values representing this object's color in CIE XY color model.static PercentType
Static access toPercentType(String)
.ModifierConstructorDescriptionHSBType
(DecimalType h, PercentType s, PercentType b) Constructs a HSBType instance with the given values -
Uses of PercentType in org.openhab.core.model.script.actions
Modifier and TypeMethodDescriptionstatic PercentType[]
CoreUtil.hsbToRgbPercent
(HSBType hsb) static PercentType[]
CoreUtil.hsbToRgbwPercent
(HSBType hsb) Modifier and TypeMethodDescriptionstatic void
Audio.playSound
(String sink, String filename, PercentType volume) static void
Audio.playSound
(String filename, PercentType volume) static HSBType
CoreUtil.rgbToHsb
(PercentType[] rgb) static void
Voice.say
(Object text, @Nullable String voice, @Nullable String sink, @Nullable PercentType volume) Says the given text with a given voice and the given volume through the given sink.static void
Voice.say
(Object text, @Nullable String voice, PercentType volume) Says the given text with a given voice and the given volume.static void
Voice.say
(Object text, @Nullable PercentType volume) Says the given text with the given volume.static void
Audio.setMasterVolume
(PercentType percent) -
Uses of PercentType in org.openhab.core.util
Modifier and TypeMethodDescriptionstatic PercentType[]
ColorUtil.hsbToRgbPercent
(HSBType hsb) static PercentType[]
ColorUtil.hsbToRgbwPercent
(HSBType hsb) -
Uses of PercentType in org.openhab.core.voice
Modifier and TypeMethodDescriptionvoid
VoiceManager.say
(String text, @Nullable String voiceId, @Nullable String sinkId, @Nullable PercentType volume) Speaks the passed string with the given volume using the provided voiceId and the given audio sink.void
VoiceManager.say
(String text, @Nullable String voiceId, @Nullable PercentType volume) Speaks the passed string with the given volume using the provided voiceId and the default audio sink.void
VoiceManager.say
(String text, @Nullable PercentType volume) Speaks the passed string with the given volume using the default TTS service and default audio sink.
ColorUtil.hsbToRgb(HSBType)
instead