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

Manual Override an Auto Scene


Question

Posted

Hello!

I have an auto scene set up already.

It controls my blind or curtain by light intensity. In other words, if sensor gets >10000 lux, then blind closes, and if sensor gets <10000, then blind opens.

Problem is that sometimes my family wants to control it manually by the wall switch or through the fibaro control panels. Right now, if they want to open the blind, it immediate closes by the auto scene. The auto scene override the manual control.

How can I set it up so that Manual control can override auto scenes? maybe just for certain period of time, say 30 minutes?

Thanks so much!

8 answers to this question

Recommended Posts

  • 0
Posted

Take out autostart and use triggers instead?

  • 0
Posted

Hi billykwan88,

You could have a global variable (see

Please login or register to see this link.

) which is set when anyone manually controls the blind. The auto scene you have should check the global variable (see

Please login or register to see this link.

) and if it is set then skip the code to change the position of the blind. As soon as the manual override is turned off (and the global variable is reset) then the auto scene will take over and put the blind where it should be.

Happy Automating

Adam Bewsher

  • 0
  • Inquirer
  • Posted

    Oh wow, thanks a lot, i will try it!! :->

    [ Added: 2014-10-11, 07:39 ]

    Hi Adam,

    I have tried it and I need some help here.

    I understand the logic you are suggesting, but I do not know how to reset a variable after a time period, using graphic block scenes.

    Thanks so much!

    • 0
    Posted
    Oh wow, thanks a lot, i will try it!! :->

    [ Added: 2014-10-11, 07:39 ]

    Hi Adam,

    I have tried it and I need some help here.

    I understand the logic you are suggesting, but I do not know how to reset a variable after a time period, using graphic block scenes.

    Thanks so much!

    Hey "billykwan88" you should create another scene that aborts the scene using LUA and then sets a delay of 1 hour and then restarts the scene. Try this:

    fibaro:killScenes(12);

    fibaro:sleep(3600000);

    fibaro:startScene(12);

    • 0
    Posted

    Hi billykwan88,

    You could try something like the following.

    Create a scene in Lua:

    Please login or register to see this code.

    Change 94 to the ID of your blind.

    By default, the Fibaro Roller Shutter 2 will change the value of its sceneActivation property whenever the button is pressed. This scene is triggered when this happens - this does NOT get triggered if the value property of the blind changes (ie, it changes position). So this scene will only run when the actual switch is pressed.

    It simply sets the global variable "autoBlinds" to the current time.

    Now, in your auto scene, you should check the value of the global variable and test it against the current time - if it is more than 30 minutes since the switch has been used, then you can run the automatic code.

    If your auto scene is in graphics blocks, you will need to convert it to Lua before you can add the following line at the top of the code (under the trigger section):

    Please login or register to see this code.

    And the following line at the very bottom:

    Please login or register to see this code.

    That should work for you.

    Happy automating,

    Adam Bewsher

    • 0
    Guest David R
    Posted

    There is no LUA in HCL so unfortunately you cant access LUA

    • 0
    Posted

    Create a global variable called i.e. "manualoverride" then, when you control the blinds by the remote, the remote also triggers a block scene which changes manualoverride to 1, sleeps for i.e. 30 min and then change the global back to 0.

    Then the auto scene is set up to check the global; if it is 0, then the changing lux value will move the blinds, if it is 1 it just does nothing. Every time the lux changes, the scene triggers, so as soon as the global switches to 0 then they return to the automatic mode.

    This should be possible to do by means of blocks alone with no Lua.

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