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

two scenes with same trigger -> bug of feature?


naboo
 Share

Question

I'm trying to figure it out:

 

I have two scenes, both triggered by the same trigger.

first is triggered and finished

second one is triggered and running

At this time the first scene is no longer being triggered as long as the second one is running.

 

Is it how it's supposed to work on HC3 now??

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 1

I have the same. Exactly the same approach to the lights from motion sensor. I don't think it is a bug. Maybe that is the feature. It's a new approach to the scene on HC3.

 

In this case I decided to trigger these scenes on the same device (motion sensor) but on different value.

 

First scene conditions:

Please login or register to see this code.

 

Second scene conditions:

Please login or register to see this code.

 

First scene is triggered when motion sensor is breached (value==true) and second scene is triggered when it's return to safe (value == false). First scene sets light on and update global variable when it should be switched off. Second scene is waiting till time set by first scene is reached and then switching light off.

Edited by gsmart
typo
Link to comment
Share on other sites

  • 0
  • Inquirer
  • I'll try to make it short. Just to describe the situation better:

    First scene updates global variable whenever e.g. motion sensor is triggered

    Second scene is much more complex one, which, in general, turns on some light, then, in loop, checks the global variable whether any sensor has been triggered, loop works as countdown, and then turns off the light eventually. Scene is protected againts restarts which is worth mentioning here. 

     

    When on HC2 it worked a little bit differently. Here one scene was responsible for the entire logic and I was using scene instances here: one main instance was running (light turnOn, countdown, light modification, light turnOff) and other instances of the same scene were updating global with triggers of different kinds (trigger/dimmer/absolute trigger/killer) then breaking before loop logic.

     

    trigger in both scenes:

     

    Please login or register to see this code.

     

    first scene in general:

     

    Please login or register to see this code.

     

    second scene in general

     

    Please login or register to see this code.

     

     

    I know HC3 limited scene instances and has somewhat different approach as scenes are considered. Maybe I should rethink my light logic.

     

    Edited by naboo
    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • 2 hours ago, naboo said:

    I'm trying to figure it out:

     

    I have two scenes, both triggered by the same trigger.

    first is triggered and finished

    second one is triggered and running

    At this time the first scene is no longer being triggered as long as the second one is running.

     

    Is it how it's supposed to work on HC3 now??

     

    and I forgot to add:

    second scene is protected against restarts

     

    when is allow restarts then first scene is being triggered as expected

     

    EDIT: I have one solution for my problem already: allow scene 2 restarts and pass scene parameters in scene variable, but maybe someone would suggest some other solution

     

    Edited by naboo
    Link to comment
    Share on other sites

    • 0
  • Inquirer
  • the problem looks like a bug to me,

    I ended up triggering the second scene with custom-event, although this causes some strange problems described here: 

     

    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.

     Share

    ×
    ×
    • Create New...