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


Velux windows and eventrunner 4


Recommended Posts

Hi @jgab

 

Happy newyear ☄️??

I have integrated my Velux window with a Velux KLF050

Here is a nice picture 

Please login or register to see this link.

 

I will use the

Please login or register to see this link.

combined with

Please login or register to see this link.

Please login or register to see this image.

/monthly_2021_01/image.png.0aceda4fb95a973ee407ff5399d8da5c.png" />

image.png.19ebc2e7a2483d4be3d27a0cbe6d41df.png

For the 2 - Windows Open for 15min. I still need to solve the actions written with red.

I have 3 timers that need to stay inside the rule, else it will affect the other rules.

I dont see how i can use the trueFor here ?

 

I'm ready to learn ??

 

 

 

Link to comment
Share on other sites

I see the point in splitting up the rules like rule 1 in 2 rules. However if you do it like

rule("matrix:... => Velux_Close:on; wait(00:01); Velux_Close:off")

you keep it in 1 rule, same for the other rules. While a rule waits other rules can run.

 

The problem it can have is if you press the button several times quickly to activate rule 1. It will call Velux_Close:off several times while it is already closed. Is that a problem?

The reason is that the same rule can trigger many  times in parallel.

 

If ok for rule 1 it can still be a problem for rule 2.

What you can do is to disable the rule to run again until it's finished.

 

Ex. rule 1

rule("matrix:... => env.rule.disable();  Velux_Close:on; wait(00:01); Velux_Close:off; env.rule.enable()")

 

Ex. rule 2

rule([[matrix:... => env.rule.disable();  

     Velux_Open:on; wait(00:01); Velux_Open:off;

     wait(00:15);

     Velux_Close:on; wait(00:01); Velux_Close:off;

     env.rule.enable()]])

 

You may not want to use the disable trick for rule 2 because people may press the 2 button again before the 15min time has elapsed and it should restart. It's doable, we can come back to that in another post.

Edited by jgab
Link to comment
Share on other sites

New version for ER4 (fix39) where you just need to do

rule("matrix:... => disable();  Velux_Close:on; wait(00:01); Velux_Close:off; enable()")

Link to comment
Share on other sites

  • Topic Author
  • 4 hours ago, jgab said:

    I see the point in splitting up the rules like rule 1 in 2 rules. However if you do it like

    rule("matrix:... => Velux_Close:on; wait(00:01); Velux_Close:off")

    you keep it in 1 rule, same for the other rules. While a rule waits other rules can run.

     

    The problem it can have is if you press the button several times quickly to activate rule 1. It will call Velux_Close:off several times while it is already closed. Is that a problem?

    The reason is that the same rule can trigger many  times in parallel.

     

    If ok for rule 1 it can still be a problem for rule 2.

    What you can do is to disable the rule to run again until it's finished.

     

    Ex. rule 1

    rule("matrix:... => env.rule.disable();  Velux_Close:on; wait(00:01); Velux_Close:off; env.rule.enable()")

     

    Ex. rule 2

    rule([[matrix:... => env.rule.disable();  

         Velux_Open:on; wait(00:01); Velux_Open:off;

         wait(00:15);

         Velux_Close:on; wait(00:01); Velux_Close:off;

         env.rule.enable()]])

     

    You may not want to use the disable trick for rule 2 because people may press the 2 button again before the 15min time has elapsed and it should restart. It's doable, we can come back to that in another post.

    Thank you Jan

    I will start with this

    Please login or register to see this code.

     

    this will work in 98% of my situations.

    and of cause - it would be interesting to learn the advanced version ... "it's doable, we can come back to that in another post".

    The last rule not testet yet

    Edited by ChristianSogaard
    p
    Link to comment
    Share on other sites

    6 hours ago, ChristianSogaard said:

    Thank you Jan

    I will start with this

     

    this will work in 98% of my situations.

    and of cause - it would be interesting to learn the advanced version ... "it's doable, we can come back to that in another post".

     

    It depends a bit on how you want it to work.

    Given the rule

    Please login or register to see this code.

    while it is doing its 30min wait, what should happen if someone presses the button again?

    Extend the wait?, close directly and open again?

     

    Link to comment
    Share on other sites

  • Topic Author
  • 33 minutes ago, jgab said:

     

    It depends a bit on how you want it to work.

    Given the rule

    Please login or register to see this code.

    while it is doing its 30min wait, what should happen if someone presses the button again?

    Extend the wait?, close directly and open again?

     

    the 15min or 30min air out - the only thing i think make sense is closing the windows before time. I cant really come up with other good scenes.

    If a second close is run after window is closed. nothing happens. It not a toggle function.

    Edited by ChristianSogaard
    P
    Link to comment
    Share on other sites

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Reply to this topic...

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