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

parenthesis in graphic block programming,


Gaaroriep

Question

Hello all!

 

Is there a way to put parenthesis in the condition of a scene? 

I want different condition with OR and AND statement to trigger an action. In this scene,  i want the first block to trigger an action, or the combination of the other condition. How can i do it??

 

Thank you

Please login or register to see this image.

 

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

Basically if you choose the condition in line it will be considered as they were in the same parenthesis, if the condition below it will be treated as another one. Like in the example below:

 

Please login or register to see this attachment.

Link to comment
Share on other sites

  • 0

Hello

 

It is not very clear for me. I would like to create the following scene :

 

(timer day of week at 21:00 OR timer day of week at 22:30) AND Doors1 is closed AND Doors2 is closed AND temp < 19 THEN heating = ON

 

In the attached file, parenthesis are created for the AND whereas I need them for the OR condition

 

I think the scene will be run each day at 21:00 regardless the status of the door !!

 

How can I create the OR condition between parenthesis ?

 

Thanks

 

 

Please login or register to see this attachment.

Link to comment
Share on other sites

  • 0

I think what

Please login or register to see this link.

means is you should insert an or function on the plus-sign right from the first red-time-block.

Then add the second red-time-block on the plus which appears on the right of the or function.

 

Basically one line always ends with a plus sign.

 

for example:

time-block or time-block +

and +

(block and block and block and block +)

then

block +

Link to comment
Share on other sites

  • 0

Thanks for your reply.

This want I understood. If that's true, that means parenthesis are not mandatory.

Because when I follow this procedure, none parenthesis is created for my first OR condition.

I will try again in a new scene and will informe you

Thanks

Link to comment
Share on other sites

  • 0

Exactly... There are many scenes I converted in LUA to add right parenthesis. Blocks were intented to be userfriendly and fast but we must use LUA only because of parenthesis !!!

Link to comment
Share on other sites

  • 0

Ok that's clear for me now.... after many tests

Please login or register to see this image.

/emoticons/default_icon_wink.gif" alt=";-)" /> I understood the way it works after converting blocks scenes in LUA...

 

But it's too confusing parenthesis are not displayed in block scene whereas they exist depending of the way we add condition...

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