Uses of Class
org.openhab.core.library.types.PercentType
Packages that use PercentType
Package
Description
-
Uses of PercentType in org.openhab.core.audio
Methods in org.openhab.core.audio that return PercentTypeModifier and TypeMethodDescriptionRetrieves the current volume of a sinkAudioSink.getVolume()Gets the volumeMethods in org.openhab.core.audio with parameters of type PercentTypeModifier and TypeMethodDescriptionAudioManager.handleVolumeCommand(@Nullable PercentType volume, AudioSink sink) Handles a volume command change and returns a Runnable to restore it.voidAudioManager.play(@Nullable AudioStream audioStream, @Nullable String sinkId, @Nullable PercentType volume) Plays the passed audio stream on the given sink.voidAudioManager.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.voidAudioManager.playFile(String fileName, @Nullable PercentType volume) Plays an audio file with the given volume from the "sounds" folder using the default audio sink.voidAudioManager.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.voidAudioManager.setVolume(PercentType volume, @Nullable String sinkId) Sets the volume for a sink.voidAudioSink.setVolume(PercentType volume) Sets the volume -
Uses of PercentType in org.openhab.core.library.items
Methods in org.openhab.core.library.items with parameters of type PercentTypeModifier and TypeMethodDescriptionvoidDimmerItem.send(PercentType command) Send a PercentType command to the item.voidDimmerItem.send(PercentType command, @Nullable String source) Send a PercentType command to the item.voidRollershutterItem.send(PercentType command) Send a PercentType command to the item.voidRollershutterItem.send(PercentType command, @Nullable String source) Send a PercentType command to the item. -
Uses of PercentType in org.openhab.core.library.types
Subclasses of PercentType in org.openhab.core.library.typesModifier and TypeClassDescriptionclassThe HSBType is a complex type with constituents for hue, saturation and brightness and can be used for color items.Fields in org.openhab.core.library.types declared as PercentTypeModifier and TypeFieldDescriptionstatic final PercentTypePercentType.HUNDREDstatic final PercentTypePercentType.ZEROMethods in org.openhab.core.library.types that return PercentTypeModifier 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 PercentTypeStatic access toPercentType(String).Constructors in org.openhab.core.library.types with parameters of type PercentTypeModifierConstructorDescriptionHSBType(DecimalType h, PercentType s, PercentType b) Constructs a HSBType instance with the given values -
Uses of PercentType in org.openhab.core.model.script.actions
Methods in org.openhab.core.model.script.actions that return PercentTypeModifier and TypeMethodDescriptionstatic PercentType[]CoreUtil.hsbToRgbPercent(HSBType hsb) static PercentType[]CoreUtil.hsbToRgbwPercent(HSBType hsb) Methods in org.openhab.core.model.script.actions with parameters of type PercentTypeModifier and TypeMethodDescriptionstatic voidAudio.playSound(String sink, String filename, PercentType volume) static voidAudio.playSound(String filename, PercentType volume) static HSBTypeCoreUtil.rgbToHsb(PercentType[] rgb) static voidVoice.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 voidVoice.say(Object text, @Nullable String voice, PercentType volume) Says the given text with a given voice and the given volume.static voidVoice.say(Object text, @Nullable PercentType volume) Says the given text with the given volume.static voidAudio.setMasterVolume(PercentType percent) -
Uses of PercentType in org.openhab.core.util
Methods in org.openhab.core.util that return PercentTypeModifier and TypeMethodDescriptionstatic PercentType[]ColorUtil.hsbToRgbPercent(HSBType hsb) static PercentType[]ColorUtil.hsbToRgbwPercent(HSBType hsb) Methods in org.openhab.core.util with parameters of type PercentType -
Uses of PercentType in org.openhab.core.voice
Methods in org.openhab.core.voice with parameters of type PercentTypeModifier and TypeMethodDescriptionvoidVoiceManager.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.voidVoiceManager.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.voidVoiceManager.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