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


Question

Posted

Trying to set up a scene using block that turns on the shower light when a contact is breached. Got that bit sorted but want the light to turn off the second time the door is opened then closed. 

I have tried using variables but can’t get it to work any ideas? 

2 answers to this question

Recommended Posts

  • 0
Posted

Hi,

use the "oppsite state" function.

 

Please login or register to see this image.

/monthly_2019_06/image.png.01ad5a83070fa6c24322b6dd3558628a.png" alt="image.png.01ad5a83070fa6c24322b6dd3558628a.png" />

  • 0
Posted
9 hours ago, Craig7780 said:

Trying to set up a scene using block that turns on the shower light when a contact is breached. Got that bit sorted but want the light to turn off the second time the door is opened then closed. 

I have tried using variables but can’t get it to work any ideas? 

Mainly disadvantage in block scene is that you cannot run more functions that one in one scene...

 

Let's find out what you need to do:

1. turning light on when contact is breached - one function

2. figuring out, when door is closed for the second time - one more function

3. turning the lights off when door is closed for the second time - third function

 

So, it looks like that you have to create 3 different block scenes.. and connect them together via global variables.

 

One way to do it is:

 

Block scene which counting, how many times door is closed:

Create a global variable, and create scene activated by condition ->sensor safe->then-> variable += 1

 

Block scene which turning the light off and resetting the variables:

Create scene activated by variable, ->if variable =2, ->then-> lights off, and variable=0

 

Block scene which turning the lights on for the first time:

Create scene activated by contact, ->if contact is breached, and variable =0, ->then-> lights on. Make sure that activating device is contact only (remove thick from variable)

 

Make sure that only one instance of scenes will be allowed.

You will have a notification "to many instances", but in that way is no option to do something with this.

 

 

Try to make those scenes. If you'll give up and can go further, let me know so I will send some screenshots, but not now... We learning by doing things :) 

 

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