# Control light from Google Home with Node RED

**URL:** <https://discourse.nodered.org/t/control-light-from-google-home-with-node-red/60053>\
**Category:** General\
**Created:** [18 March 2022 20:29 UTC](https://discourse.nodered.org/t/control-light-from-google-home-with-node-red/60053 "2022-03-18T20:29:17Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![DeWoAlliSeged7](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dewoalliseged7/32/58702_2.png) [@DeWoAlliSeged7](https://discourse.nodered.org/u/DeWoAlliSeged7)\
**Post date:** [18 March 2022 20:29 UTC](https://discourse.nodered.org/t/control-light-from-google-home-with-node-red/60053/1 "2022-03-18T20:29:17Z")

</div>

Hello

I am new to the party...  
My question is : Can i control a Light with Node RED which is connected in the Google Home app ?  
I found much stuff about controlling lights in Google Home which are connected in the Node RED, but nothing in the other direction.

Thx in advance

---

<div class="post-metadata">

**Author:** ![Flixm](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/flixm/32/17122_2.png) [@Flixm](https://discourse.nodered.org/u/Flixm)\
**Post date:** [18 March 2022 22:37 UTC](https://discourse.nodered.org/t/control-light-from-google-home-with-node-red/60053/2 "2022-03-18T22:37:32Z")

</div>

Hi,  
Normally you're controlling the light direct and not over google home.  
What kind of light do you want to control?

---

<div class="post-metadata">

**Author:** ![hardillb](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hardillb/32/12373_2.png) [@hardillb](https://discourse.nodered.org/u/hardillb)\
**Post date:** [18 March 2022 22:57 UTC](https://discourse.nodered.org/t/control-light-from-google-home-with-node-red/60053/3 "2022-03-18T22:57:23Z")

</div>

No, Google do not offer any API that would let you do this

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [19 March 2022 10:48 UTC](https://discourse.nodered.org/t/control-light-from-google-home-with-node-red/60053/4 "2022-03-19T10:48:11Z")

</div>

My workaround for Alexa is to use a Pi to speak to a spare Alexa device  
Same approach should work for Google Home setups I'd thought

[https://simplesi.net/control-any-alexa-device-using-node-red/](https://simplesi.net/control-any-alexa-device-using-node-red/)

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [20 March 2022 00:04 UTC](https://discourse.nodered.org/t/control-light-from-google-home-with-node-red/60053/5 "2022-03-20T00:04:41Z")

</div>

Not sure if you know about the 'textCommand' in the Alexa Routine node ?

inject what you would otherwise say as plain text, and Alexa will do it 😉

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [20 March 2022 07:54 UTC](https://discourse.nodered.org/t/control-light-from-google-home-with-node-red/60053/6 "2022-03-20T07:54:51Z")

</div>

I didn't until recently but unfortunately (like all of these Alexa/Google home things) it has issues.

> [@Format for Alexa Applestrudel Custom Text Command?](https://discourse.nodered.org/t/format-for-alexa-applestrudel-custom-text-command/59382/11):
>
> At the moment, I am using an old Pi to convert text to speech and I've wired the output of it to headphones and glued headphone earpiece next to mic input on a cheap Alexa Flex All works well But when I saw about this text command - I thought - I'll be able to send my desired command direct to the Flex slight_smile But (as with everything to do with this sort of thing) it doesn't work for the thing I want it work for i.e If I say tell my pi to say "Alexa, ask cheerlights to change to colo…

Actually getting a Pi to speak a command has been working very reliably

Except if loud background noise when speaking of course 🙂

I Must get round to putting it in the cupboard under the stairs 🙂

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [20 March 2022 16:29 UTC](https://discourse.nodered.org/t/control-light-from-google-home-with-node-red/60053/7 "2022-03-20T16:29:40Z")

</div>

Make a small anechoic chamber with egg boxes 😉

---

<div class="post-metadata">

**Author:** ![DeWoAlliSeged7](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dewoalliseged7/32/58702_2.png) [@DeWoAlliSeged7](https://discourse.nodered.org/u/DeWoAlliSeged7)\
**Post date:** [21 March 2022 07:08 UTC](https://discourse.nodered.org/t/control-light-from-google-home-with-node-red/60053/8 "2022-03-21T07:08:32Z")

</div>

Thx for all ideas.  
I saw a way with smart home i will try it!

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [21 March 2022 08:46 UTC](https://discourse.nodered.org/t/control-light-from-google-home-with-node-red/60053/9 "2022-03-21T08:46:48Z")

</div>

@DeWoAlliSeged7 - Could you explain in a little more detail what you are trying to achieve, giving an example would help.  
Also, what are you using to switch the lighting... A Shelly, sonoff or something else?

I successfully control lighting using either voice commands or by commands issued by node-RED flows, using `node-red-contrib-google-smarthome`

---

<div class="post-metadata">

**Author:** ![DeWoAlliSeged7](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dewoalliseged7/32/58702_2.png) [@DeWoAlliSeged7](https://discourse.nodered.org/u/DeWoAlliSeged7)\
**Post date:** [21 March 2022 10:59 UTC](https://discourse.nodered.org/t/control-light-from-google-home-with-node-red/60053/10 "2022-03-21T10:59:31Z")

</div>

I have a switch named Elesion: [Luminea Home Control Lichtschalter: 4er-Set WLAN-Lichttaster, App, komp. zu Siri, Alexa, Google Assistant (Smart Home Lichtschalter)](https://www.pearl.de/a-NX4676-3103.shtml)

The switch is connected with the Elesion App and with Google Home.

I would like to controle the switch with a node red command.

---

<div class="post-metadata">

**Author:** ![Paul-Reed](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/paul-reed/32/66906_2.png) [@Paul-Reed](https://discourse.nodered.org/u/Paul-Reed)\
**Post date:** [21 March 2022 12:05 UTC](https://discourse.nodered.org/t/control-light-from-google-home-with-node-red/60053/11 "2022-03-21T12:05:48Z")

</div>

There isn't a lot of information in the link, but it does say "Also relevant or suitable for: TUYA", so if it is, you could;

1. disable the google home connection to the switch
2. send/receive switch commands from/to your node-RED flow using `node-red-contrib-tuya-smart-device`
3. install `node-red-contrib-google-smarthome` and also build that into your node-RED flow to handle voice commands

Then you could control the switch by voice using `google smarthome > tuya node > switch` and programmatically by `node-RED > tuya node > switch`

---

<div class="post-metadata">

**Author:** ![DeWoAlliSeged7](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dewoalliseged7/32/58702_2.png) [@DeWoAlliSeged7](https://discourse.nodered.org/u/DeWoAlliSeged7)\
**Post date:** [21 March 2022 20:52 UTC](https://discourse.nodered.org/t/control-light-from-google-home-with-node-red/60053/12 "2022-03-21T20:52:49Z")

</div>

Thx i can connect!  
I have to figure out how to turn it on and off but i connected! THX!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [4 April 2022 20:53 UTC](https://discourse.nodered.org/t/control-light-from-google-home-with-node-red/60053/13 "2022-04-04T20:53:15Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
