# Node-red-contrib-google-smarthome

**URL:** <https://discourse.nodered.org/t/node-red-contrib-google-smarthome/47408>\
**Category:** General\
**Created:** [20 June 2021 18:40 UTC](https://discourse.nodered.org/t/node-red-contrib-google-smarthome/47408 "2021-06-20T18:40:02Z")\
**Posts on this page:** 11\
**Page:** 1

<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:** [20 June 2021 18:40 UTC](https://discourse.nodered.org/t/node-red-contrib-google-smarthome/47408/1 "2021-06-20T18:40:03Z")

</div>

For information, the [node-red-contrib-google-smarthome](https://flows.nodered.org/node/node-red-contrib-google-smarthome) node is likely to be updated shortly.

Currently, the node credentials are saved in the flow itself (which are exposed if you export a flow), and the change will ensure that the credentials will be in future safely stored in node-RED's `flows_cred.json` encrypted file instead.

**This is likely to be a breaking change** , as when updated, you will need to re-add your credentials again.

I found it useful in preparation for this change, to highlight the `Smarthome Management` node and export it. The result will contain the Client ID, Client Secret, JWT key, etc, which can then be easily pasted back when you have updated.

---

<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:** [24 June 2021 18:20 UTC](https://discourse.nodered.org/t/node-red-contrib-google-smarthome/47408/2 "2021-06-24T18:20:40Z")

</div>

> [@Paul-Reed](#):
>
> is likely to be updated shortly

Hi Paul,  
Do you have insider knowledge, or is it just a feeling?  
I have tried this node a couple of months ago, but unfortunately it didn't work in my setup for some unknown reason ...  
So then I decided to wait for this new version, because it seemed like a major upgrade to me.  
And I hope it provides some extra logging, to simplify the troubleshooting.  
Bart

---

<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:** [24 June 2021 18:44 UTC](https://discourse.nodered.org/t/node-red-contrib-google-smarthome/47408/3 "2021-06-24T18:44:12Z")

</div>

> [@BartButenaers](#):
>
> Do you have insider knowledge, or is it just a feeling?

I'm watching the repo, and trying to keep up to date with it's development.

> <https://github.com/mikejac/node-red-contrib-google-smarthome/pull/155>
>
> Hi,
> with this update, the node uses the credentials mechanism to store the foll…owing info:
> 
> \* loginclientid
> \* emails
> \* username
> \* password
> \* publickey
> \* privatekey
> \* jwtkey
> \* clientid
> \* clientsecret
> 
> This prevents including that information during the export operation.
> 
> Ciao
> Claudio

> [@BartButenaers](#):
>
> I have tried this node a couple of months ago, but unfortunately it didn't work in my setup for some unknown reason ...

Yes, I had to run through the configuration twice in order to get it working, but once I did, it's worked perfectly since, and is used several times a day for different shelly devices.  
I've since made a few amendments to the readme, to try and explain the areas which I found confusing, which have now been merged, so it's definitely worth trying again.

---

<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:** [24 June 2021 18:46 UTC](https://discourse.nodered.org/t/node-red-contrib-google-smarthome/47408/4 "2021-06-24T18:46:45Z")

</div>

> [@Paul-Reed](#):
>
> I've since made a few amendments to the readme, to try and explain the areas which I found confusing, which have now been merged, so it's definitely worth trying again.

Nice to hear that you help others like me, by contributing to their readme 👍

---

<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:** [25 June 2021 08:00 UTC](https://discourse.nodered.org/t/node-red-contrib-google-smarthome/47408/5 "2021-06-25T08:00:36Z")

</div>

v0.1.0 has now been published on npm, with the changes described above.

> **[Release v0.1.0 · mikejac/node-red-contrib-google-smarthome](https://github.com/mikejac/node-red-contrib-google-smarthome/releases/tag/v0.1.0)**
>
> Breaking Change
> Your smarthome credentials are now stored encrypted and are prevented from being accidentally exported. Unfortunately this means you have to re-enter your credentials after the upgr...

---

<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:** [24 August 2021 08:01 UTC](https://discourse.nodered.org/t/node-red-contrib-google-smarthome/47408/6 "2021-08-24T08:01:06Z")

</div>

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

---

<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:** [5 September 2021 09:44 UTC](https://discourse.nodered.org/t/node-red-contrib-google-smarthome/47408/7 "2021-09-05T09:44:30Z")

</div>



---

<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:** [5 September 2021 09:56 UTC](https://discourse.nodered.org/t/node-red-contrib-google-smarthome/47408/8 "2021-09-05T09:56:06Z")

</div>

Hi folks,

I had read the above warning some time ago, so I had made a backup of my credentials. But I hadn't made a backup of some other fields (JWT token, ...).

But seems that the upgrade erases _ **ALL** _ the information in the config screen! So make sure you backup the content of _ **every** _ field in the config screen!

For those - like me - that have forgotten the good advice from our friend @Paul-Reed, _ **I have reinstalled the old version again** _:

```auto
npm install node-red-contrib-google-smarthome@0.0.68

```

By doing that, _ **all data was available again** _ in my config node screen 😍

Note that I hadn't deployed yet, so not sure if it would have worked then also...

Hopefully this tip can help some other folks ...

Now logging of in my belovely Node-RED system, to spend some time with my belovely lady to celebrate her birthday 😉

Bart

---

<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:** [5 September 2021 10:01 UTC](https://discourse.nodered.org/t/node-red-contrib-google-smarthome/47408/9 "2021-09-05T10:01:44Z")

</div>

> [@BartButenaers](#):
>
> But seems that the upgrade erases _ **ALL** _ the information in the config screen!

Yes, but if you export it first, the export file will contain all of the necessary information that you need to restore all of the necessary credentials.

> [@Paul-Reed](#):
>
> I found it useful in preparation for this change, to highlight the `Smarthome Management` node and export it. The result will contain the Client ID, Client Secret, JWT key, etc,

---

<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:** [5 September 2021 10:08 UTC](https://discourse.nodered.org/t/node-red-contrib-google-smarthome/47408/10 "2021-09-05T10:08:46Z")

</div>

It is working again. Thanks !!!!!!!!!!!!!!!!!!!!!!!!!

---

<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:** [5 September 2021 10:10 UTC](https://discourse.nodered.org/t/node-red-contrib-google-smarthome/47408/11 "2021-09-05T10:10:19Z")

</div>

They wife just screamed: _ **"Hey Google, get Bart away from Node-RED"** _ 🤣  
I'm afraid we share the same kind of humor...
