OpenHAB, Max2Play, Squeezebox, Google Assistant working together

So, I have been pretty distracted from geekiness for a while, but MBH was away, the kids have grown up and I noticed that Max2Play (which has been brilliant!) had introduced integration with OpenHAB, something I had never heard of.

After a couple of evenings of fiddling, I now am able to achieve basic on-off control of the squeezebox using my google home.  This is a result!

I won’t go in to many details, but here are the steps as I remember them plus the key line of code.

  • Set up OpenHAB using the wizard
  • Add the services OpenHAB Cloud and HomeKit Integration 
  • Add the SqueezeBox Binding
  • Register with myOpenHab to get your secret key, and put it somewhere (I can’t remember where that went, most likely in the Configure setting in OpenHAB Cloud the first time you use it.
  • In your items file (mine is in /etc/openhab2/items/) add the following line:

I can now say “Hey Google, turn off/on the Squeezebox” and it works!

I found that to add other commands, you had to delete OpenHab from Google Assistant, then re-add it.  I also set up the volume of the squeezebox as an item and called it “The tunes”.  So “Hey google, turn up the tunes” works fine.

Leave a Reply