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

Or command inside groupe Devices


Question

Posted

If you have group of sensors like in example the AND command is used as condition and not the OR.

This means all of the sensors have to be breached before the scene will be triggered.

Is Lua the only option to change this to OR?

Please login or register to see this attachment.

5 answers to this question

Recommended Posts

  • 0
Guest jrkalf
Posted

Enver, yes & no.

Yes, if you select "Devices groups" it's an AND situation.

but if you select them individually each time using an OR in between, then it's a OR situation.

The problem is the amount of variables you have in front of the "THEN" command.

The block scenes are limited in the priority on how to treat AND/OR situations.

In lua itself you can place brackets on the right locations to group them together.. like:

Please login or register to see this code.

that's the extra you can do in lua. You can priorities how the AND/OR situations are evaluated. In thise case we had 3 scenario's we had to evaluate...

so if the woonkamer is off, the toilet is empty AND either of the two sensors is set to specification, then it's all normal.

But if that's not the case, but the dog is barking or the cat is eating a mouse, then all is normal as well.

So keep in mind what your priorities are and what items you need grouped together and how they're evaluated.

If you need help, let me know and we'll see how this puppy can turn up in lua code.

  • 0
Posted

I also agree that in block scenes there should be an option if you chose group of devices to select AND or OR. I don't think it's so complicated to do it.

We can use LUA but some times it's much faster to do it in block and this is the only way for the others who are not going to use LUA.

  • 0
Guest jrkalf
Posted
I also agree that in block scenes there should be an option if you chose group of devices to select AND or OR. I don't think it's so complicated to do it.

We can use LUA but some times it's much faster to do it in block and this is the only way for the others who are not going to use LUA.

+1

and now please take the next step that comes with these wise words. Please write a bugzilla report and select your bugreport called "feature"

Please login or register to see this image.

/emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />

let's hope they'll implement this.

  • 0
  • Inquirer
  • Posted

    Lua will work fine.

    Problem is the number of devices.

    There are just to much when you have to add them in your scripts.

    Will grouping of sensors work?

    What we need is a sort of softalarm function.

    I will report the OR command as request..

    • 0
    Posted
    I also agree that in block scenes there should be an option if you chose group of devices to select AND or OR. I don't think it's so complicated to do it.

    We can use LUA but some times it's much faster to do it in block and this is the only way for the others who are not going to use LUA.

    +1

    I have to check if it rains and if one of my roof windows is open and it is not possible with blocks ::::

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