Play audio at volume - not working

Hello,

I have a chromecast as an audio sink.

In Blockly I use “play mp3 on audio sink at volume”.

However for every volume other than 100 audio is not played and on the console I get the following error:

16:40:01.496 [ERROR] [.internal.handler.ScriptActionHandler] - Script execution of rule with UID 'alarm_weekday' failed: org.graalvm.polyglot.PolyglotException: TypeError: invokeMember (playSound) on org.openhab.core.model.script.actions.Audio failed due to: no applicable overload found (overloads: [Method[public static void org.openhab.core.model.script.actions.Audio.playSound(java.lang.String,org.openhab.core.library.types.PercentType)], Method[public static void org.openhab.core.model.script.actions.Audio.playSound(java.lang.String,float)], Method[public static void org.openhab.core.model.script.actions.Audio.playSound(java.lang.String,java.lang.String)], Method[public static void org.openhab.core.model.script.actions.Audio.playSound(java.lang.String,java.lang.String,org.openhab.core.library.types.PercentType)], Method[public static void org.openhab.core.model.script.actions.Audio.playSound(java.lang.String,java.lang.String,float)], Method[public static void org.openhab.core.model.script.actions.Audio.playSound(java.lang.String)]], arguments: [chromecast:chromecast:efa514a004bc725f6ea62842cb9ad564 (String), birds.mp3 (String), 0.6 (Double)])

How can I set a volume for audio output?

thanks
Daniel

Did you read these docs? Rules Blockly - Voice and Multimedia | openHAB

Can you provide an example with the blockly image and code?

Thank you I did not read that.

However contrary to the docs it does not “just” not set the volume, the play command does not run at all. (with the error posted above)

Setting the volume up front fixes it however.

1 Like