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

Scene to control my venetian blinds


Question

Posted (edited)

Hi, I am completely new to the Fibaro System.

I installed 9 blind shutter to contro my venetian blinds. Unfortunately it doest work the way I want.

 

In case of sunshine would like the lamelles to close to 50% to give a bit of shade. But as long as its sunny , he shouldn't run these scene again.

for the time being he either runs it approx. every 2 minutes or if i program a SCENE ACTIVATION delay its delays for the set up time. but within this period i won't be able to start it manually neither.

 

can anybody help me?

 

here is what i have so far:

Please login or register to see this code.

 
 
i put a time delay which sets the lamells back to 100 after 5 min. Of course i could adjust this, but the question is, would it be possible to tell him to start the scene once and not anymore until another scene changes the status. or t least don't change anything as long as its sunny.
Thanks for your help
Edited by j.nowacki
Please use code tags in the future

3 answers to this question

Recommended Posts

  • 0
Posted

Hi, I am not sure I understand correctly, but why not putting two conditions at beginning: one to check if it is sunny and second one to check if blinds are in desired positions - if so, abort the scene. But once again I am not sure if I understood the problem here. Maybe you can make some sketch of states and transition conditions?

  • 0
  • Inquirer
  • Posted

    Hi, thanks a lot for your reply.

     

    i tried to setup a second condition, like start if its sunny, the blinds are generally down and my lamellas are more that 51% open. (0 would be closed 100% lamellas are open) Somehow the seven won't start with this setting. either the HC2 doesnt know which position the lamellas are or my setup is not correct.

    i tried another set up yesterday.

    The idea was to start the scene just once, so i have choose a scene activation.

    unfortunately it doesn't work neither, the scene starts again and again every 2 minutes 

     

    --[[

    %% properties
    12 value
    10 value
    26 value
    30 value
    34 value
    24 value
    32 value
    28 value
    38 value
    12 sceneActivation
    10 sceneActivation
    26 sceneActivation
    30 sceneActivation
    34 sceneActivation
    24 sceneActivation
    32 sceneActivation
    28 sceneActivation
    38 sceneActivation
    3 WeatherConditionConverted
    %% globals
    Tageszeit
    --]]
     
    local startSource = fibaro:getSourceTrigger();
    if (
     ( fibaro:getGlobalValue("Tageszeit") == "Sunrise"  and  fibaro:getValue(3, "WeatherConditionConverted") == "clear"  and  tonumber(fibaro:getValue(12, "value")) <= 10  and  tonumber(fibaro:getValue(10, "value")) <= 10  and  tonumber(fibaro:getValue(26, "value")) <= 10  and  tonumber(fibaro:getValue(30, "value")) <= 10  and  tonumber(fibaro:getValue(34, "value")) <= 10  and  tonumber(fibaro:getValue(24, "value")) <= 10  and  tonumber(fibaro:getValue(32, "value")) <= 10  and  tonumber(fibaro:getValue(28, "value")) <= 10  and  tonumber(fibaro:getValue(38, "value")) <= 10  and  tonumber(fibaro:getValue(12, "sceneActivation")) <= 1  and  tonumber(fibaro:getValue(10, "sceneActivation")) <= 1  and  tonumber(fibaro:getValue(26, "sceneActivation")) <= 1  and  tonumber(fibaro:getValue(30, "sceneActivation")) <= 1  and  tonumber(fibaro:getValue(34, "sceneActivation")) <= 1  and  tonumber(fibaro:getValue(24, "sceneActivation")) <= 1  and  tonumber(fibaro:getValue(32, "sceneActivation")) <= 1  and  tonumber(fibaro:getValue(28, "sceneActivation")) <= 1  and  tonumber(fibaro:getValue(38, "sceneActivation")) <= 1 )
    or
    startSource["type"] == "other"
    )
    then
    fibaro:call(12, "setValue2", "0");
    fibaro:call(10, "setValue2", "0");
    fibaro:call(26, "setValue2", "0");
    fibaro:call(30, "setValue2", "0");
    fibaro:call(34, "setValue2", "0");
    fibaro:call(24, "setValue2", "0");
    fibaro:call(32, "setValue2", "0");
    fibaro:call(28, "setValue2", "0");
    fibaro:call(38, "setValue2", "0");
    fibaro:call(12, "setValue2", "50");
    fibaro:call(10, "setValue2", "50");
    fibaro:call(26, "setValue2", "50");
    fibaro:call(30, "setValue2", "50");
    fibaro:call(34, "setValue2", "50");
    fibaro:call(24, "setValue2", "50");
    fibaro:call(32, "setValue2", "50");
    fibaro:call(28, "setValue2", "50");
    fibaro:call(38, "setValue2", "50");
      elseif (fibaro:getValue(3, "WeatherConditionConverted")) ~= "clear"
    then 
        fibaro:call(12, "setValue2", "100");
    fibaro:call(10, "setValue2", "100");
    fibaro:call(26, "setValue2", "100");
    fibaro:call(30, "setValue2", "100");
    fibaro:call(34, "setValue2", "100");
    fibaro:call(24, "setValue2", "100");
    fibaro:call(32, "setValue2", "100");
    fibaro:call(28, "setValue2", "100");
    fibaro:call(38, "setValue2", "100");
    end

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