Help configuring NORA & Google Assistant (Smart Speaker)

delete the topic values in the inject nodes,. Also you do not have the change node i supplied in that flow it goes after the nora node, and before the http request node.

you do not need the switch node.

Use this flow, replace the function node with the nora node.

[{"id":"fc2d2694.c41828","type":"inject","z":"8d22ae29.7df6d","name":"on","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"http://192.168.1.25:1880/hello/?pin=","payload":"on","payloadType":"str","x":170,"y":3460,"wires":[["93b45a9c.efb158"]]},{"id":"d094cd26.487908","type":"inject","z":"8d22ae29.7df6d","name":"off","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"http://my-ip-address/?pin=","payload":"off","payloadType":"str","x":170,"y":3500,"wires":[["93b45a9c.efb158"]]},{"id":"93b45a9c.efb158","type":"function","z":"8d22ae29.7df6d","name":"This is the nora node","func":"\nreturn msg;","outputs":1,"noerr":0,"initialize":"","finalize":"","x":380,"y":3480,"wires":[["ae7e9c93.65c528"]]},{"id":"ae7e9c93.65c528","type":"change","z":"8d22ae29.7df6d","name":"","rules":[{"t":"set","p":"url","pt":"msg","to":"topic & (payload = \"on\" ? \"On\" : \"Off\")","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":600,"y":3480,"wires":[["bc379276.b55238","42c30ed5.cbc07"]]},{"id":"42c30ed5.cbc07","type":"http request","z":"8d22ae29.7df6d","name":"","method":"GET","ret":"txt","paytoqs":"ignore","url":"","tls":"","persist":false,"proxy":"","authType":"","x":780,"y":3480,"wires":[[]]},{"id":"bc379276.b55238","type":"debug","z":"8d22ae29.7df6d","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":610,"y":3340,"wires":[]}]
1 Like

Ok im[ported your flow, thanks.

It works with changes as shown in screen shots below.

One less node which is good.

Still produces "HPE_INVALID CONSTANT"

Had to simplify change node to get it to work as shown in screen shot.

Somethings come up, I have to go, will return later.

2020-10-28__Wed__14:19:04 2020-10-28__Wed__14:18:40 2020-10-28__Wed__14:18:00 2020-10-28__Wed__14:15:10 2020-10-28__Wed__14:14:49 2020-10-28__Wed__14:14:10

you will only need to add nora nodes, for each switch, the change and http request nodes can be used by multiple nora nodes, as url is set in nora topic.

Will need to see debug of http node, as that ias where error is generated, possibly by the response from the switch.

1 Like

yes,
my feeling earliear was that the response from this ESP8266 switch,
which is written in LUA, and which I am not fimiliar with, is causing this error code.
It is not a significant issue as it does not stop functionallity.
None of the other switches I have are written in LUA and none of them produce this error.

That is a very handy tip to use only one http request node.

Thanks for that, and thanks a lot for all your help.

I have some experience with Lua.

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