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

Kill Scene 1 when Scene 2 runs using block scenes


Question

Posted

Hi everyone.

 

Using block scenes Is there a way to kill scene 1 when scene 2 runs?

 

I have 2 scenes, one that runs when humidity <40% and the other runs when humidity is >=40%

  1. Scene 1 - With humidity <40% the lights off 5 minute timer scene runs
  2. Scene 2 - With humidity >=40% the lights off 15 minute timer scene runs

 

The idea is when someone is in the shower the humidity will increase to >=40%, scene 2 triggers which sets the off timer to 15 minutes.

 

The only snag I am hitting is initially scene 1 will run as humidity is <40% when the lights are first turned on, setting the off timer to 5 minutes. When humidity triggers scene 2 the scene 1 timer still completes, prematurely turning the lights off.

 

I have a feeling that I'll really need to get started with LUA scripting for more flexibility.

 

Thanks in advance for any suggestions.

2 answers to this question

Recommended Posts

  • 0
Posted

LUA is the answer even it requires some time to learn it.

  • Like 1
  • 0
  • Inquirer
  • Posted

    @Sankotronic I'm on the coding. Converted a few scenes to LUA to get to grips with the structure, found it's not too dissimilar to VBA.

     

    So I've now reduced 2 scenes to 1 scene, using if / else if along with fibaro.getValue to trigger different Timeout periods dependent on humidity values. So far no issues, when scene is re-triggered it resets the Timeout period and kills the previous timer.

     

    Very happy :-)

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