windkh / node-red-contrib-shelly

Shelly control nodes for node red.
MIT License
34 stars 21 forks source link

Gen2 device stuck on "Uploading script" #125

Closed hollenal closed 1 year ago

hollenal commented 1 year ago

I have a Shelly 2 Plus PM that I wanted to include in a flow using Callback mode. However, after setting up the shelly-gen2-server and deploying the change, the node keeps saying "Uploading script" and no script is actually being uploaded to the device. No password protection, all devices in the same LAN subnet.

Any idea what I might be doing wrong?

image

image

windkh commented 1 year ago

If this is a device that sleeps, like a shelly smoke or button, then wake it up. The node will retry this as long as the node shows up. If not then we should debug it together

arvidcarlander commented 1 year ago

I don't think the Shelly 2 plus PM has a sleep mode (or a battery).

windkh commented 1 year ago

Yes indeed,... but if you try polling mode it works, yes?

hollenal commented 1 year ago

Yes indeed,... but if you try polling mode it works, yes?

Correct, in polling mode it works ok.

windkh commented 1 year ago

On what device do you run node-red? Is it possible to attach a debugger there?

hollenal commented 1 year ago

I’m running it on a raspi. I have other nodes that are accepting incoming connections (http in) on that same instance of node red.

windkh commented 1 year ago

You could try the following: in 99-shelly.js somewhere at line 1892: please uncomment the following lines by removing the leading //

// node.error("Uploading script failed " + error); // node.status({ fill: "red", shape: "ring", text: "Uploading script failed "});

And then let me know if an error is printed

hollenal commented 1 year ago

Yes, I get the following:

image

windkh commented 1 year ago

@hollenal that is strange, should we organize a teams meeting where you can show me the problem?

hollenal commented 1 year ago

Yes, let's do that. I'll contact you via mail.

windkh commented 1 year ago

What firmware version do you use? I am asking because further problems are reported with the latest update.

hollenal commented 1 year ago

It is indeed the latest version

[cid:f829ead7-6442-4247-85a8-e2afca659fc2]


From: Karl-Heinz Wind @.> Sent: 03 October 2023 14:43 To: windkh/node-red-contrib-shelly @.> Cc: Alain Hollenthoner @.>; Mention @.> Subject: Re: [windkh/node-red-contrib-shelly] Gen2 device stuck on "Uploading script" (Issue #125)

What firmware version do you use? I am asking because further problems are reported with the latest update.

— Reply to this email directly, view it on GitHubhttps://github.com/windkh/node-red-contrib-shelly/issues/125#issuecomment-1744891550, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASHNE5CZ2Q7EUQAN2YQLLBLX5QB7TAVCNFSM6AAAAAA47YK532VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONBUHA4TCNJVGA. You are receiving this because you were mentioned.Message ID: @.***>

windkh commented 1 year ago

I close this issue as duplicate: please follow #128