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

Return FGT to heating schedule with Lua


Question

Posted

I have a simple Lua script to turn 2 FGT's in the bedroom to OFF when at least one of the two windows are opened (we sleep with the windows open), using fibaro:call(deviceID, "SetMode","0").

When both windows are closed again, I want the FGT's to return to their schedule (defined in the Heating Panel). 

But when I send fibaro:call(deviceID, "SetMode","1"), the FGT's go back to some value that was set manually long time ago, NOT to the heating schedule they are supposed to follow.

Can anyone tell me how to do that in Lua?

 

Is there a detailed list of all applicable Lua for the FGT?

 

By the way, is it correct that the Heating Panel does not allow to set the FGT to OFF in a scheduled manner?

If you set a period to "no temp", it does not translate to OFF in the FGT.

4 answers to this question

Recommended Posts

  • 0
Posted (edited)

can you send something like 

fibaro:call(deviceID, "setThermostatSetpoint", 1, "24.0");

?

Edited by 10der
  • 0
  • Inquirer
  • Posted

    The idea is not to set a specific temperature, but to return to the temperature that was set in the Heating Panel schedule.

    But I think I have found it just now:   fibaro:call(deviceID, "removeSchedule","255");

     

    Apparently, when you set the FGT manually (or in this case to OFF via Lua), you create "schedule 255" that has priority over all other schedules, for the time period set in the advanced settings ("override schedule - time duration" - with a default of 4h).

    So by deleting schedule 255, the FGT returns to the original Heating Panel schedule.

    • 0
    Posted

     

    Yes, this is undocumented but overrides get indeed stored as a schedule with ID 255, so this is correct:

     

    22 hours ago, marcwau said:

    fibaro:call(deviceID, "removeSchedule","255");

     

    You can also store your own "255" with arbitrary time instead of the default 4 h (configurable by changing a parameter).

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