I’m trying to integrate Pandora into openHAB.
I installed a whole-house audio system, with speakers and volume controls in all the common rooms in our house. These speakers are hooked up to an amplifier, which in turn is hooked up to the my Raspberry Pi 3 (the same one hosting openHAB) via a USB audio card.
This setup works nicely, as it allows openHAB audio feedback throughout the house. I also use shairport-sync on the same Pi, which allows it to be used as an AirPlay receiver.
However, for a seamless integration, I’d love to have openHAB control our Pandora experience. Our whole family uses it, and it tends to be clunky to try to AirPlay it from different devices. I plan to control it from the BasicUI, the iOS app, and from habPanel
I’ve already brainstormed and spent some time trying some different solutions. I’m looking for input from people smarter than me, especially if anyone has something like this working.
Must haves
- Switch or String items able to play, pause, skip forward, and select stations
Would be nice
- Ability to upvote and downvote songs
- Ability to see current track, artist, etc. via Strings
These are the solutions I’ve considered / attempted:
Pianobar
This is a lightweight, command line interface for Pandora. It supports FIFO commands via the command line, so it seems like it would be perfect. I don’t see a good way to keep it running as a service, though. If anyone has thoughts on how to keep it running in the background, I’d consider this my best solution.
Pianod
Similar to Pianobar, but designed to run as a service. This should be a good option, but I’m having trouble getting it to compile. The instructions are fairly thin for a relative linux newbie like me. I haven’t given up completely, but I wanted to solicit input before I sink too many more hours on this approach.
KODI
I haven’t investigated this too much, but I thought about either trying to run KODI on the same Pi or running it on a second Pi. My cursory investigation of the KODI binding leads me to think there isn’t an easy way for me to change Pandora playlists from openHAB. It also seems overkill for my needs.
Squeezebox
I tried installing Squeezebox on the same Pi as openHAB a few months ago. I don’t remember exactly what went wrong, but I ended up having to restore my setup from a backup image without any success in getting Pandora connected. I wish I could remember what went wrong, but if others have had success with Pandora -> Squeezebox -> openHAB, then I might give it another go.