My other thought was to go with my settings files hosted on a ram disk and copy them from a read-only file on boot. I looked into adding more sound devices to the list but came up empty. I can tell you that setting up the sound like that in the advancedsetting will not work if you open the settings in kodi the driver in advancesetting isn't honoured and it will play sound through HDMI for example and not Bluetooth and you have to quit and reset the settings again. I'm going to try and write a plugin to look after this Bluetooth audio for my sake, I'm thinking this is the only way get the proper config with out manual edit. I can confirm DarkElevenAngel's method works when not in the desktop (to exit use CTRL-ALT-F2 and login) That is due to my lack of time and my unfamiliarity with how to use the Alsa stack properly. The Pi is able to reconnect with the car on boot so as far as that goes I have no issues it's just streaming audio over. It's just a matter or having access and time with the car to test my theory for Bluetooth. I've been able to get omxplayer to play directly to my USB speaker not in my original setup,that can be found here viewtopic.php?f=28&t=214920 I had some issues with my display as well as Bluetooth. Sorry I missed this, I assume you're referring to the pixel desktop, I'm working strictly from the command line. It seems applications, like Kodi, do not necessarily use the Linux system defined output device but can choose their own. This is where my knowledge runs a bit thin. Once the BT device is both paired and connected then it is a matter of getting a Linux system to build an audio route from application to device. With the device paired and connected you should be able to get sound out of your browser, for example YouTube. That is step 3 in the link you used from the CLI. Can you verify that you have a Bluetooth connection to your device - from the GUI right clicking the 'audio' icon should allow you to connect the BT device. So let's take your problem in stages.īluetooth has two stages to getting devices operational - first pairing, and then connection. This works nicely with multiple switches, each press turns off the others due to the binary_sensor feedback.īut, how to get state for Kodi? My initial thought was to make a kodi_audio_status script and call from the value_template of binary_sensor but ehh…can’t figure out if a script actually can return a result and how to get it from the template… I really suspect I’m barking up the wrong tree.The stock Raspbian should be able to pair Bluetooth devices and get an audio connection established that gets your audio out to the speaker, which was the state I got to in my post above. The Settings.GetSettingValue Kodi api can read out the diodevice, but how to get it to display to the user?įor simular integration with Snapcast using switches to control a zone input stream I get the state like: script:Įntity_id: media_player.snapcast_group_b66dd6c63c3b8de95237d287b1b8adaa Hey, I am building a multi-room audio system controlled by Home Assistant.Īs a part of this I need to control Kodi audio output and have experimented with scripts using the player.kodi_call_method: script:īut, it’s all hardcoded and no state feedback.
0 Comments
Leave a Reply. |