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

Delete counter instances with variable. HCL


Question

Posted

Now I think that I know how work the scenes:
When We made a scenes "turn on the light if open the living room door" the scenes start one instances... and the HCL have a counter that never delete (If I mistake please let me know)

So, if never stops de counter, the instances will increment (we have a 10 instances for scenes) that is the reason why the HCL show at error on the notification center, but if we create a variable that delete the counter, can fix?
 

6 answers to this question

Recommended Posts

  • 0
Posted

Once the scene ends the code it dies and the counter goes -1.

However there might be some kind of bug in the code like infinite loop, or a bug, or some big lag thet makes the scene to not finish in reasonable time.

But I hate block programming, so I'm using HC2 with lua... so I'm not sure if this kind of problems (especially the first one) might appear on HCL.

  • 0
  • Inquirer
  • Posted

    Well LUA can be more flexible that HCL.

     

    Now I have a beta firmware (4.504), when one scene start I can see "Running instances:1...2...3..4.......10 (Too many instances) now I hace the message "Number of instances of scene has been reduced due to high memory usage." 

     

    This scene don't have de trouble 

    Please login or register to see this image.

    /monthly_2018_09/image.png.f4cac51ea89e018e1e0ba776854eff34.png" alt="image.png.f4cac51ea89e018e1e0ba776854eff34.png" /> 

     

    But this have counter

     

    Please login or register to see this attachment.

    • 0
    Posted

    I don't understand the ren box values (second). But I can think it's changed to to lua: fibaro:sleep(). This would mean that the scene is hanged for 10 seconds, and that's the time when the next instances can be run and keep counter rise... However it should decrease the counter after this 10 seconds. 

     

    It might be also some kind of bug in 4.504 firmware... I really have no idea at this point. The block programming is not the thing I know how to do.

    • 0
  • Inquirer
  • Posted

    I Downgrade the HCL and have the same problem, too many instances, The block programming is little limited.

    • 0
    Posted

    Have you found any solution?

    • 0
  • Inquirer
  • Posted

    No yet.

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