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

Hi all,

 

I have a bathroom, and have a dimmer in the switch, i have a motion sensor in the bathroom, i would like to figure out how can i resolve that that light to be automatic,

i made a scene that when i enter in the bathroom, then the light turns on, but i do not know how to resolve that when i came out the light to turn off.

with the door sensor safe situation will not work because when i enter the bathroom i close the door, i thought i will make it with motion sensor but lets say when i am taking a shower the motion sensor will not detect me and then that is not a good solution.

what do you recommend.

 

Recommended Posts

  • 0
  • Inquirer
  • Posted

    Thanks guys for all your efort. I appreciate them. 

    I went with this one. 

    Light on. 

    Motionsens== breached 

    then 

    bathlight== on

     

    light off

    motionsens==safe 120s and doorsens== safe 120 s 

    then 

    bathlight== off

     

    i tried with the shower and with the curtain and i figured out that when we takkng the shower we thouch in 2 minutes the curtain and then the motion sensor feels that. 

    So it seems that it will work. 

    If not i will be back. 

    Thanks again

    • 0
  • Inquirer
  • Posted

    Guys,

    As you can see I went with the motion sensor and door sensor and grace period two minutes.

    I have a massage that to many instances, because i have set it up as by default 2 maxium instances.

    Now I have modified for 10 maximum instances.

    But if i go more than ten time in the bathroom then i will get the massage with the to many instances?

    if yes what do you recomend what to do?

    • 0
  • Inquirer
  • Posted

    Number of instances of scene has been reduced due to exceeding limit.

     

    i got this massage

    • 0
    Guest FredrikKarlsson
    Posted
    12 hours ago, Hajdu Levente said:

    Thanks guys for all your efort. I appreciate them. 

    I went with this one. 

    Light on. 

    Motionsens== breached 

    then 

    bathlight== on

     

    light off

    motionsens==safe 120s and doorsens== safe 120 s 

    then 

    bathlight== off

     

    i tried with the shower and with the curtain and i figured out that when we takkng the shower we thouch in 2 minutes the curtain and then the motion sensor feels that. 

    So it seems that it will work. 

    If not i will be back. 

    Thanks again

     

    No problem :-). 

    Just a question though - are you implementing this as a scene or by device settings and direct communication between devices?

    I think you should try to avoid running this as scenes if you can, due to issues related to multiple breaches and determination of the proper start and end time of the waiting period.

    Many motion censor  will implement this for you actually. 

    • 0
  • Inquirer
  • Posted

    Hi

    i made as two scenes which are running. 

    I had a notification that i have posted here. 

    Running instance reduced due to eciding limits. 

    I just asked what can i do?

    • 0
    Posted
    24 minutes ago, Hajdu Levente said:

    Number of instances of scene has been reduced due to exceeding limit.

     

    i got this massage

    I think this comes from the second block scene (shutting off). Try to set it to 10 instances.

    • 0
    Posted

    need of 10 instances in a script is equal to not a good logic used.

    I still suggest you that the only correct way to do it is by using at least one variable. All others are workarounds with problems somewhere.

    Another example, if you always open and close the door,

    you can do it with only 1 door switch and 1 variable:

     

    - door breached & Variable=0 THEN light=on & Variable=1

    - door closed & Variable=1 THEN Variable=0

    - door closed & Variable=0 THEN light=off

     

    no need of any strange extra timing to insert

     

    • 0
    Posted
    1 hour ago, Flowy said:

    - door closed & Variable=1 THEN Variable=0

    - door closed & Variable=0 THEN light=off

    This can get improved to one line(?):

    door closed & Variable=1 THEN Variable=0 and light=off

     

    But closing/opening door every time is also disturbing in my opinion.

     

    This 10 instances is needed fro the block scenes only I think. But I am not sure (I hardly ever use block scenes)-

    • 0
    Posted
    40 minutes ago, Alex said:

    This can get improved to one line(?):

    door closed & Variable=1 THEN Variable=0 and light=off

     

    But closing/opening door every time is also disturbing in my opinion.

     

    This 10 instances is needed fro the block scenes only I think. But I am not sure (I hardly ever use block scenes)-

     

    no because when you enter the room the light goes on and at the time that you close it at your shoulders the light goes off immediately in your case but you are still in the room.

    not an improvement indeed....

    the three above are the minimum ones.

    • 0
  • Inquirer
  • Posted

    Thank you. 

    Using 10 instance isca problem?

    i am trying now with then instance and k will see. 

    I always open and close the door. 

    So it should be ok with variable

    i have lne more scene with 10 instance. Its my main door

    • 0
    Posted
    18 minutes ago, Flowy said:

    the three above are the minimum ones.

    In this case there mus be something wrong.

    Because if door gets closed and the variable is set to 1 it will get set to 0. and directly afterwards the light will get switched off.

     

    So these two lines can be put together.

     

    19 minutes ago, Flowy said:

    no because when you enter the room the light goes on and at the time that you close it at your shoulders the light goes off immediately in your case but you are still in the room.

    not an improvement indeed....

    I am sorry but I don't understand what you mean.

    • 0
    Posted

    These instances have been implemented to stop bad scenes by running too often.

    10 will be ok. But it is important to know why there are so many scenes running and if it is ok having them.

    You will just need 1 instance for the scenes with using only the door as a trigger.

    Maybe it will be better to increase it to 4 instances if a running instance will not end early enough.

    • 0
  • Inquirer
  • Posted

    Maybe as a triger i have to take out the motion sensor. Not?

    • 0
    Posted
    22 hours ago, Alex said:

    In this case there mus be something wrong.

    Because if door gets closed and the variable is set to 1 it will get set to 0. and directly afterwards the light will get switched off.

     

     

    1 door switch and 2 variables:

     

    Presence=0

    Exit=0

    Door closed

     

    - door breached & Presence=0 THEN light=on & Exit=1

     

    - door closed & Exit=1 THEN Presence=1

     

    - door breached & Presence=1 THEN Exit=0

     

    - door closed & Presence=1 & Exit=0 THEN light=off & Presence=0

     

     

     

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