# Pass a Variable to Nodered from Google Home

**URL:** https://discourse.nodered.org/t/pass-a-variable-to-nodered-from-google-home/19487
**Category:** General
**Created:** [23 December 2019 00:36 UTC](https://discourse.nodered.org/t/pass-a-variable-to-nodered-from-google-home/19487 "2019-12-23T00:36:39Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Raul\_77](https://avatars.discourse-cdn.com/v4/letter/r/3ab097/32.png) [@Raul\_77](https://discourse.nodered.org/u/Raul_77)
#### Post date: [23 December 2019 00:36 UTC](https://discourse.nodered.org/t/pass-a-variable-to-nodered-from-google-home/19487/1 "2019-12-23T00:36:39Z")

</div>

Hey Guys, Is it possible to pass a variable to NodeRed using Google home?  
UseCase:  
I want to be able to say "Hey Google Turn the light off in X min". I currently have a node that is Bed Light, using IFTTT I say "Hey Google Bed Time lights" and it dimms all lights in 5min, the 5min is harcoded, is it possible to trigger a node and pass a value to it?

Thank you,

---

<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: [23 December 2019 16:13 UTC](https://discourse.nodered.org/t/pass-a-variable-to-nodered-from-google-home/19487/2 "2019-12-23T16:13:09Z")

</div>

That would require Google to add a delay or wait function to the lights action, so unfortunately has nothing to do with Node-Red. Using Node-Red-Contrib-NORA you can create scenes in Google and trigger them like you are doing through IFTTT then program the scene in Node-Red with your preset delay allowing you to skip having IFTTT as an extra step.

---

<div class="post-metadata">

### Author: ![Raul\_77](https://avatars.discourse-cdn.com/v4/letter/r/3ab097/32.png) [@Raul\_77](https://discourse.nodered.org/u/Raul_77)
#### Post date: [23 December 2019 18:07 UTC](https://discourse.nodered.org/t/pass-a-variable-to-nodered-from-google-home/19487/3 "2019-12-23T18:07:51Z")

</div>

Not really, if we could pass the value "5" to Nodered, using function node you can pass that as a variable and have it wait X (in this case 5) or whatever.  
I will check NORA, I need a way to leave IFTTT anyway, so thanks for the suggestion.  
If anyone has any idea on how to pass Variable to NodeRed please do share.
