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

Lua - Roller Shutter partial close


Question

Posted

Hi, I want to close a shutter to 40% open. Is this the correct code: fibaro:call(deviceID, "setValue", "40")?

7 answers to this question

Recommended Posts

  • 0
Posted

Hello, 

correct is fibaro:call(DeviceID, „setValue“, 40)

the 40 without quotes.

  • Like 1
  • 0
  • Inquirer
  • Posted

    I have tested this (with and without quotes) on a different roller shutter and it works.

    Both shutters have identical settings.

    Any ideas on why one roller shutter works and the other doesn't?

    • 0
    Posted

    Which roller shutter are you using? 

    • 0
    Posted

    Please pay attention that setValue is case sensitive. Setvalue might not work 

    • 0
    Posted

    Just an extension of this.

     

    I have the FIbaro fobkey and I want to have one button for up, down and then stop. The up and down is easy.

     

    But how do I do the stop? What is the LUA command for this? Thanks!!

     

    • 0
  • Inquirer
  • Posted

    fibaro:call(83, "stop");

    To learn basic coding in Lua mode (I am still a newbie to coding - it doesn't come naturally to me) do this:

    When in Lua mode you will see all your rooms on the left.

    Hover over the room of interest and devices will show.

    Hover over device of interest and a full list of commands will show.

    Select the command and this is written into the Lua code box for you.

     

    Please login or register to see this attachment.

    • 0
    Posted
    4 hours ago, Lenny212 said:

    Didnt know that, thats awesome. Thanks!!

     

     

     

     

    4 hours ago, Lenny212 said:

    fibaro:call(83, "stop");

    To learn basic coding in Lua mode (I am still a newbie to coding - it doesn't come naturally to me) do this:

    When in Lua mode you will see all your rooms on the left.

    Hover over the room of interest and devices will show.

    Hover over device of interest and a full list of commands will show.

    Select the command and this is written into the Lua code box for you.

     

    Please login or register to see this attachment.

     

    • Like 1

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