- Hardware: RPi(3)
- OS: OpenHabian
- Java Runtime Environment: Zulu 8 (32 bit)
- openHAB version: 2.5.10
Hi folks,
staring to experiment with rules and audio. Finally got my first rule working when I press a button on an ESP. It took me 1 week and the patience of many users on this forum to get it working
Now I want to start getting the project to fruition. My rule will play a playSound("doorbell.mp3")
when I press the button but the sound can only be heard through the HDMI channel, not the audio jack channel of the RPi(3). Any clues as to why? This is what I get when I run in the console:
openhab> smarthome:audio sinks
- System Speaker (enhancedjavasound)
Web Audio (webaudio)
If I run aplay -l
, both cards are showing:
[20:07:05] openhabian@demeter:~$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: b1 [bcm2835 HDMI 1], device 0: bcm2835 HDMI 1 [bcm2835 HDMI 1]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
card 1: Headphones [bcm2835 Headphones], device 0: bcm2835 Headphones [bcm2835 Headphones]
Subdevices: 4/4
Subdevice #0: subdevice #0
Subdevice #1: subdevice #1
Subdevice #2: subdevice #2
Subdevice #3: subdevice #3
Not sure if I have to tell OH2 to use Card1 instead of Card0? PaperUI is only showing System Speaker in Configuration -> System -> Audio
. Any thoughts?