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 TypeMethodDescriptionvoid
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
Methods in org.openhab.core.library.items with parameters of type PercentTypeModifier and TypeMethodDescriptionvoid
DimmerItem.send
(PercentType command) void
RollershutterItem.send
(PercentType command) -
Uses of PercentType in org.openhab.core.library.types
Subclasses of PercentType in org.openhab.core.library.typesModifier and TypeClassDescriptionclass
The 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 PercentType
PercentType.HUNDRED
static final PercentType
PercentType.ZERO
Methods in org.openhab.core.library.types that return PercentTypeModifier and TypeMethodDescriptionHSBType.getBlue()
HSBType.getBrightness()
HSBType.getGreen()
HSBType.getRed()
HSBType.getSaturation()
HSBType.toRGB()
HSBType.toXY()
Returns the xyY values representing this object's color in CIE XY color model.static PercentType
Static 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 with parameters of type PercentTypeModifier and TypeMethodDescriptionstatic void
Audio.playSound
(String sink, String filename, PercentType volume) static void
Audio.playSound
(String filename, PercentType volume) 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.voice
Methods in org.openhab.core.voice with parameters of type PercentTypeModifier 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.