How to integrate a rasp pi multiroom (with hifiberry amp)?

I glanced through this, this tutorial looks like Apple-only. A tutorial like this, for Logitech Media Server is not that difficult. I would have thought, the net is full of them. :wink:

Here are a few screenshots of my openHAB integration, this is a work in progress and not polished yet:

When i was planning my house, i was thinking, ceiling speakers are only usefull in the bathroom. So i only installed empty cases in my concrete ceilings.

Now i live in my house and i´m very sad, that i didn´t install empty cases in all my rooms into the ceilings. It would be usefull in the dining room, kitchen, kids rooms, … Everywhere.

Has anybode a good looking idea how to integrate this? Without buying a sonos speaker? I want it the DIY way.

How have you done this in the rooms with no installed speakers?

I’ve got a small squeeze box system up and running. I had built a house wired for in ceiling speakers in every room and was starting to build out a system, then we decided to move. I can just imagine a rack of pis sitting in the wiring closet running the whole house. Oh well…

I have a Linux server running Logitech media server on docker. It works flawlessly. I think it has pretty low resource requirements. Since you already have a Linux server I would definitely recommend installing it there either directly or in vm or container.

I have one pi3 with a hifiberry amp+. It has picore player installed on it. I remember when I was first setting it up that I had a hard time finding a tutorial for exactly that setup and tried a number of different options that I couldn’t get to work for various reasons. Picore player, once installed, has an option for hifiberry in its web interface and couldn’t be easier to configure. You could use other distros, but if squeezebox is the only thing you’re using a particular pi for, you can’t beat pi core player.

I just checked the hifiberry website and it looks like they have an amp2 product that is better for the same price as amp+. Probably should go for that one if you haven’t purchased yet.

I have a second pi3 running picore player. This one is connected directly to a cheap $10 set of USB speakers. This works great just like the first one. Since the USB speakers have the DAC chips, there was no need for hifiberry and it was a lot cheaper.

Back when I had the house wired for whole house sound, the hifiberry looked like the best option, although I remember it looking like it would be $100+ per room so I was just going to gradually build out the system. Thr rooms just had wiring, no speakers, so I had to purchase a speaker when wiring a room. Monoprice had a decent inexpensive speaker that I was going with. I think if some rooms just have one speaker, it’s theoretically possible to use a single pi with hifiberry amp+ to run two rooms using the left and right channels separately for two instances of squeeze lite, but I didn’t have enough pulse audio configuration skills to make that happen. That could bring the per room price down. I’d recommend considering the USB speaker route if a room isn’t already wired with speaker wire and you want to add a whole house speaker.

I have plex but never really used it for internet radio or local music. If you already use it for that, Logitech media server might have a plugin to connect. If you don’t already use it, I would recommend just going through Logitech media server/squeezebox.

I use an android app called squeezer to control swueezebox. It works well.

I don’t do much with the audio in openhab as far as selecting sources. We’re primarily using it as white noise for our two babies. When either of their bedroom doors close, a single white house track is started on repeat and the volume is set to the proper level. When the door opens, the sound turns off. Works flawlessly.

Hope that helps!

Just to add my support for logitech media server (aka squeezebox). I am using to for a number of years, 6 pi’s (some with HifiBerry of various sorts) connected to some shelf speakers and cheap class T-amps) in various rooms, all works like a charm. My server is now in a VM that I am running of a NUC, but a rp2 or 3 is just doing fine (except that I needed to setup my server with a new SD card every 6-12 months). I have a music collection on my NAS, but mostly use streaming services to be honest. Setup is easy and if you are willing to look at Max2Play it is an absolute no-brainer, they really make it easy (otherwise it can get a little tricky depending on the DAC). Spotify works well again since there is the Spotty integration (an app for the squeezebox), airplay works pretty nice too, and it integrates into OH2.
The ability to flawlessly sync across some or all players is of particular interest to us and I have not yet found another system that convinces there (and is cheap).
The downside is that this system is unfortunately very much at its end of live. The webinterface of the server looks pretty dated, there is only one app on iOS left that still works (which is not free); once in a while there are problems with updates as you may need to keep old libraries on your linux system, or something else breaks and does not work anymore for a while (spotify integration was such an issue a year back or so). There are still forums etc available where you can get advice, but as an opensource project, development seems to slowly but surely stop.
I am actually not sure if you could start specific spotify playlists from OH2, and I don’t know how easily you could pick channels when using streaming servers with various channels (e.g., SomaFM, JazzRadio) as they are running through squeezebox apps. The setup looked to complicated and as there is already an app for that, I never bothered to integrate these functions. But the basic player functions are easy to add.

Hi,

I currently have a system using mopidy instances as backend. A Motu 24Ao for distributing the different mopidy instances to different rooms with each room having a separate amplifier. I wrote a custom kivy UI for my RPI 7" TFT screens installed in every room. It is still a work in progress. I was looking on integrating mopidy in openhabian, but it doesn’t look really straight forward. I also want to try to write a kivy frontend for openhabian. But that looks not so easy either. I would like to integrate all systems with openhabian in order to orchestrate all events. I have loxone with knx as domotics installation. Loxone works already with openhabian so that is a plus.

An example of integration is when I enable a player on a RPI screen it should do 3 things, I was wondering if this is possible:

  • Start mopidy instance (through ssh command)
  • Enable relay that switches amplifier on
  • Starts playing playlist or web radio selected on screen

Currently the integration is directly to the mopidy instance, but I would like to route it (partially) through openhabian. In the ideal case each RPI TFT device connects to openhabian supplying a room Id. The openhabian sends the screen layout to the RPI in json or something else and kivy parses the json and renders the UI. I don’t know if that is feasible but that looks the most versatile way.

