andrei-tatar / node-red-contrib-nora

Node Red Google Home integration
74 stars 25 forks source link

Stopped working when updated to v0.0.12 #2

Closed Paul-Reed closed 6 years ago

Paul-Reed commented 6 years ago

Last night the nodes were working fine, but after updating to v0.0.12 tonight, they no longer work. I issue the command to Google Home, and get the correct reply "turning on your table lamp". But the output from the node just returns a blank object.

node

The node looks as though it's connected to the server ok.

result

...and the node-RED log shows;

4 Dec 17:45:14 - [info] nora (CU3KE): connected
4 Dec 17:45:15 - [info] nora: sync 2 devices

There are no errors reported in the log

andrei-tatar commented 6 years ago

@Paul-Reed It might be an issue caused by the newly added on/off payload that weren't there in the old node version. However I did write the code to consider that. Can you please post the configuration of the node? Something like this should work fine: image

Paul-Reed commented 6 years ago

Hi Andrei, yes it was the changes which you introduced regards on/off.

onoff

The payload settings were not visible as I was allowing the brightness control, but disabling that enabled me to add boolean true/false. I also then had to make changes to my flow to pick up the state from the payload, instead of payload.on

All back working now, thanks.