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

function descriptions


Guest kallecux

Question

Guest kallecux
Posted

Hello!

Sorry, but I'm looking for a complete LUA reference to control the Fibaro heat controller (and the other).

 

Usually there is such an overview, so that one does not have to spend much time to program a control of the devices via try and error.

 

Where did fibaro hide this?

 

Please do not say that I can retrieve the functions in the LUA Editor module list - I know that. I am concerned with the description of the functions and their parameters.

 

Thank you!

17 answers to this question

Recommended Posts

  • 0
Posted

Hi @kallecux!

 

Where do you usually find those descriptions?

 

Could you give an example of those descriptions and where are they available?

  • 0
Guest kallecux
  • Inquirer
  • Posted (edited)

    Hi @I.Srodka

     

    as a programmer - and I am, if I want to use LUA in fibaro - you have access to the available language scope.

     

    This is certainly given by the listing of the properties and actions in the module view.

     

    But what I miss is a description of the values returned by the action and the parameters that must be or can be passed when calling the action.

     

    How can I get out how to use LUA to set the thermostat to set a specific temperature?

    Or how can I activate the mode "window open" by LUA?

     

    For this, the desired description would be very useful.

     

    Greetings

    Karl Heinz

    Edited by kallecux
    • 0
    Posted

     

    2 hours ago, kallecux said:

    How can I get out how to use LUA to set the thermostat to set a specific temperature?

     

    strange. you are said what you developer but as I can see you can't use forum search button :)

     

    try to find in forum Heating_Override_v1.3.vfib 

    here you can learn how to set temp 

     

    or just  open http://192.168.1.36/docs/#!/panels (192.168.1.36 - your HC IP)

      • Please login or register to see this link.

         

        Please login or register to see this link.

        • Please login or register to see this link.

      • Please login or register to see this link.

         

        Please login or register to see this link.

        • Please login or register to see this link.

      • Please login or register to see this link.

         

        Please login or register to see this link.

        • Please login or register to see this link.

      • Please login or register to see this link.

         

        Please login or register to see this link.

        • Please login or register to see this link.

      • Please login or register to see this link.

         

        Please login or register to see this link.

        • Please login or register to see this link.

     

     

    easy? Yep!

    • 0
    Guest kallecux
  • Inquirer
  • Posted

    Hi @10der,


    Thanks for the tip, but that's the RestAPI, as well as I read. Tell me I'm going the wrong way.

     

    I thought it was enough to access the devices via LUA. So i ask for the description of these properties and functions and their parameters :

    Please login or register to see this attachment.

    • 0
    Posted

    so, you have a big issue with LUA calling official FIBARO REST API? :) lol.

     

    local response, status = api.get("/blabla")

    local response, status = api.post("/blabla", {json})

    local response, status = api.put("/blabla", {json})

    ?

     

     

     

    PS: after pic "investigation". :)

    I never used these params... interesting... 

    • 0
    Guest kallecux
  • Inquirer
  • Posted

    .... then obviously I did not understand the concept of fibaro.

     

    I assume that all commands to be sent to the devices will run via LUA commands.

     

    Such as by

    fibaro: call (197, "setTargetLevel", "15")

     

    Why should I realize this via API?

     

    I have no problem with that, but why is there the documentation of the available commands if I can not figure out exactly what the exact syntax is.

     

    What does Fibaro say?

    Call via LUA?
    or use of the API?

     

    If via LUA, where can I find the necessary documentation?

    • 0
    Posted
    2 minutes ago, kallecux said:

    fibaro: call (197, "setTargetLevel", "15")

    cool!

    It's good to know

     

     

    • 0
    Guest kallecux
  • Inquirer
  • Posted


    You make jokes - right?

    • 0
    Posted (edited)
    16 minutes ago, 10der said:

    I never used these params... interesting... 

     

    2 minutes ago, kallecux said:


    You make jokes - right?

     

    Sir, I  was never see these params. I always use _only_ Rest API for this. 

    Thank you again!

    Edited by 10der
    • 0
    Guest kallecux
  • Inquirer
  • Posted (edited)


    With pleasure!
    Look in the LUA Editor on the module list and then on the appropriate module, so you can determine the properties and actions.

     

    But there are still my open questions.........

    Edited by kallecux
    • 0
    Posted
    1 minute ago, kallecux said:

    so you can determine the properties and actions.

    without description like "You're so smart, you figure it out" :D

    • 0
    Guest kallecux
  • Inquirer
  • Posted

    Dear employees of FIBARO - what do you say?
     

    • 0
    Posted

    If I am right the Fibaro-LUA-functions are using the API intern.

    • Thanks 1
    • 0
    Posted
    5 hours ago, Alex said:

    If I am right the Fibaro-LUA-functions are using the API intern.

     

    Yes, for the most part.  FWIW:  fibaro:call(197, "setTargetLevel", "15") is converted to http://<HC IP Address>/api/callAction?deviceID=197&name=setTargetLevel&arg1=15

     

    @kallecux  You'll find that documentation is not fully complete in many areas.  That's why we've got this forum ;-).  Make the most of it.

     

    However, take a look at this link: 

    Please login or register to see this link.

     

     

    • 0
    Guest kallecux
  • Inquirer
  • Posted

    Yes, you are right, we have the forum for that.

     

    But I think that if I spend a few hundred Euros, I will get full documentation. Time is money :-)

     

    Your link brings me close to my desired answers. I am also afraid that it is not complete ........

     

    Thank you for your help.

    Karl Heinz

     

    P.S: Why does not a fibaro admin in this discussion, especially since one of the beginning was briefly involved in this discussion ....?

    • 0
    Posted

    Make an account on the fibaro developer page (free) 

    Please login or register to see this link.

     and you'll see the available documentation for the API ('Rest API') as well as the LUA functions (LUA API). Just be aware that this documentation also has some gaps, but is pretty good.

    Please login or register to see this attachment.

    Hope this helps.

     

    Rene.

    • Like 1
    • 0
    Posted

    @kallecux as per @ReneNL

    Please login or register to see this link.

    I found to be a good and useful resource.

     

    Cheers,

    al.

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