pssc / ha-addon-lms

Logitech Media Server Addon for Home Assistant
GNU General Public License v3.0
56 stars 13 forks source link

Expose 'local player' to home assistant audio #3

Closed funkybassmandan closed 3 years ago

funkybassmandan commented 3 years ago

Hi. This is my first post on Github, so apologies if I make a faux-pa! Love this addon, I have been able to combine my nas and home assistant server into one! One small functionality that I am missing is the ability to play audio from the 'local player' in lms. Is there a relatively easy fix to expose this to the home assistant audio? Regards. Dan.

pssc commented 3 years ago

Looks like audio is not enabled in the config i will push that out in 0.45 and see if that does it.

pssc commented 3 years ago

@funkybassmandan, I am building v0.0.45 now, would you be up for testing this would mean some manual CLI action in home assistant and uninstalling the repo version? I will have installed on my test setups here first, just to find any clangers.

funkybassmandan commented 3 years ago

Thanks for your reply. Of course I would be happy to try it, the system is not fully live yet, so breaking it wouldn't matter... Not that it will of course!😉

pssc commented 3 years ago

@funkybassmandan which arch are you using?

funkybassmandan commented 3 years ago

@pssc I'm running on a raspberry pi4 4GB, booting from ssd.

pssc commented 3 years ago

@funkybassmandan Are you 32bit or 64?

pssc commented 3 years ago

So I have now on my setup after a bit of poking squeezelite connected to the HA pulse audio, will probably need to rebuild the image again due to extra packages and permissions that need to be set, It takes ~1.5 days to produce the images for all arches, I also note the LocalPlayer plugin doesn't support aarch64 at all, unless you can run 32bit arm binaries on that as well?

funkybassmandan commented 3 years ago

I'm running 64 bit, but happy to flash 32bit for the purposes of testing! I appreciate the time you're putting to this. 😊

pssc commented 3 years ago

@funkybassmandan ok there seem to be issues with getting a working Squeezelite. I ended compiling on up my own to get any sound out! so o this end have a look at https://github.com/pssc/ha-addon-squeezelite/ its a bit rough round the edges see if it meet your needs this should also work in aarch64 though this is currently untested.

pssc commented 3 years ago

I can confirm playback on Hassos aarch64 via pulse audio and direct HW