Jump to content
Gen2 Devices: FW Update Required / Gen2 Geräte: FW-Update erforderlich ×

Scripts not working correctly: missing output in logs


xnd

Recommended Posts

  

sorry for duplicate post, I just found this section fits better this scripting issue.

Feel free to delete my previous post here under: Home >  Devices     > Shelly Plus (Gen2) devices    > Shelly Plus Plug S :

 

With latest firmware:

"fw_id": "20240425-141453/1.3.0-ga3fdd3d",
"ver": "1.3.0",

Diagnostic data included below.

See:

GbN3ftg.png

 

Also with such version of the code:

  • print('start');
    
    function main() {
      var i = 0;
      while (i < 12) {
        i = i + 1;
        console.log(i);
      }
    
      print('end');
    }
    
    Timer.set(2000, false, main);

output:

 

dpdheP5.png

 

Also reproducible on other devices (Shelly Plus 1PM, Shelly Pro 4PM)

 

-----

 

also the same issue was reported earlier:

 

 

 

diagnostics-shelly-plusplugs-data.txt diagnostics-shelly-plusplugs-debug-log.txt

Edited by xnd
Link to comment
Share on other sites

Posted (edited)

... also reproducible in latest stable fw:

20240425-141825/1.3.0-ga3fdd3d

on all my devices: Plus Plug S, Pro 3EM, Pro 4PM

Edited by xnd
Link to comment
Share on other sites

Posted (edited)

also reproducible in firmware 1.3.1 on my following devices:

- Shelly Plus 1PM:

20240430-105751/1.3.1-gd8534ee

- Shelly Pro 3EM:

20240430-105803/1.3.1-gd8534ee

 

Edited by xnd
Link to comment
Share on other sites

To be honest, it is not true that it is an known issue IMHO. As I replied on Facebook, the issue is new (I upgraded last week when testing the script unfortunately), I didn't notice before. Before all prints came out. Now only the first few prints and the last few come out. There should at least be an option to flush your prints (as in wait for them, not throw them to /dev/null ), otherwise it's quite useless.

But, as stated, it is an introduced bug, and I assume it should be fixable.

Link to comment
Share on other sites

  • 3 weeks later...

I have the same problem with Plus1PM und Plus2PM.

It is not possible to test anything, because it is logging absolutely nothing. A I do not know the names of the events, I can not continue without Log-Output...

Plus1PM 20240430-105751/1.3.1-gd8534ee   (here it worked for a short time, I think I made an FW-Update than...)
Plus2PM 20240522-112837/1.3.2-g34c651b

I just started programming shelly´s - but it ended very soon 😞

Link to comment
Share on other sites

  • Administrators

Do you have auth enabled?

If yes disable authentification and restart your Shelly device. Now you should get debug logs again. 
 

You can reenable auth but after an reboot there won‘t be any debug output. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Erstelle neue...