I have a Raspberry Pi 5, OH4 and have connected a Bluetooth speaker. However, I still can’t play anything (tested with rules and openhab-cli).
The speaker is working in general (simple Java code can play sound).
Any suggestions?
I have a Raspberry Pi 5, OH4 and have connected a Bluetooth speaker. However, I still can’t play anything (tested with rules and openhab-cli).
The speaker is working in general (simple Java code can play sound).
Any suggestions?
Could you provide more information? What does the log say or did you get an error message of cli? How does your rule look like or what is the syntax of your cli command?
I used openhab-cli:
openhab> audio play doorbell.mp3
CLI doesn’t return any error/success message.
And also tried with rule:
actions.Audio.playSound("doorbell.mp3")
error with log:tail
00:01:30.187 [ERROR] [internal.javasound.JavaSoundAudioSink] - An exception occurred while playing audio : ‘Cannot create AudioDevice’
also:
openhab> audio sinks
* System Speaker (enhancedjavasound)
Web Audio (webaudio)
I have no experience in setting up Bluetooth audio devices but I recon it should appear as an additional audio sink in openhab which is currently missing or not recognized in your environment.