# Node-RED google home integration

**URL:** <https://discourse.nodered.org/t/node-red-google-home-integration/4829>\
**Category:** Share Your Projects\
**Created:** [13 November 2018 09:25 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829 "2018-11-13T09:25:31Z")\
**Posts on this page:** 20\
**Page:** 17

<div class="post-metadata">

**Author:** ![syoma755](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/syoma755/32/14687_2.png) [@syoma755](https://discourse.nodered.org/u/syoma755)\
**Post date:** [29 November 2019 08:07 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/328 "2019-11-29T08:07:23Z")

</div>

> [@andrei-tatar](#):
>
> You can do this with a node specific to your case. Feel free to create a PR if you want this as an option in the blinds node.

I found the Range node does the job - so never mind. But option might be helpful.

I have also the same problem with option "Send msg if state doesn't change ". If I turn on the light by Google, it doesn't send the new message when I ask it again for the same regardless of the checkbox is set or not. Only if I map the statuses it works. Is there anything to try?

---

<div class="post-metadata">

**Author:** ![syoma755](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/syoma755/32/14687_2.png) [@syoma755](https://discourse.nodered.org/u/syoma755)\
**Post date:** [30 November 2019 09:33 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/329 "2019-11-30T09:33:11Z")

</div>

The description could be improved for Blinds node - it should be written, that it expects payload object and switch node with following rule should be instantiated on input for conversion from 0...100 to acceptable message. The blind node doesn't report any error in case of wrong format!

 ![%D0%B8%D0%B7%D0%BE%D0%B1%D1%80%D0%B0%D0%B6%D0%B5%D0%BD%D0%B8%D0%B5](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/4/40658011bc27332582ba037b1bf9ff5bf318c27a.png)  
Also adding possibility to open/close to certain percentage would be nice.

---

<div class="post-metadata">

**Author:** ![pvanklink](https://avatars.discourse-cdn.com/v4/letter/p/bcef8e/32.png) [@pvanklink](https://discourse.nodered.org/u/pvanklink)\
**Post date:** [18 December 2019 13:32 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/331 "2019-12-18T13:32:02Z")

</div>

I have converted my domoticz app to google Home with NORA and it is working wunderfull!!!!!

The only thing I miss is a nora node with selector switch with options  
Now I have to create a node per option.  
Another wish is a security node with options ArmAway, DisArm and ArmHome

I can delete a lot off code and dummy nodes in node-red when these are available

---

<div class="post-metadata">

**Author:** ![MiXeR](https://avatars.discourse-cdn.com/v4/letter/m/e47774/32.png) [@MiXeR](https://discourse.nodered.org/u/MiXeR)\
**Post date:** [26 December 2019 13:16 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/332 "2019-12-26T13:16:07Z")

</div>

Can you add my email to test google asistant on nodered? I can't send you private message.

---

<div class="post-metadata">

**Author:** ![Tico](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@Tico](https://discourse.nodered.org/u/Tico)\
**Post date:** [26 December 2019 23:02 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/333 "2019-12-26T23:02:47Z")

</div>

You no longer need to be added to a list to use NORA. Simply install the node via 'Manage palette' then go to the website -

[https://node-red-google-home.herokuapp.com/login](https://node-red-google-home.herokuapp.com/login)

The token allocation is handled at the web-site.

---

<div class="post-metadata">

**Author:** ![Tico](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@Tico](https://discourse.nodered.org/u/Tico)\
**Post date:** [7 January 2020 01:07 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/334 "2020-01-07T01:07:22Z")

</div>

I'm using the NORA light node with an RGB+WW+CW floodlight. The RGB component is working fine, but I see that the NORA light node doesn't yet support WW+CW.

 ![Alfresco flow](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/8/8b83712ec79fada0a7f2bfdcf43f87a5320bb7f1.png)

A voice command "Set the light to Warm white" gives a spectrumHsv object of -

hue: 29.60000038146973  
saturation: 0.5882353186607361  
value: 1

A voice command "Set the light to Cool white" gives a spectrumHsv object of -

hue: 60  
saturation: 0.1599999964237213  
value: 0.9803921580314636

This sets the RGB component of the light appropriately, but instead I'd like to use the WW/CW LED's properly. When those values are seen, I'd like to branch off a different path in the flow.

The new path would set warm white and cold white respectively using the Temperature input of the light.

ie. temp(100,2700) or temp(100,6500)

I don't know how to create an argument such that -

If value x = blah _and_ value y = blah, then set output z to blah.

```auto
[{"id":"b70c4bd2.1765a8","type":"nora-light","z":"1d039677.88ab9a","devicename":"Alfresco Light","lightcolor":true,"brightnesscontrol":true,"passthru":false,"statepayload":true,"brightnessoverride":"","roomhint":"","name":"","nora":"144e5346.2a487d","topic":"","onvalue":"true","onvalueType":"bool","offvalue":"false","offvalueType":"bool","x":180,"y":120,"wires":[["ed0bb22c.8907c"]]},{"id":"4c3c8dcd.19cdf4","type":"function","z":"1d039677.88ab9a","name":"HSV value","func":"h = msg.payload.color.spectrumHsv.hue;\ns = msg.payload.color.spectrumHsv.saturation*100;\nv = msg.payload.brightness;\n\n\nmsg.payload = \"hsv(\" +h + ',' + s + ',' + v +')';\nreturn msg;","outputs":1,"noerr":0,"x":670,"y":100,"wires":[["871a150.1a10de8"]]},{"id":"ed0bb22c.8907c","type":"switch","z":"1d039677.88ab9a","name":"On/Off","property":"payload.on","propertyType":"msg","rules":[{"t":"cont","v":"true","vt":"str"},{"t":"cont","v":"false","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":390,"y":120,"wires":[["4c3c8dcd.19cdf4"],["42eb05c8.75e9fc"]]},{"id":"42eb05c8.75e9fc","type":"function","z":"1d039677.88ab9a","name":"Off","func":"msg.payload = \"hsv(0,0,0)\";\nreturn msg;","outputs":1,"noerr":0,"x":650,"y":140,"wires":[["871a150.1a10de8"]]},{"id":"871a150.1a10de8","type":"loxone-control-out","z":"1d039677.88ab9a","name":"Alfresco","miniserver":"","control":"12e6cd0f-00c8-1932-ffffd989fb12b87b/AI1","x":1000,"y":120,"wires":[]},{"id":"a4edefdd.49ee4","type":"inject","z":"1d039677.88ab9a","name":"WW - Warm white","topic":"","payload":"temp(100,2700)","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":710,"y":200,"wires":[["871a150.1a10de8"]]},{"id":"1bc3f76f.a41b39","type":"inject","z":"1d039677.88ab9a","name":"CW - Cool white","topic":"","payload":"temp(100,6500)","payloadType":"str","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":700,"y":260,"wires":[["871a150.1a10de8"]]},{"id":"144e5346.2a487d","type":"nora-config","z":"","name":"nora config","group":"","notify":true}]

```

---

<div class="post-metadata">

**Author:** ![GravityRZ](https://avatars.discourse-cdn.com/v4/letter/g/839c29/32.png) [@GravityRZ](https://discourse.nodered.org/u/GravityRZ)\
**Post date:** [7 January 2020 16:34 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/335 "2020-01-07T16:34:19Z")

</div>

would that not be something like

> h = msg.payload.color.spectrumHsv.hue;  
> s = msg.payload.color.spectrumHsv.saturation\*100;  
> v = msg.payload.brightness;
> 
> msg.payload = "hsv(" +h + ',' + s + ',' + v +')';
> 
> if (h === 29.60000038146973 && s === 0.5882353186607361 && v === 0.9803921580314636)  
> {  
> msg.payload = "temp(100,2700)"  
> }  
> if (h === 60 && s === 0.1599999964237213 && v === 1)  
> {  
> msg.payload = "temp(100,6500)"  
> }  
> return msg;

i would personally round the h, s, v values so you would test against 2 digits(eg 29.60)  
h = Math.round(h\*100)/100  
the same for s and v values

---

<div class="post-metadata">

**Author:** ![Tico](https://avatars.discourse-cdn.com/v4/letter/t/a88e57/32.png) [@Tico](https://discourse.nodered.org/u/Tico)\
**Post date:** [8 January 2020 00:14 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/336 "2020-01-08T00:14:46Z")

</div>

Perfect! Thankyou.

---

<div class="post-metadata">

**Author:** ![Axedem](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/axedem/32/4678_2.png) [@Axedem](https://discourse.nodered.org/u/Axedem)\
**Post date:** [13 January 2020 12:09 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/337 "2020-01-13T12:09:52Z")

</div>

I have a trouble with subflow.  
When added nora node to subflow, that nora stops work.  
Google Home texts - "Not responding"

---

<div class="post-metadata">

**Author:** ![realjax](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/realjax/32/895_2.png) [@realjax](https://discourse.nodered.org/u/realjax)\
**Post date:** [13 January 2020 15:25 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/338 "2020-01-13T15:25:00Z")

</div>

Hi Andrei,

I was thinking of maybe extending Nora with another trait. I forked your NORA-service and deployed it to Heroku but it also needs a bunch of heroku environment settings ( eg OAuth/firebase) that are used in the Nora Service. Do you have any further info on what data and/or firebase settings are needed there ?

Thanks.

---

<div class="post-metadata">

**Author:** ![Jernejm](https://avatars.discourse-cdn.com/v4/letter/j/a87d85/32.png) [@Jernejm](https://discourse.nodered.org/u/Jernejm)\
**Post date:** [13 January 2020 18:30 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/339 "2020-01-13T18:30:50Z")

</div>

Hi,

Could anyone share flow with blind nodes?  
Thanks in advance.

---

<div class="post-metadata">

**Author:** ![syoma755](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/syoma755/32/14687_2.png) [@syoma755](https://discourse.nodered.org/u/syoma755)\
**Post date:** [14 January 2020 11:10 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/340 "2020-01-14T11:10:41Z")

</div>

Hi guys

I was trying to use Nora in connection with Google Home Mini. Everything went well until one - two weeks ago when Google Home Mini stopped reacting on voice commands. Instead it always responds „Nora is not available“. Restart of GHM doesn‘t help.  
The funny story is that at the same time Google Home App on iOS works just fine with NORA devices. Only speaker doesn’t.

What could be the problem? Did someone has this already?

---

<div class="post-metadata">

**Author:** ![manjha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/manjha/32/29301_2.png) [@manjha](https://discourse.nodered.org/u/manjha)\
**Post date:** [14 January 2020 12:41 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/341 "2020-01-14T12:41:38Z")

</div>

I've been playing with Node-Red and the Nora addition for a while now, linking Google Home with the Harmony Hub. Could not do it directly since HH only supports English.  
But going through Node-Red solved this, and as spinoff also gives me access from Domoticz.

One small item I've been struggling with: trying to get a volume control for my amp.  
I've set up a switch, linking the output to a command node turning volume up or down.  
Works, but the switch changes state with every click. From my smartphone app that is not a problem, since I can simply press the switch several times, with each click volume goes down 1 step.

What I am looking for is (in order):

1. a "real" volume control (this would be ideal)
2. a pushbutton switch that does not change state
3. a toggle switch

Any ideas?

---

<div class="post-metadata">

**Author:** ![realjax](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/realjax/32/895_2.png) [@realjax](https://discourse.nodered.org/u/realjax)\
**Post date:** [14 January 2020 14:05 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/342 "2020-01-14T14:05:55Z")

</div>

Maybe use a light and use its brightness setting as a way to control the volume ?

---

<div class="post-metadata">

**Author:** ![andrei-tatar](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei-tatar/32/3780_2.png) [@andrei-tatar](https://discourse.nodered.org/u/andrei-tatar)\
**Post date:** [14 January 2020 15:25 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/343 "2020-01-14T15:25:18Z")

</div>

There's also the "speaker" node that has a volume property.

---

<div class="post-metadata">

**Author:** ![andrei-tatar](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei-tatar/32/3780_2.png) [@andrei-tatar](https://discourse.nodered.org/u/andrei-tatar)\
**Post date:** [14 January 2020 15:26 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/344 "2020-01-14T15:26:03Z")

</div>

> [@syoma755](#):
>
> Hi guys
> 
> I was trying to use Nora in connection with Google Home Mini. Everything went well until one - two weeks ago when Google Home Mini stopped reacting on voice commands. Instead it always responds „Nora is not available“. Restart of GHM doesn‘t help.  
> The funny story is that at the same time Google Home App on iOS works just fine with NORA devices. Only speaker doesn’t.
> 
> What could be the problem? Did someone has this already?

Have you tried unlinking and linking back NORA to your Google Home app? Seems like an issue with google home services...

---

<div class="post-metadata">

**Author:** ![andrei-tatar](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei-tatar/32/3780_2.png) [@andrei-tatar](https://discourse.nodered.org/u/andrei-tatar)\
**Post date:** [14 January 2020 15:27 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/345 "2020-01-14T15:27:23Z")

</div>

> [@realjax](#):
>
> I was thinking of maybe extending Nora with another trait. I forked your NORA-service and deployed it to Heroku but it also needs a bunch of heroku environment settings ( eg OAuth/firebase) that are used in the Nora Service. Do you have any further info on what data and/or firebase settings are needed there ?

Those are all the settings related to Google Smart Home service. You can get more info reading the Google docs here: [Làm quen với mô hình từ đám mây sang đám mây &nbsp;|&nbsp; Cloud-to-cloud &nbsp;|&nbsp; Google Home Developers](https://developers.google.com/assistant/smarthome/develop/create#create-project)

---

<div class="post-metadata">

**Author:** ![realjax](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/realjax/32/895_2.png) [@realjax](https://discourse.nodered.org/u/realjax)\
**Post date:** [14 January 2020 15:33 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/346 "2020-01-14T15:33:49Z")

</div>

> Those are all the settings related to Google Smart Home service. You can get more info reading the Google docs here: [Premiers pas avec Cloud-to-Cloud &nbsp;|&nbsp; Cloud-to-cloud &nbsp;|&nbsp; Google Home Developers](https://developers.google.com/assistant/smarthome/develop/create#create-project)

Unfortunately the process described there is obsolete. something Google's (in)famous for . ☹

---

<div class="post-metadata">

**Author:** ![manjha](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/manjha/32/29301_2.png) [@manjha](https://discourse.nodered.org/u/manjha)\
**Post date:** [14 January 2020 15:50 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/347 "2020-01-14T15:50:33Z")

</div>

Goo idea, but then I have a problem bringing the set level into the amp. The commands available for that device are VolumeUp and VolumeDown. Setting the volume directly to a specific setting is not possible...

---

<div class="post-metadata">

**Author:** ![andrei-tatar](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/andrei-tatar/32/3780_2.png) [@andrei-tatar](https://discourse.nodered.org/u/andrei-tatar)\
**Post date:** [14 January 2020 16:04 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/348 "2020-01-14T16:04:38Z")

</div>

You can translate the difference in a set of commands. That's what I do. But I do get the set volume value.  
Something like:

```auto
while (Math.abs(actualVolume - desiredVolume) > threshold) {
  if (actualVolume < desiredVolume) {
    increaseVolumeCommand();
  } else {
    decreaseVolumeCommand();
  }
  wait(1, 'sec');
}

```

[Previous page](https://discourse.nodered.org/t/node-red-google-home-integration/4829.md?page=16)

[Next page](https://discourse.nodered.org/t/node-red-google-home-integration/4829.md?page=18)
