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 with multiple triggers treats AND as OR


Question

Posted (edited)

Hi.

Please take a look at the attached scene.

 

Why does the 'then = Turn ON' fire when the variable changes?

 

I only want to 'ON' the garagedoor when the button is pressed AND the position is "Åben".

I can recreate this with every thinkable device, variable, etc. All scenes with (If Var1/Device1 and Var2/Device2 Then Device3) will fire when the last device or variable (Var2/Device2) is triggered via another scene.

 

 

Please login or register to see this attachment.

Edited by lurendrejer

18 answers to this question

Recommended Posts

  • 0
Posted

Hi,

 

I think you have the variable as a "releasing variable" and then it will trigger the scene by itself.....

 

Untick   the box at the red arrow (my example only) and save scene

 

I learned this trick today as having the same problem...

 

OK ??

Please login or register to see this attachment.

  • 0
  • Inquirer
  • Posted

    You are my hero! Thank you.

     

     

    Can somebody explain why we have 'or' as and option? And+the mentioned checkmark does exactly the same as 'or'

     

    /From my mobile phone

     

    • 0
  • Inquirer
  • Posted

    This is still not "solved".

    There is still something fishy going on if you have a scene with two triggers. My garage will keep rolling up and down if I initiate the "up" scene once, via the keypress.

    After going up, the variable change ($garage=open) will then trigger the down-scene, in turn triggering the variable ($garage=closed) and so forth.

     

     

    • 0
    Posted

    Hi,

     

    Can you please temporarily turn on the LUA code (not permanent), copy the code and post here.....

    • 0
  • Inquirer
  • Posted

    Sorry, i only have an HCL. 

    No lua.

     

    Anything else i can do?

    The problem/bug os easily replicatable.

     

    • 0
    Posted

    Aaaahh, I see.

     

    Sorry, but my knowledge is not so good in this case, we have to wait for some experts to reply....

     

    Good luck !

    • 0
  • Inquirer
  • Posted

    Thank you anyways :)

    • 0
    Posted
    21 hours ago, lurendrejer said:

    This is still not "solved".

    There is still something fishy going on if you have a scene with two triggers. My garage will keep rolling up and down if I initiate the "up" scene once, via the keypress.

    After going up, the variable change ($garage=open) will then trigger the down-scene, in turn triggering the variable ($garage=closed) and so forth.

     

     

     

    @lurendrejer,

     

    There is nothing strange going on except that you need to understand how scenes and triggers work. You can't trigger scene that is used to control garage door with global variable which value is change with same scene! You just need to remove global variable not to trigger scenes to open and close garage door and they will stop opening and closing all the time.

     

    So, the question is what you want to achieve with this scenes for garage door?

    • 0
  • Inquirer
  • Posted (edited)

    Hi.

     

    Let us forget the variables. I wan't two conditions to be true, before an action is performed.

     

    The reasoning:

    I have a garagedoor, which has one fibaro relay installed which both opens and closes.

    I have a LED light by the front door, which is controlled by a sensor on the garagedoor.

     

    What i want is a button that always closes the door, hence:

    IF Door-button pressed, and garagedoorLED=ON then OPEN/CLOSE garage ELSE NOTHING.

     

    I don't want the garagedoor to react, if it's already closed.

    What happens is: IF any CONDITION = TRUE then OPEN/CLOSE.

     

    I have to control the LED via scenes triggered by the battery-powered sensor. 

     

    The variable was just because is was trying to figure out what the hell happened, and i thought it would be easier to understand for the person reading.

    Edited by lurendrejer
    • 0
  • Inquirer
  • Posted (edited)

    Just tried something completely different.

    IF "Sunrise+20min" 

    AND "Kids night light" DIM = 1%

    Then "Kids night light" = OFF

     

    What happens is: If i dim the lights to 1% (at any time via a scene) it will turn off.

     

    That can't be the way it was ment to behave, can it?

    Edited by lurendrejer
    • 0
    Posted (edited)

    @lurendrejer: try to set the scene to manual and not automatic in the general tab, Then select the button as the trigger in the details tab. This would then only start the scene if the button is pressed.

    Same annoying behavior if the scene is run manually in the scene overview. independently of the IF conditions the THEN is executed.

    Sorry to say with all the other bugs and the daily crashes, the system is getting somewhat useless for me as well. Especially the daily crashes are for me the point for not going further into bugaro and most likely to change over to openhab.

    Edited by kunoch
    • 0
  • Inquirer
  • Posted (edited)

    @kunoch

    Hi, and thank you - I have tried that before, but as far as i can remember the scene just didn't fire. I'll try again later today to doublecheck.

    I've actually been looking at both homeseer and openHAB - both of which would do this sort of thing with ease. I used HS3 as a secondary controller to update firmware on my devices that fibaro wouldn't/couldn't update.

     

    The thing is, these types of scenes did work once, but recreating them on the latest firmwares just doesn't.

     

    I'll be looking at Athom Homey in the near future.

    Edited by lurendrejer
    • 0
  • Inquirer
  • Posted

    Nope, when the scene is manual, it doesn't fire when the button is pressed.

    The thing you mention with fibaro not evaluating IF statements when scenes are run manually was posted about before - I always found it strange.

     

    Thank you your input though..

    • 0
  • Inquirer
  • Posted

    What i'm doing is exactly this (that last picture in the article): 

    Please login or register to see this link.

    And it doesn't work. (AND is treated as OR)

     

     

    • 0
    Posted

    @lurendrejer: yes you are right (sorry), manual does not wait for something from a sensor, only the play within the interface runs it

    • 0
  • Inquirer
  • Posted

    I tried a few things and if i recreate the scenes, from scratch and copy the scenes and change the devices/variables it doesn't work. (It must maintain some info from the copied scene).

    If I recreate every single scene by hand, from scratch - it actually works as intended.

     

    nice fibaro....

    • 0
    Posted

    That copy scene does not work is unfortunately a known issue. I faced the same with scenes, so every scene to be written from scratch :-(

    can take a few hours easily

    • 0
    Posted
    16 hours ago, kunoch said:

    That copy scene does not work is unfortunately a known issue. I faced the same with scenes, so every scene to be written from scratch :-(

    can take a few hours easily

     

    Agreed copy scenes doesnt work

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