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


Question

Posted

Hi

 

Have not dig into it yet. But is there anybody out there that knows what LUA versions there are in the different HC2  firmwares? Asking as I am looking at LUA features that does not exists in to old versions. For example "Variable Number of Arguments" with function calls like function xxx(yy, ...) I had a few other things on my mind as well.

 

Any one?

 

Tnx in advance

 

 

/Peo

10 answers to this question

Recommended Posts

  • 0
Posted

Please login or register to see this code.

 

Should help :)

 

my result is on HC 2 v4.150

 

 

  • 0
Guest spazpeker
Posted

That's weird my HC2 also v4.150

fibaro:debug(_VERSION)

says

[DEBUG] 18:02:30: Lua 5.1

  • 0
  • Inquirer
  • Posted

    It seem I on 4.150 have 5.1

     

    Why do these versions differ between the same HC2 firmware? Fibaro staff????

     

    How can I raise my LUA to your version @PreHack ?

    • 0
    Posted (edited)

    11.2014   I got my HC 2
    04.2015   got it replaced
    05.2017   did a full reset and set it up from zero
    Did every update and often even beta

     

    I'm not sure why I have 5.2, I found out it is only in scenes. I get 5.1 in VD.

     

     

     

    Please login or register to see this code.

     

    Please login or register to see this attachment.

    Please login or register to see this attachment.

    Edited by PreHack
    • 0
  • Inquirer
  • Posted

    Thats makes it even more strange. My HC2 is ordered january 2017, is fully updated to 4.150. And as said, I have LUA version 5.1

     

    A response from Fibaro would be appreciated here...

     

     

    Tnx

    Peo

    • 0
  • Inquirer
  • Posted

    Ahhh. I have not checked in scenes, just VDs. Maybe another sandbox environment

     

    /Peo

    • 0
    Posted

    In VD's it gives      5.1

    In scenes it gives 5.2

    Running on FW 4.150

     

    • 0
    Posted

    Seems to be right, in a scene the goto statement works, but in a VD I get an error :(

    • 0
    Posted

    Hi,

     

    Lua engine is not the same for scenes and VD... Don't ask me why, Fibaro mysteries :>

    • 0
    Posted
    On 12/6/2017 at 12:13 AM, Bodyart said:

    In VD's it gives      5.1

    In scenes it gives 5.2

    Running on FW 4.150

     

     

    Same versions here on 4.140

     

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