arduino / node-red-contrib-arduino-iot-cloud

A Node-RED plugin to integrate Arduino IoT Cloud
https://create.arduino.cc/iot
Other
7 stars 10 forks source link

properties node offline #38

Closed hditter closed 1 year ago

hditter commented 1 year ago

I successfully ran a node-red flow reading the upstream values of a sensor in the arduino IoT cloud for many months. Recently, I realised that all arduino nodes were offline. It might coincide with an upgrade of node-red to 3.02 (I am running node-red in Homeassistant). I tried to reproduce the issue by installing node-red on a different raspberry and then adding an arduino property node. I inserted the client id and secret and get the things and property displayed, but when deploying, node-red crashes with the following error message: ArduinoCloudError: Error: Connection refused: Not authorized at MqttClient. (/home/pi/.node-red/node_modules/@arduino/node-red-contrib-arduino-iot-cloud/arduino-iot-client-mqtt/arduino-iot-client-mqtt.js:121:11) Any help will be appreciated.

ilcato commented 1 year ago

@hditter can you test now ?

hditter commented 1 year ago

yes, I could!

On 2 Sep 2022, at 11:52, ilcato @.***> wrote:

@hditter https://github.com/hditter can you test now ?

— Reply to this email directly, view it on GitHub https://github.com/arduino/node-red-contrib-arduino-iot-cloud/issues/38#issuecomment-1235243587, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASUWRVPJOVI5BFIWMZR343TV4G533ANCNFSM6AAAAAAQCCMKWQ. You are receiving this because you were mentioned.

hditter commented 1 year ago

I tested on the node-red instance of Homeassistant, no success. I can’t deploy. Error message is 502 Bad gateway! Gnix I then tested on a stand-alone instance on a dedicated Raspberry and there it works now.

On 2 Sep 2022, at 11:52, ilcato @.***> wrote:

@hditter https://github.com/hditter can you test now ?

— Reply to this email directly, view it on GitHub https://github.com/arduino/node-red-contrib-arduino-iot-cloud/issues/38#issuecomment-1235243587, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASUWRVPJOVI5BFIWMZR343TV4G533ANCNFSM6AAAAAAQCCMKWQ. You are receiving this because you were mentioned.

ilcato commented 1 year ago

So, it's a different error. Can you restart Home Assistant ?

hditter commented 1 year ago

Works again, after restarting the HA instance!

On 2 Sep 2022, at 12:15, ilcato @.***> wrote:

So, it's a different error. Can you restart Home Assistant ?

— Reply to this email directly, view it on GitHub https://github.com/arduino/node-red-contrib-arduino-iot-cloud/issues/38#issuecomment-1235266172, or unsubscribe https://github.com/notifications/unsubscribe-auth/ASUWRVIWE2T3ZRCYFSYYPM3V4HAUBANCNFSM6AAAAAAQCCMKWQ. You are receiving this because you were mentioned.

ilcato commented 1 year ago

ok

hditter commented 1 year ago

It seems to work now! Thanks for the help! I will close the issue then.