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

Is there a LUA scene editor for testing?


Question

Posted

Hey,

 

i was asking me if there is a lua test editor i can use to test my scenes directly?

 

So for example i open the editor and create some id's for lamps.

 

Now i want to write my code for it and the light fire local on my computer in the editor.

 

I hope you understand what i am searching for?

 

Greetings,

Chris

 

9 answers to this question

Recommended Posts

  • 0
Posted

Hey,

 

i was asking me if there is a lua test editor i can use to test my scenes directly?

 

So for example i open the editor and create some id's for lamps.

 

Now i want to write my code for it and the light fire local on my computer in the editor.

 

I hope you understand what i am searching for?

 

Greetings,

Chris

Why you cannot use directly on HC2... it's still on your computer !? Create a test scene (not activated) and try to run what ever you need.

By the way I personally using VD test button for my trials.

You need to understand that not the code executes the light control, but HC2 via Z-Wave... so the code must be executed on HC2.

  • 0
  • Inquirer
  • Posted

    Why you cannot use directly on HC2... it's still on your computer !? Create a test scene (not activated) and try to run what ever you need.

    By the way I personally using VD test button for my trials.

    You need to understand that not the code executes the light control, but HC2 via Z-Wave... so the code must be executed on HC2.

     

    You are right with that but i am not always @ home and can access the box so i would love to be able to write and test scripts then.

    • 0
    Posted

    You are right with that but i am not always @ home and can access the box so i would love to be able to write and test scripts then.

    First of all you can access via home.fibaro.com from any place with network connection.

    Or if you know your public IP address (like having fix IP from your provider) you can connect directly to the box.

    That's what I'm doing during boring conference calls at work.

     

    Another big issue that native LUA doesn't support fibaro functions.. like fibaro:call() and etc.

    • 0
  • Inquirer
  • Posted

    First of all you can access via home.fibaro.com from any place with network connection.

    Or if you know your public IP address (like having fix IP from your provider) you can connect directly to the box.

    That's what I'm doing during boring conference calls at work.

     

    Another big issue that native LUA doesn't support fibaro functions.. like fibaro:call() and etc.

     

    Oh nice okay i will try that out sorry new to this all just try to understand the rest api now

    Please login or register to see this image.

    /emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

    • 0
    Posted

    Have you used notepad++? you can at least see if some of your syntax is correct whilst typing your scenes.

    • 0
    Posted

    You can use LUA online for some code testing... but as I mentioned before no support for fibaro functions.

    Please login or register to see this link.

    • 0
    Posted

    I thought someone shared a text editor which support LUA and Fibaro functions which works on Windows?

     

    Please login or register to see this link.

    • 0
    Posted

    I use "ZeroBrane" to run lua on OS X. It's multi-platform.

    Please login or register to see this link.

    It's fun to play with tables and functions and all the lua goodies.

    If you want to use "fibaro" functions, you'll have to write an "emulator". A bit like a flight simulator, but with fibaro:sleep() and your devices' behavior and all the stuff. That's what I am doing. I have no code to share (yet), mainly because it emulates MY house, not YOUR house.

    • 0
    Posted

    I use "ZeroBrane" to run lua on OS X. It's multi-platform.

    Please login or register to see this link.

    It's fun to play with tables and functions and all the lua goodies.If you want to use "fibaro" functions, you'll have to write an "emulator". A bit like a flight simulator, but with fibaro:sleep() and your devices' behavior and all the stuff. That's what I am doing. I have no code to share (yet), mainly because it emulates MY house, not YOUR house.

    I have just recently downloaded and trying out ZeroBrane. Glad to hear you are using it too as I take it that I am starting down the right track. Still a newbie to LUA scripting and plenty to learn from gurus like u.

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