sinricpro / node-red-contrib-sinric-pro

Sinric Pro - Node Red integration for Alexa, SmarThings and Google Home
https://sinric.pro/
2 stars 0 forks source link

potential malfunction #4

Open EnelAbba opened 10 months ago

EnelAbba commented 10 months ago

Hi, I loaded the sinricpro/node-red-contrib-sinric_pro node into node-red, version 3.1.0, and created a new device on the Sinric Pro web site. I inserted the example uploaded from this page, "request_reply.json" file, into flow1, updating the App Key, App Secret and Device ID values. When I press the "Deploy" button in node-red, everything works fine. However, I noticed that if I press the "Deploy" button of node-red a second time, for example because I added new nodes, the set of three nodes ("Device", "function" and "response") no longer works. Precisely the problem is on the first node, the "Device" node. This node recognizes the message transmitted to Alexa (I am using Echo dot) as the name of the command appears under the node, for example "setPowerState", but it does not send any message outgoing. That is, there is no output to the "function" node. To make everything work again, I am forced to delete the 3 nodes and delete the passwords and device ID entered in the Device node. If I import the example again from the "request_reply.json" file and enter the passwords again, everything works again, only if I press the "Deploy" button only once. I also noticed that if I delete the 3 nodes and insert them taking them from the node bar of node-red, therefore without importing the example file, the "Device" node does not work as it does not send any outgoing message, even though it recognizes the command sent to Alexa (the name of the command appears under the node) Thanks

kakopappa commented 10 months ago

Hi @EnelAbba Thanks for reporting this issue. will get back to you when we have a fix.

kakopappa commented 10 months ago

Hi @EnelAbba

I have fixed your issue in 1.4.1. Please check

https://github.com/sinricpro/node-red-contrib-sinric-pro/assets/7474406/61fa562b-b1d0-4dd0-870b-cceead497f7a

EnelAbba commented 10 months ago

everything works perfectly Thanks