# Troubleshooting problems with node-red-contrib-google-smarthome

**URL:** <https://discourse.nodered.org/t/troubleshooting-problems-with-node-red-contrib-google-smarthome/50556>\
**Category:** General\
**Created:** [2 September 2021 21:55 UTC](https://discourse.nodered.org/t/troubleshooting-problems-with-node-red-contrib-google-smarthome/50556 "2021-09-02T21:55:58Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [2 September 2021 21:55 UTC](https://discourse.nodered.org/t/troubleshooting-problems-with-node-red-contrib-google-smarthome/50556/1 "2021-09-02T21:55:58Z")

</div>

Hi folks,

I had hoped to have the [node-red-contrib-google-smarthome](https://flows.nodered.org/node/node-red-contrib-google-smarthome) up and running during my holidays. But in about 10 minutes I'm off to bed, and then my holidays are over and out. So mission failed 🙄

In a previous [discussion](https://discourse.nodered.org/t/stuck-with-port-forwarding-for-node-red-contrib-google-smarthome/50485/23) I succeeded in making port 3001 public available. I had hoped that things would go smoother now. But as soon as I enter a _"Talk to my xxxApp"_ in the Actions Console Similator, things go immediately horrible wrong again:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/f/7fc0e477842c1a583e54cbb5f509e9cbfdff816d.png)

Since I had to enter a large amount of settings to get to this point, I have no clue at all what could be wrong...

It would be nice if I had a _ **series of checks to test every individual step in this process** _. Like e.g. the [reqbin.com](http://reqbin.com) check in the previous discussion was very useful to pinpoint where the problem was located...

Thanks !!!!  
Bart

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [2 September 2021 22:12 UTC](https://discourse.nodered.org/t/troubleshooting-problems-with-node-red-contrib-google-smarthome/50556/2 "2021-09-02T22:12:54Z")

</div>

BTW I have activated the logging in the config node. But I only get logs (via `node-red-log`) for the `https://<my_wan_ip>:3001/check`, but _ **no** _ extra log lines when I do the test in the simulator:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/e/9ed6e8405b4aee78499f12a478285ac1ebfcb3c4.png)

So not sure if the simulator has send anything to my service that is listening to port 3001 ...

---

<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:** [3 September 2021 07:39 UTC](https://discourse.nodered.org/t/troubleshooting-problems-with-node-red-contrib-google-smarthome/50556/3 "2021-09-03T07:39:14Z")

</div>

Have you tried using Google assistant instead of the simulator, as the error message suggests.

I'm away from home until Saturday evening, but when I get back, we can compare setups/tests/results if that helps.

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [3 September 2021 09:59 UTC](https://discourse.nodered.org/t/troubleshooting-problems-with-node-red-contrib-google-smarthome/50556/4 "2021-09-03T09:59:50Z")

</div>

> [@Paul-Reed](#):
>
> Have you tried using Google assistant instead of the simulator

Thanks!!! Will try that tonight.  
That is indeed a good end-to-end test. But if you (or anybody else) has ideas to do intermediate tests, that would be nice: e.g. check my token or whatever... That would allow me to find more easily where I did something wrong.

> [@Paul-Reed](#):
>
> I'm away from home until Saturday evening, but when I get back, we can compare setups/tests/results if that helps.

Nothing urgent. It is my wife's birthday tomorrow so no Node-RED for then ...

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [3 September 2021 15:09 UTC](https://discourse.nodered.org/t/troubleshooting-problems-with-node-red-contrib-google-smarthome/50556/5 "2021-09-03T15:09:44Z")

</div>

Paul,  
It seems that there is _ **Google Cloud Logging** _, where the action logs are stored. Those logs can be viewed via the [Google Cloud Console](https://console.cloud.google.com/logs/), under the Log Explorer menu item. After specifying the correct time window, I can see the logs of that moment:

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/0/e0c069031b80bf457e09df1eceeb66910b3f71d8.png)

A quick view shows _ **"SYNC: Request ID 18364422339424854821 failed with code: OPEN\_AUTH\_FAILURE"** _, so I assume it will be related to OAuth2...  
Will need to have a look at those logs in more detail during the next days.  
Hopefully there are some understandable errors that give me the golden tip ...

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [3 September 2021 20:39 UTC](https://discourse.nodered.org/t/troubleshooting-problems-with-node-red-contrib-google-smarthome/50556/6 "2021-09-03T20:39:09Z")

</div>

> [@Paul-Reed](#):
>
> Have you tried using Google assistant instead of the simulator

Paul,  
using the Google assistant app it immediately worked 🍾 🥂  
Thanks a LOT for helping me!!  
I was so focussed on the technical part, that I didn't read the info text well ...

What I don't really understand: I thought that I had to say first _"Talk to my xxxApp"_.  
However, when I say _"Hey Google, put my christmas tree on"_ that also works ...  
So not sure why that _"Talk to ..."_ is required.

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [3 September 2021 20:47 UTC](https://discourse.nodered.org/t/troubleshooting-problems-with-node-red-contrib-google-smarthome/50556/7 "2021-09-03T20:47:41Z")

</div>

> [@BartButenaers](#):
>
> Hey Google, put my christmas tree on

Did I miss some months? 😃

---

<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:** [3 September 2021 20:51 UTC](https://discourse.nodered.org/t/troubleshooting-problems-with-node-red-contrib-google-smarthome/50556/8 "2021-09-03T20:51:06Z")

</div>

> [@hotNipi](#):
>
> Did I miss some months

It's probably one of Bart's unfinished projects from Christmas 2018 😆😆

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [3 September 2021 20:52 UTC](https://discourse.nodered.org/t/troubleshooting-problems-with-node-red-contrib-google-smarthome/50556/9 "2021-09-03T20:52:04Z")

</div>

I had added a christmas tree node at the time being, but at that moment I couldn't get the google-smarthome running. So my main target was to control that node (kerstboom=christmas tree):

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/b/fb52eff1fbff21cdd0156d146f4d3195fda934e1.png)

Note that the output of this node is _ **not** _ connected to anything, because I have _ **no** _ physical christmas tree available in the living room at the moment 😉

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [3 September 2021 20:53 UTC](https://discourse.nodered.org/t/troubleshooting-problems-with-node-red-contrib-google-smarthome/50556/10 "2021-09-03T20:53:26Z")

</div>

> [@Paul-Reed](#):
>
> Christmas 2018

Nearly correct. It was 2019 to be correct 🕶

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [3 September 2021 21:21 UTC](https://discourse.nodered.org/t/troubleshooting-problems-with-node-red-contrib-google-smarthome/50556/11 "2021-09-03T21:21:48Z")

</div>

You could always create a Christmas tree out of ui-led nodes….

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [3 September 2021 21:25 UTC](https://discourse.nodered.org/t/troubleshooting-problems-with-node-red-contrib-google-smarthome/50556/12 "2021-09-03T21:25:36Z")

</div>

Don't forget my world famous [SVG christmas tree](https://discourse.nodered.org/t/announce-node-red-contrib-ui-svg-pan-zoom-beta/19729)...

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [3 September 2021 21:30 UTC](https://discourse.nodered.org/t/troubleshooting-problems-with-node-red-contrib-google-smarthome/50556/13 "2021-09-03T21:30:39Z")

</div>

(Head slap) how could anyone forget! Now you have a tree to light up!!!

---

<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:** [17 September 2021 21:30 UTC](https://discourse.nodered.org/t/troubleshooting-problems-with-node-red-contrib-google-smarthome/50556/14 "2021-09-17T21:30:54Z")

</div>

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