# 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:** 7

<div class="post-metadata">

**Author:** ![pakerfeldt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pakerfeldt/32/3101_2.png) [@pakerfeldt](https://discourse.nodered.org/u/pakerfeldt)\
**Post date:** [3 January 2019 16:39 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/125 "2019-01-03T16:39:24Z")

</div>

This works better than I expected. Finally I will get some use out of our Google Home Mini. Let me know if you need any assistance. Would be great to get some more devices types in. Would also love to see this properly released somehow. I'm sure many with me would happily pay a small fee every month to keep it running. If there's anything I can help out with, shot me a message.

---

<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:** [3 January 2019 17:38 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/126 "2019-01-03T17:38:48Z")

</div>

New device types will get in as soon as I have some time/need to create them. There is no priority list but there is some progress on thermostat and next one is fan. Maybe open a github issue if you need a specific device (from the list of supported ones) and ideas on how the node should behave.  
Releasing it depends on Google as it needs to pass some certification stage and it got delayed with the holidays and so on.  
There's no need for monthly fee for now (I guess we'll see how the heroku dyno handles lots of connection but I estimate it will work well with a few hundred active users), however I did add a link for donations so feel free 🍻

---

<div class="post-metadata">

**Author:** ![pakerfeldt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pakerfeldt/32/3101_2.png) [@pakerfeldt](https://discourse.nodered.org/u/pakerfeldt)\
**Post date:** [3 January 2019 18:15 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/127 "2019-01-03T18:15:30Z")

</div>

I sent you a small payment that hopefully covers some of the costs in the meantime.

---

<div class="post-metadata">

**Author:** ![jonnyburns](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@jonnyburns](https://discourse.nodered.org/u/jonnyburns)\
**Post date:** [3 January 2019 19:13 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/128 "2019-01-03T19:13:59Z")

</div>

Thanks, unfortunately that didn’t resolve it!

I can’t quite figure out why this won’t work...

---

<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:** [3 January 2019 19:51 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/129 "2019-01-03T19:51:46Z")

</div>

Can you post the flow json along with an `inject` node that does work?

---

<div class="post-metadata">

**Author:** ![pakerfeldt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pakerfeldt/32/3101_2.png) [@pakerfeldt](https://discourse.nodered.org/u/pakerfeldt)\
**Post date:** [3 January 2019 20:23 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/130 "2019-01-03T20:23:46Z")

</div>

Did anything happen to the server recently? I was adding more lights and all of a sudden it stopped working altogether. It says "Connected" in the nodes but when I try to control the lights the Home app says "Not responding".

/edit -- I removed the link to Nora in Home and added it again. First time it timed out, second time it worked and now I can control lights again.

---

<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:** [3 January 2019 21:25 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/131 "2019-01-03T21:25:00Z")

</div>

This may happen if you open the link I pm'ed you more than once.  
I also noticed and reported (back to Google) the fact that unlink needs 2 tries to work.

---

<div class="post-metadata">

**Author:** ![jonnyburns](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@jonnyburns](https://discourse.nodered.org/u/jonnyburns)\
**Post date:** [3 January 2019 22:06 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/132 "2019-01-03T22:06:10Z")

</div>

Unfortunately not - 02 88 00 01 1b 83 00 01 00 00 00 00 00 00 01 8a 03 is the string, i'm not sure if it needs to be wrapped in " or or translated to 0x02 0x88 0x00 0x01 etc before it is sent, but nothing seems to work on trial and error, whereas sending **02 88 00 01 1b 83 00 01 00 00 00 00 00 00 01 8a 03** using Packet Sender works every time.

![21](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/8/85004b8c22944b4dd4b25cb76caa11eacf293e8a.png)

 ![26](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/6/6cc9205423a8a364f8fe69093edeee7d89e5343f.png)

---

<div class="post-metadata">

**Author:** ![rgerrans](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@rgerrans](https://discourse.nodered.org/u/rgerrans)\
**Post date:** [4 January 2019 02:01 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/133 "2019-01-04T02:01:17Z")

</div>

Is anyone here running into issues with Node-Red memory usage. I've noticed recently that my Node-Red deployment sometimes is eating up 75% or more of my memory on my Raspberry Pi. I can't directly correlate to when I started using the NORA nodes so don't know for sure if there is a memory link in them but wanted to see if others were noticing similar issues while I try to find ways to track down memory use through the logs.

---

<div class="post-metadata">

**Author:** ![pakerfeldt](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pakerfeldt/32/3101_2.png) [@pakerfeldt](https://discourse.nodered.org/u/pakerfeldt)\
**Post date:** [4 January 2019 08:21 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/134 "2019-01-04T08:21:23Z")

</div>

Makes sense. I definitely did.

---

<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:** [4 January 2019 10:14 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/135 "2019-01-04T10:14:04Z")

</div>

> [@rgerrans](#):
>
> Is anyone here running into issues with Node-Red memory usage.

My node-red instance uses about 8% of the memory on a RPI3 (10 nora nodes). Are you using the default systemd service to launch node-red? That one uses `NODE_OPTIONS=--max_old_space_size=256` so it should trigger the GC around that limit.

> [@jonnyburns](#):
>
> Unfortunately not - 02 88 00 01 1b 83 00 01 00 00 00 00 00 00 01 8a 03 is the string, i'm not sure if it needs to be wrapped in " or or translated to 0x02 0x88 0x00 0x01 etc before it is sent, but nothing seems to work on trial and error

Reading the documentation for the buffer input, it says that it needs to be a valid json number array. So no hex number format support. Try this: `[2,136,0,1,27,131,0,1,0,0,0,0,0,0,1,138,3]`

---

<div class="post-metadata">

**Author:** ![PRO2XY](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pro2xy/32/4885_2.png) [@PRO2XY](https://discourse.nodered.org/u/PRO2XY)\
**Post date:** [4 January 2019 11:33 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/136 "2019-01-04T11:33:45Z")

</div>

Tried a quick setup last night, and here are some thoughts...

- With multiple 'Homes', new devices don't seem to get assigned to any home. You have to manually add them I guess. I just removed the 'Home' I wasn't using and unlinked and relinked NORA. Although probably that isn't required.
- Didn't need to unlink twice contrary to what @andrei-tatar mentioned above.
- Scenes don't appear as devices... (duhh... 🙄)
- Scenes _do_ appear in Google Assistant settings under Assistant tab -\> Home Control
- Lag between button press and response: 2 - 3 seconds on external network (using a VPN on phone), ~ 1.5 seconds on home wifi.
- Newly added devices turn up in Google Home automagically after the first setup

Possible bugs(?):

- If I set a light on in Home app, and then turn it off through Node-RED, it doesn't turn off in Home app unless I refresh the view by going onto some other device.
- If the brightness of a light is changed in Node-RED, it will change the actual device brightness, but Home app doesn't reflect the changed brightness even after turning light on/off couple of times in the app.

My Raspberry Pi RAM usage seems to hover around 80MB and I can't see much (if any) difference with (6) NORA nodes installed and running vs. previously.  
I am monitoring the RAM usage with `free | grep Mem | awk '{print $3/1024}'` I am not entirely sure if the `Used` field is the one I am supposed to monitor.

---

<div class="post-metadata">

**Author:** ![tamirtw](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/tamirtw/32/4957_2.png) [@tamirtw](https://discourse.nodered.org/u/tamirtw)\
**Post date:** [5 January 2019 15:48 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/138 "2019-01-05T15:48:31Z")

</div>

@andrei-tatar Can't PM you yet.  
It would be great if you could add me to the test group for NORA  
Seems very cool, looking forward to tinker with it

email: [tamirtw@gmail.com](mailto:tamirtw@gmail.com)

---

<div class="post-metadata">

**Author:** ![rgerrans](https://avatars.discourse-cdn.com/v4/letter/r/2bfe46/32.png) [@rgerrans](https://discourse.nodered.org/u/rgerrans)\
**Post date:** [5 January 2019 18:18 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/139 "2019-01-05T18:18:13Z")

</div>

> [@andrei-tatar](#):
>
> My node-red instance uses about 8% of the memory on a RPI3 (10 nora nodes). Are you using the default systemd service to launch node-red? That one uses `NODE_OPTIONS=--max_old_space_size=256` so it should trigger the GC around that limit.

Mine start's out in th 7% range but four days in I'm setting at 31% and the other day (didn't look at the uptime) I was at 85% so definitely looks like a memory leak some place. I unfortunately made a bunch of changes at the same time (added NORA [34 nodes] and Cast nodes) and moved from a root-based to a user based install. I use PM2 to run Node-Red since it supposedly improves performance. I haven't had these issues in the past but will give it a try adding the max old space option to the runtime and see if that helps.

> [@PRO2XY](#):
>
> My Raspberry Pi RAM usage seems to hover around 80MB and I can't see much (if any) difference with (6) NORA nodes installed and running vs. previously.  
> I am monitoring the RAM usage with `free | grep Mem | awk '{print $3/1024}'` I am not entirely sure if the `Used` field is the one I am supposed to monitor.

Thanks. `htop` is a pretty useful tool for monitoring usage.

---

<div class="post-metadata">

**Author:** ![gertst](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gertst/32/5159_2.png) [@gertst](https://discourse.nodered.org/u/gertst)\
**Post date:** [5 January 2019 21:42 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/140 "2019-01-05T21:42:09Z")

</div>

Hi Andrei,  
I would like to use this wonderful integration as well 😉  
Can you PM me as well?

thanks!  
Gert

---

<div class="post-metadata">

**Author:** ![PRO2XY](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/pro2xy/32/4885_2.png) [@PRO2XY](https://discourse.nodered.org/u/PRO2XY)\
**Post date:** [6 January 2019 15:34 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/141 "2019-01-06T15:34:21Z")

</div>

> [@rgerrans](#):
>
> Mine start's out in th 7% range but four days in I'm setting at 31% and the other day (didn't look at the uptime) I was at 85% so definitely looks like a memory leak some place.

My RPi RAM usage is still solid around 80MB (18% used by NR), two days after installing and running NORA, so there doesn't seem to be any memory leak here. Although I am using only light and switch nodes.

> [@rgerrans](#):
>
> Thanks. `htop` is a pretty useful tool for monitoring usage.

Thanks! Never knew it was so configurable! 😄

NoRa is running like a breeze! Now I just wish I could change the wake word to something other than 'Hey Google!' 😒

---

<div class="post-metadata">

**Author:** ![frogale](https://avatars.discourse-cdn.com/v4/letter/f/898d66/32.png) [@frogale](https://discourse.nodered.org/u/frogale)\
**Post date:** [6 January 2019 21:13 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/142 "2019-01-06T21:13:16Z")

</div>

It looks awsome.. sending my gmail account by PM.. thanks!

**Edit:** it is not possible to send PM right after registration.. So can you add my account **[ales.prihoda@gmail.com](mailto:ales.prihoda@gmail.com)** to testing user list? Thanks'

---

<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:** [7 January 2019 20:21 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/143 "2019-01-07T20:21:39Z")

</div>

Just published 0.0.20 with support for thermostat node.

---

<div class="post-metadata">

**Author:** ![trueevol](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/trueevol/32/7750_2.png) [@trueevol](https://discourse.nodered.org/u/trueevol)\
**Post date:** [8 January 2019 17:10 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/144 "2019-01-08T17:10:16Z")

</div>

Hi @andrei-tatar I am really keen to test out NORA if you could kindly PM me that would be wonderfull.

Cheers

---

<div class="post-metadata">

**Author:** ![dandcj](https://avatars.discourse-cdn.com/v4/letter/d/e19adc/32.png) [@dandcj](https://discourse.nodered.org/u/dandcj)\
**Post date:** [9 January 2019 01:09 UTC](https://discourse.nodered.org/t/node-red-google-home-integration/4829/145 "2019-01-09T01:09:15Z")

</div>

Hello @andrei-tatar, I'm stated couple moths ago a home automation project, today I already use IFTTT and node-red. But i looking for a new and easier solution to integrate google home.

I would like to test NORA, can you send me a PM, there is no Message Icon in you profile.

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

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