{"id":1005,"date":"2018-10-16T17:01:42","date_gmt":"2018-10-16T17:01:42","guid":{"rendered":"http:\/\/thomas.w-p.me.uk\/blog\/?p=1005"},"modified":"2018-10-16T19:16:05","modified_gmt":"2018-10-16T19:16:05","slug":"openhab-max2play-squeezebox-google-assistant-working-together","status":"publish","type":"post","link":"https:\/\/thomas.w-p.me.uk\/blog\/2018\/10\/openhab-max2play-squeezebox-google-assistant-working-together\/","title":{"rendered":"OpenHAB, Max2Play, Squeezebox, Google Assistant working together"},"content":{"rendered":"<p>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.<\/p>\n<p>After a couple of evenings of fiddling, I now am able to achieve basic on-off control of the squeezebox using my google home.\u00a0 This is a result!<\/p>\n<p>I won&#8217;t go in to many details, but here are the steps as I remember them plus the key line of code.<\/p>\n<ul>\n<li>Set up OpenHAB using the wizard<\/li>\n<li>Add the services <strong>OpenHAB Cloud<\/strong> and <strong>HomeKit Integration\u00a0<\/strong><\/li>\n<li>Add the <strong>SqueezeBox<\/strong> Binding<\/li>\n<li>Register with myOpenHab to get your secret key, and put it somewhere (I can&#8217;t remember where that went, most likely in the Configure setting in OpenHAB Cloud the first time you use it.<\/li>\n<li>In your items file (mine is in \/etc\/openhab2\/items\/) add the following line:<\/li>\n<\/ul>\n<pre class=\"lang:default decode:true \">Switch Kitchen_Squeezelite_Power \"Kitchen Squeezelite\" &lt;receiver&gt; [ \"Switchable\" ] { channel=\"squeezebox:squeezeboxplayer:&lt;your unique ids here&gt;:power\" }<\/pre>\n<ul>\n<li>Then, use <a href=\"https:\/\/www.openhab.org\/docs\/ecosystem\/google-assistant\/#item-configuration\">the instructions on this page<\/a> to set up Google Assistant.\u00a0 It found my Power Control and I gave it a nickname &#8220;Squeezebox&#8221;.<\/li>\n<\/ul>\n<p>I can now say &#8220;Hey Google, turn off\/on the Squeezebox&#8221; and it works!<\/p>\n<p>I found that to add other commands, you had to delete OpenHab from Google Assistant, then re-add it.\u00a0 I also set up the volume of the squeezebox as an item and called it &#8220;The tunes&#8221;.\u00a0 So &#8220;Hey google, turn up the tunes&#8221; works fine.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 &hellip; <a href=\"https:\/\/thomas.w-p.me.uk\/blog\/2018\/10\/openhab-max2play-squeezebox-google-assistant-working-together\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">OpenHAB, Max2Play, Squeezebox, Google Assistant working together<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[27],"tags":[],"class_list":["post-1005","post","type-post","status-publish","format-standard","hentry","category-geekiness"],"_links":{"self":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/posts\/1005","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/comments?post=1005"}],"version-history":[{"count":2,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/posts\/1005\/revisions"}],"predecessor-version":[{"id":1008,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/posts\/1005\/revisions\/1008"}],"wp:attachment":[{"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/media?parent=1005"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/categories?post=1005"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thomas.w-p.me.uk\/blog\/wp-json\/wp\/v2\/tags?post=1005"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}