{"id":187,"date":"2017-05-20T19:34:07","date_gmt":"2017-05-20T19:34:07","guid":{"rendered":"http:\/\/www.cribbstechnologies.com\/?page_id=187"},"modified":"2017-05-20T20:19:29","modified_gmt":"2017-05-20T20:19:29","slug":"google-home-and-home-assistant-integration","status":"publish","type":"page","link":"https:\/\/www.cribbstechnologies.com\/index.php\/home-automation\/google-home-and-home-assistant-integration\/","title":{"rendered":"Google Home and Home Assistant Integration"},"content":{"rendered":"<p>[et_pb_section bb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221;][et_pb_row admin_label=&#8221;row&#8221;][et_pb_column type=&#8221;4_4&#8243;][et_pb_text admin_label=&#8221;Text&#8221; background_layout=&#8221;light&#8221; text_orientation=&#8221;left&#8221; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221;]<\/p>\n<p>The <a href=\"https:\/\/madeby.google.com\/home\/\">Google Home<\/a> device is a standalone device that runs Google Assistant and allows you to do many things just using your voice. It has a growing base of smart home components it can integrate with and someone has created a <a href=\"https:\/\/home-assistant.io\/\">Home Assistant<\/a> component called <a href=\"https:\/\/home-assistant.io\/components\/emulated_hue\/\">Emulated Hue Bridge<\/a>\u00a0that allows Home Assistant to masquerade as a <a href=\"http:\/\/www2.meethue.com\/en-us\/productdetail\/philips-hue-bridge\">Philips Hue Bridge<\/a>. What&#8217;s all that jargon mean? It means that you can set up Home Assistant to pretend it&#8217;s a Philips Hue Bridge. Devices that can interact with a Philips Hue Bridge will see it and be able to communicate with it as if it&#8217;s the real deal.<\/p>\n<p>Google Home requires that the Philips Hue Bridge should be available on port 80. In Linux this means that you either have to a) run Home Assistant as root (not advised in most cases) or b) set up an iptables rule that will allow the user that runs Home Assistant to bind to one end of a forwarding pipe. Confused? Don&#8217;t be! It&#8217;s a relatively simple process.\u00a0https:\/\/www.cyberciti.biz\/faq\/linux-port-redirection-with-iptables\/<\/p>\n<p>After you&#8217;ve got that figured out all that&#8217;s left to do is configure Home Assistant<\/p>\n<pre><code class=\"\" data-line=\"\">\nemulated_hue:\n  type: google\n  listen_port: \n  advertise_port: 80\n<\/code><\/pre>\n<p>By default the Emulated Hue component will expose things within your Home Assistant configuration and you&#8217;ll be able to control them by name. Once you&#8217;ve restarted Home Assistant make sure it&#8217;s working by going to http:\/\/&lt;your_ip&gt;\/description.xml and if all goes well you&#8217;ll see something similar to this:<\/p>\n<pre><code class=\"\" data-line=\"\">\n&lt;root xmlns=&quot;urn:schemas-upnp-org:device-1-0&quot;&gt;\n    &lt;specversion&gt;\n        &lt;major&gt;1&lt;\/major&gt;\n        &lt;minor&gt;0&lt;\/minor&gt;\n    &lt;\/specversion&gt;\n    &lt;urlbase&gt;http:\/\/&amp;lt;Your IP&amp;gt;:80\/&lt;\/urlbase&gt;\n    &lt;device&gt;\n        &lt;devicetype&gt;urn:schemas-upnp-org:device:Basic:1&lt;\/devicetype&gt;\n        &lt;friendlyname&gt;HASS Bridge (&amp;lt;Your IP&amp;gt;)&lt;\/friendlyname&gt;\n        &lt;manufacturer&gt;Royal Philips Electronics&lt;\/manufacturer&gt;\n        &lt;manufacturerurl&gt;http:\/\/www.philips.com&lt;\/manufacturerurl&gt;\n        &lt;modeldescription&gt;Philips hue Personal Wireless Lighting&lt;\/modeldescription&gt;\n        &lt;modelname&gt;Philips hue bridge 2015&lt;\/modelname&gt;\n        &lt;modelnumber&gt;BSB002&lt;\/modelnumber&gt;\n        &lt;modelurl&gt;http:\/\/www.meethue.com&lt;\/modelurl&gt;\n        &lt;serialnumber&gt;1234&lt;\/serialnumber&gt;\n        &lt;udn&gt;uuid:2f402f80-da50-11e1-9b23-001788255acc&lt;\/udn&gt;\n    &lt;\/device&gt;\n&lt;\/root&gt;\n<\/code><\/pre>\n<p>[\/et_pb_text][et_pb_text admin_label=&#8221;Text&#8221; background_layout=&#8221;light&#8221; text_orientation=&#8221;left&#8221; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221;]<\/p>\n<p>The easiest way I&#8217;ve found to do more complicated things using Google Home is to use a <a href=\"https:\/\/home-assistant.io\/components\/switch.template\/\">template switch<\/a>\u00a0platform component but this is limited to on\/off commands. Google Home can control <a href=\"https:\/\/home-assistant.io\/components\/media_player\/\">media player<\/a>\u00a0components but it&#8217;s not really reliable so I decided to write a template light platform. This expands what you can do by allowing you to issue commands to set the level of devices as well as turn them on and off. It should be available in the 0.46 release version. Check out a preview of the functionality below!<\/p>\n<p>&nbsp;<\/p>\n<p>[\/et_pb_text][et_pb_video admin_label=&#8221;Video&#8221; src=&#8221;https:\/\/youtu.be\/UeFDCZDZQh0&#8243; \/][\/et_pb_column][\/et_pb_row][\/et_pb_section]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[et_pb_section bb_built=&#8221;1&#8243; admin_label=&#8221;section&#8221;][et_pb_row admin_label=&#8221;row&#8221;][et_pb_column type=&#8221;4_4&#8243;][et_pb_text admin_label=&#8221;Text&#8221; background_layout=&#8221;light&#8221; text_orientation=&#8221;left&#8221; use_border_color=&#8221;off&#8221; border_color=&#8221;#ffffff&#8221; border_style=&#8221;solid&#8221;] The Google Home device is a standalone device that runs Google Assistant and allows you to do many things just using your voice. It has a growing base of smart home components it can integrate with and someone has created a Home Assistant component [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":39,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-187","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/pages\/187","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/comments?post=187"}],"version-history":[{"count":5,"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/pages\/187\/revisions"}],"predecessor-version":[{"id":192,"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/pages\/187\/revisions\/192"}],"up":[{"embeddable":true,"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/pages\/39"}],"wp:attachment":[{"href":"https:\/\/www.cribbstechnologies.com\/index.php\/wp-json\/wp\/v2\/media?parent=187"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}