I’ve looked at habpanel, but that requires to start a web browser on the RPI and that suffers from poor performance. Kivy is much more fluent in the RPI than a web browser, so my preference goes out to kivy.

Regards,

Tom

Does mopidy support daapd commands? It might be worth looking into and I’m sure I’ve used a binding for it in the past.

Hi guys,

I hope it’s okay to post here as a one of the people behind Max2Play.

I read your request and thought I might link to the great, detailed tutorial on setting up a Multiroom System with Raspberry Pi’s and their HAT sound cards. The example is for 5 rooms: kitchen, bath, living room, patio and bedroom

I also translated it based on a German version, in case there are people here preferring German.

You can use it as the jumping off point for implementing OpenHAB.

English Version

Furthermore, we have a beta plugin that lists some of the more popular and useful HTTP commands for implementation in Home Automation systems. Since Max2Play’s configuration runs on a web interface, most commands can be utilized in other software easily. Additionally, the LMS obviously comes with a lot of options for remote control that are also included on there.

Voice Control Plugin

If somebody around here might be interested in collaborating on an article on the implementation of OpenHAB, I’d be happy to translate to German for more visibility, format any all texts and screenshots/pictures required and help out in any other way. Obviously, the tutorial should be specific to Max2Play, but otherwise there are no requirements, really.

You can let me know via private message here or contact Max2Play via email directly. It would be great to have a detailed tutorial for a good home automation solution! :slight_smile:

2 Likes

I have tried most of the above.

For original poster I would recommend rasplex. It will give you the nicest looking interface of them all on your android or iOS device. Then you just flick your audio to whichever rasplex device you choose…multiroom

Added bonus… U can use openhab plex binding to see what is playing and where in your main house openhab controls

S

Can you give me a link to the android interface? There is nothing in playstore?!

Not only is it OK, we are thrilled when reps from systems like Max2Play show up on the forum. Thanks for posting!

It should be just the Plex app. https://play.google.com/store/apps/details?id=com.plexapp.android

Can you do the same audio in multiple rooms at the same time, syncronized? That seems to be the big gotcha with setups I’ve seen.

1 Like

At the moment mopidy doesn’t support daapd. It uses mpd as remote control protocol

@rich

Apparently chrome cast audio will play nicely synced audio to grouped rooms. I like plex interface and u can plex app to send to multiple cca s

I have not done the above. The last time I did multiple room synced audio I used airplay to cast to multiple pi’s with dac hats. BUT this only works from Mac computers and not iphone or iPad… silly apple people… now they are promising but not delivering airplay 2.

Once airplay 2 has been delivered I’m sure it won’t take long before we can run it on pi’s

I do know about that, but I was wondering if rasplex supports that, which was your original suggestion.

I have a feeling not with rasplex… my mistake… I spent along time on this as it used to be a trade off between useability and multi room. Like I said… I used airplay and shairport for a while and it’s solid for multi room but requires osx.

Chrome cast was not available in its current form and I now use a system where class d amps serve individual rooms and I use relays to enable them as I need… but this only allows for one source at a time which meets my needs.

I will probably be doing this again soon in another house, in which case I will investigate Chromecast… or even better… I cross my fingers regarding airplay 2

S

1+ for info or links on synchronization of multiple Rasplex players (using HiFiBerry Amp+ and BOSS DAC’s). Heard that such is possible but cannot find link / info anywhere.

Hi everyone,

I wanted to post this here, too, to inform anybody interested in Max2Play/Raspi + openHAB.
We created a beta for an openHAB plugin for Max2Play and would appreciate any feedback, the beta plugin as well as the image download are free.
Here’s the announcement thread.

And this the install link for the plugin.

Let me know if you have any questions or feedback.

Hi guys,

Another quick update, we now added a plugin that dynamically creates some example commands around Max2Play’s main features (Squeezebox, Kodi, etc.)

Announcement

Hi guys,

I wanted to update you on another feature we have been working on in conjunction with the openHAB server installer.

Our API-Examples plugin has just been added to all Max2Play systems with the new version 2.47 of Max2Play!
You can find it in all Max2Play systems with the update. It’s a free plugin and can be added in the Settings/Reboot menu from the available plugins section.

It dynamically creates a list of HTTP-Get and CLI commands to be copied and pasted into your openHAB solutions.

Commands like Play, Pause, Next Song but also commands like shutdown of the device or starting specific plugins like the Jivelite GUI or Kodi.

It also creates a more detailed API doc for the equalizer and other features we can add by request.

This is the ideal plugin to quickly find and add the functionalities you need for the multiroom audio to be added to your openHAB.

We would really appreciate feedback on this new plugin.

Here’s a screenshot:

2nd that. LM|S on Ubuntu and piCorePlayer on the Pi3b / Hifi|Berry Amp2 kits. Controlled via Squeezer on Android. Wonderful sound and very easy to manage and control. Also sync’d with Squeeze Player Android and Squeezelite-X on Windows10.

No Max2Play here.

AN old thread but I also have a long standing setup with LM|S on Buster and piCorePlayer on the Pi3b / Hifi|Berry Amp2 kits. Controlled via Squeezer on Android. Now I’m trying to understand how the LMS binding works so that I can get TTS messages across to my LMS server so that it can stream them across my house. Anyone managed this?

Hello. I might be able to help if I have understood your question.
I have a similar setup (including hifiberry) and using LMS with openhab is pretty straightforward (even for a non programmer like me)

You just need to install squeezebox binding and the bridge and the players will be autodiscovered

If you use any of the openhab TTS motors you just need to to Audio page in Settings/System Services and select the default sink for the TTS messages.