Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


  • 0

Main loop are still stopping working...


Question

Posted

Hi all

 

I have again scenes with main loop that stop randomly. It was something I had with older 3.x versions, except 3.597 and 3.6 where it appeared to be fixed...

 

But since I migrated to 4.056, I have again this behaviour !!! I just have to save the scene and it restart working properly

 

Does someone noticed this ?

 

Thanks

7 answers to this question

Recommended Posts

  • 0
Posted

Hi Quikdav, please give more detail, example code with what you got problem for reproduce, because i can say that mainloop is working and we both gonna have right, and because we can't reproduce it you gonna wait forever for fix that

  • 0
  • Inquirer
  • Posted

    Thanks for your reply...

     

    Here is the code from the main loop. It is just a device that display the content of a global variable. It was freezed again so I saved the script and it restarted. Same with an other device displaying same type of data. As mentionned, It disappeared in 3.597 and 3.6 and it is the third time I restarted it since my migration to 4.056 (about 1 month)

     

    Please login or register to see this code.

    Thanks

     

    David

     

    • 0
    Posted

    A.Socha I had similar issue. I had main loop in VD which checks one device state, and changes the Icon (representation of garage door). It stops working on 4.056, after I restore backup. I deleted it, create again, and again. Still it happens.

    • 0
    Posted

    I also have the same issue.

    After 24h the main loop stops. If I go to the VD / Advanced and push the save button the mainloop starts again working.

    My HC firmware is 4.056.

    Please login or register to see this code.

    Is it possible, to restart/reset a VD with LUA-Code ?

    • 0
    Posted

    I don't have that problem, possibly because I don't use Net;FHttp in a loop. I don't think there is a way to restart a VD.

    I remember reading this topic, and I think there is some good advice in it:

    Please login or register to see this link.

    It's mainly about using "pcall" and workaround I could summarize as "pushing VD buttons from a scene".

    • 0
    Posted

    Hi Peter!

     

    Thank you for sharing this topic - that sounds really good. (Put it on my list too

    Please login or register to see this image.

    /emoticons/default_icon_wink.gif" alt=";-)" /> )

     

    First I did the main loop without any delay, it hangs after some hours:

    then I did it with 1 minute delay and it worked for one day, now I have a 5 minutes delay and it is still working.

    If it hangs on the 5th day I think there is some kind of 'overflow' in the HC2 ...

    • 0
    Posted

    Please use this code in your looping program:

    Please login or register to see this code.

    With this code my program never stops

    Join the conversation

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

    Guest
    Answer this question...

    ×   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.

    ×
    ×
    • Create New...