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

Fibaro FGR221 Roller Shutter Calibration in Scene


Question

Posted
Hi all,
Fairly new to Lua so maybe a stupid question but I couldn't find it anywhere on the forum.
 
 
Is there a way to calibrate FGRM-222 from Lua?  (FGRM-222 and not FGR-221 as stated in topic 

Please login or register to see this image.

/emoticons/default_icon_redface.gif" alt=":oops:" /> )
Or how to set a parameter (in this case 29) to 1 in Lua?
 
 
I'm using FGRM-222 to control mixing valves for the central heating
and since there is lots of small movements up and down
and motors take 1 or 2 minutes to fully open or close
the things get out of sync after few days.
 
So I want to run a script in the middle of the night to recalibrate all mixing velves.
(3 mixing valves 2min, 1 mixing valve 1min, and 2 3pot valves)
 
Many thanks
Edo

4 answers to this question

Recommended Posts

  • 0
  • Inquirer
  • Posted

    Figured it out with VD.

    {"id":512,"properties":{"parameters":[{"id":29,"lastSetValue":0,"size":1,"value":1}]}}

    • 0
    Posted

    Could you maybe share a sample lua line to trigger calibration of roller shutter v2? My 13 modules get messed almost weekly and manual calibration is pain in the ass.

     

    Thanks in advance

    • 0
  • Inquirer
  • Posted

    Sure.

     

    I have only 5. So I created 5 button Virtual Device.

     

    Button 1 - 5

    Please login or register to see this code.

    Create 13 buttons (or one could do it with a loop), just change "id":511, to your roller shutter v2 id.

    You can use LUA script to press the buttons at requested time.

     

    Edo

    • Like 1
    • 0
    Posted

    Great! Thanks a lot! I have now one button VD to calibrate all roller shutters at once

    Please login or register to see this image.

    /emoticons/default_icon_smile.gif" alt=":-)" /> And hopefully will be able to trigger it from scheduler weekly or similar.

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