razorRun / node-red-contrib-smartlifeair

Allow you to integrate any[almost] tuya, smart life supported devices to node-red. However, you will have to enrol these devices via Smart life air mobile app. https://www.smartlife.nz/smartlife-labs
https://roshan.digital/
13 stars 1 forks source link

Authentication error after Node-RED restart #19

Closed cymplecy closed 3 years ago

cymplecy commented 3 years ago

Yesterday, I restarted my Node-RED install and now I'm getting image

cymplecy commented 3 years ago

Having created another account and that not working then switching back to original account, turning around 3 times, switching everything off and on again 4 times and sacrificing a small sheep - its back working

razorRun commented 3 years ago

I noticed this issue few days back. I think this happens when nod red boot up before node code talks to the internet. Till I add a retry mechanism, please add a node red service restart after 2-3 mins on @reboot of the device.

On Sat, 5 Dec 2020 at 10:16 PM, Simon Walters notifications@github.com wrote:

Having created another account and that not working then switching back to original account, turning around 3 times, switchign everything off and on again 4 times and sacrificing a small sheep - its back working

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/razorRun/node-red-contrib-smartlifeair/issues/19#issuecomment-739150849, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFB72ECIIUPTSYOC3RFXVNLSTH26PANCNFSM4UOMWHHA .

razorRun commented 3 years ago

@cymplecy I just added an Authentication retry method, Can you please test this and let me know how it goes?