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
Posted (edited)
On 10/13/2016 at 10:28 AM, Hajdu Levente said:

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.

 

 

if you have only one motion sensor, the only possibility that I see is to place the sensor at the door to just look the door in/out but not the bathroom area.

Create the variable BATHROOM=0

Then create two scenes with:

 

SCENE 1

if motion sensor=on and BATHROOM=0 then

light=on and BATHROOM=1

 

SCENE 2

if motion sensor=on and BATHROOM=1 then

light=off and BATHROOM=0

 

Edited by Flowy
  • 0
  • Inquirer
  • Posted

    Thank you very much. 

    And if i have two motion sensors for the bathroom?

    • 0
    Posted

    The first solution will not work at least for two persons...

     

    In my opinion the best would be having two motion sensors (one in the bathroom, one on top of the shower (but not that important)) and a door sensor (if you are going to close the door while having a shower)

    • 0
  • Inquirer
  • Posted
    1 hour ago, Alex said:

    The first solution will not work at least for two persons...

     

    In my opinion the best would be having two motion sensors (one in the bathroom, one on top of the shower (but not that important)) and a door sensor (if you are going to close the door while having a shower)

    So if i have a motion sensor and a door sensor? What do you recommend. Because i thought a lot but coud not resolved yet:(

    • 0
    Guest FredrikKarlsson
    Posted
    On 2016-10-13 at 10:28 AM, Hajdu Levente said:

    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.

     

     

    Are you really that still inside the shower (or is your bathroom really that big??). I would have the switch turned on by movement and then have a grace period set up of 10 minutes or so. If no movement is detected in this time frame, the motion detection unit may issue an OFF command to the light switch. 

    • 0
    Posted

    Motion detectors cannot detect movements through glass. That's the reason why he might need a secondary sensor inside the shower.

    Or he takes a shower faster than the grace period ;)

     

    • 0
    Posted
    13 hours ago, Hajdu Levente said:

    So if i have a motion sensor and a door sensor? What do you recommend. Because i thought a lot but coud not resolved yet:(

    Do you have a HC2 or HCL?

     

    In this case I would do it like this:

    If motion sensor detects movement  or the door gets opened the light should go on.

    Get last modified time of the door.

    If the door is closed and there was any movement after the door has been closed keep the light on.

    Otherwise (door is open OR no movement after door has been closed) turn of the light after the set upped grace period.

     

    I hope this will help you.

    • 0
  • Inquirer
  • Posted
    1 hour ago, FredrikKarlsson said:

     

    Are you really that still inside the shower (or is your bathroom really that big??). I would have the switch turned on by movement and then have a grace period set up of 10 minutes or so. If no movement is detected in this time frame, the motion detection unit may issue an OFF command to the light switch. 

     

    My bathroom is not big but i have a curtain at the shower so when somebody is inside the motion sensor cant see them. So that is why i am thinking how can i resolve. 

    I was thinki g with the grace period but when i am not taking shower then it will go the light much. 

    So somehow i have to combine the motion and the doorsensor. 

    But thank you guys i appreciate all the answers. 

    • 0
  • Inquirer
  • Posted
    36 minutes ago, Alex said:

    Do you have a HC2 or HCL?

     

    In this case I would do it like this:

    If motion sensor detects movement  or the door gets opened the light should go on.

    Get last modified time of the door.

    If the door is closed and there was any movement after the door has been closed keep the light on.

    Otherwise (door is open OR no movement after door has been closed) turn of the light after the set upped grace period.

     

    I hope this will help you.

     

    Can you tell me that for this situation how many blockscene i would need. I would like to try this but onestly i do not know if i can make it or not. 

    Not really clear yet

    • 0
    Posted

    It can be done easily with LUA.

    I don't know if this can be done with block scenes because I cannot compare two values with each other I think.

    • 0
    Guest FredrikKarlsson
    Posted
    4 hours ago, Alex said:

    Motion detectors cannot detect movements through glass. That's the reason why he might need a secondary sensor inside the shower.

    Or he takes a shower faster than the grace period ;)

     

     

    Yes. But, really, I cannot see the big issue in having the lights go off a little bit later than the time one steps out of the shower. I have mine set to 40 minutes for bathrooms via the automatic delayed off  feature of the Fibaro relays. Being a motion sensor in order to save 10 minutes of energy does not seem sensible to me. Just my humble opinion of course, but there you go. Perhaps you have a couple of 100W bulbs in there, but then you maybe better off just changing them and switch to LEDs :-)

     

    But, anyway, I would also want to point out that if you enter a bathroom, you usually enter through the door. So, I suggest that it is sufficient to keep track of movement by the door and opening and closing of the door. Can be done all in one device using a Philio motion + door sensor. You track the persons inside in a global variable:

    * Opening of door and then movement inside of the door and then closing the door = someone entered (+1 person)

    * Movement inside of the door and then opening of the door and then closed it = someone exited (or at least very likely).  (-1 person)

    Once the number of persons inside == 0 then you switch the light off.

    * Movement by the door  when the door is open could be either or, but if you combine this case with a grace period, then you will likely catch these cases and have a worst case scenario where you loose 10 minutes of power. 

     

    Please note that the thinking above is just a sketch and quite possible flawed. It may require some tweaking to behave like it should in a real life application.

    • 0
    Posted
    3 minutes ago, FredrikKarlsson said:

    Yes. But, really, I cannot see the big issue in having the lights go off a little bit later than the time one steps out of the shower. I have mine set to 40 minutes for bathrooms via the automatic delayed off  feature of the Fibaro relays. Being a motion sensor in order to save 10 minutes of energy does not seem sensible to me. Just my humble opinion of course, but there you go. Perhaps you have a couple of 100W bulbs in there, but then you maybe better off just changing them and switch to LED

    So if you enter the bathroom at 09:00, leave it at 09:10 and reenter it at 09:39 you will be in the dark at 9:40...?

     

    4 minutes ago, FredrikKarlsson said:

    * Opening of door and then movement inside of the door and then closing the door = someone entered (+1 person)

    * Movement inside of the door and then opening of the door and then closed it = someone exited (or at least very likely).  (-1 person)

    Or a second person entered the room (+1 person) --> Both are in a dark room

     

     

    At least one door sensor and one motion sensor would fit very well but in my case i must be done with LUA.
     

    • 0
    Posted

    Use motion sensor to turn on the light, then timer to turn it off after some minutes, but if door is closed then keep light on until door is opened and then turn it off after timer reach zero. If in the mean time somebody enters bathroom while timer is still counting then reset timer to full time so light will remain on. I have that kind of scene but only in LUA code. Also in the morning I use another timer that will keep lights on after it is triggered by motion sensor from alarm clock time (wake up time) for defined time which can be for any time period like half hour or one hour, one and half hour...Just to mention that can control any type of light actors, dimmers, relays, smart plugs, RGBW and VD (Philips HUE). Scene is totally configurable by user with many options and still no need to change code itself. Since there is many things that can be configured I have to prepare some kind of instructions and explain possibilities before posting it here and at the moment I'm not at home for next five weeks.

    • 0
    Posted
    23 hours ago, Hajdu Levente said:

    Thank you very much. 

    And if i have two motion sensors for the bathroom?

     

    23 hours ago, Hajdu Levente said:

    And if i have two motion sensors and a door sensor?

     

    7 hours ago, Hajdu Levente said:

     

    Can you tell me that for this situation how many blockscene i would need. I would like to try this but onestly i do not know if i can make it or not. 

    Not really clear yet

     

    6 hours ago, Hajdu Levente said:

    The problem is i do not understand lua at all

     

    hi,

    if I understood correctly you are not familiar not only with Fibaro but in general with a general programming approach and related logic.

    In that case my suggestion is: keep it simple, one motion sensor on the door + one variable is enough and it works perfectly. Any other device you want to introduce will make it much difficult for you to understand and manage = problems.

    Once you'll get more familiar with the system you could start playing and investigating new complex ways.

     

    Other simple way is to have two motion sensors: one outside the door and one inside the door + one variable. A classic way to always know if someone is inside a room or not. But start with only one......

    • 0
    Guest FredrikKarlsson
    Posted
    5 hours ago, Alex said:

    So if you enter the bathroom at 09:00, leave it at 09:10 and reenter it at 09:39 you will be in the dark at 9:40...?

     

    Yes, basically. All managed by the built in Fibaro relay timer, so of course, the timer is reset again if you manually switch it off and then on again (I am not using a motion sensor myself).

    If you would like to use it with a motion sensor, then I would use one (sensor that is) that also has a timer like that (an ON signal on motion detection, a certain time of delay after last seen motion and then an OFF signal to the relay). 

     

    I know that it seems like using a timer like that as a basis for an automatic off is a seriously flawed algorithm, but in reality it works really well. In my house of 6 persons, not once have anyone reacted on the auto off thing. 

     

    AND, (and this is the main point that I want to convey to

    Please login or register to see this link.

    ) my timer saves me from having a motion sensor (or two) in a reasonably private room. And, in the shower! I do have people staying with us, and sometimes people I met not long ago, and I don't like to start the house tour by explaining that these are motion sensors and not cameras. And that the same is true also in the shower... Well, maybe it's just me, but if I would need to install motion sensors in a bathroom, I would try to keep them near the door. Seems less personal.

     

     

    5 hours ago, Alex said:

    Or a second person entered the room (+1 person) --> Both are in a dark room

     

     

    Yes, you need to check also that there is no motion still inside of the bathroom once the door is closed. Sorry about that. I am sure that a good algorithm can me sorted out for people counting if more thought is put into it than I have now.

    • 0
    Posted
    15 minutes ago, FredrikKarlsson said:

    If you would like to use it with a motion sensor, then I would use one (sensor that is) that also has a timer like that (an ON signal on motion detection, a certain time of delay after last seen motion and then an OFF signal to the relay). 

    Fibaro motion sensor is able to do this and almost every other z-wave motion sensor I know (Everspring, Aeon Labs, ...). They can even control the light without using the home controller / without any LUA/block script.

     

    16 minutes ago, FredrikKarlsson said:

    I know that it seems like using a timer like that as a basis for an automatic off is a seriously flawed algorithm, but in reality it works really well. In my house of 6 persons, not once have anyone reacted on the auto off thing. 

    I played around a lot with this. On one side I don't want to sit in the dark. But this is a big problem if there is only one or two persons sitting in a room (with an open door). Motion sensors do have problems recognizing people just having breakfast. So I can set up the grace period to a large value. This would help. But on the other side if anybody is entering the room just for a second the light will be on for a long useless time.

     

    19 minutes ago, FredrikKarlsson said:

    AND, (and this is the main point that I want to convey to

    Please login or register to see this link.

    ) my timer saves me from having a motion sensor (or two) in a reasonably private room. And, in the shower! I do have people staying with us, and sometimes people I met not long ago, and I don't like to start the house tour by explaining that these are motion sensors and not cameras. And that the same is true also in the shower...

    This is true. People are asking what this is or even if this is a camera.

     

    20 minutes ago, FredrikKarlsson said:

    AND, (and this is the main point that I want to convey to

    Please login or register to see this link.

    ) my timer saves me from having a motion sensor (or two) in a reasonably private room

    But without any motion sensor one will have to switch on the light manually...

     

    21 minutes ago, FredrikKarlsson said:

    Well, maybe it's just me, but if I would need to install motion sensors in a bathroom, I would try to keep them near the door. Seems less personal.

    In most cases this will be fine because the range of the motion sensors i big enough for most standard rooms.

     

     

    Maybe Hajdu can use one of the already posted scripts here in this or other forums.

    Or just using two block scenes, as the other members also suggested. One for switching on the light if motion sensor 1, motion sensor 2 (and so on) or the doors triggered.

    And switching off the light if there is no movement for x minutes.

    • 0
    Posted

    In you other post you have gotten a simple answer already.

    • 0
  • Inquirer
  • Posted (edited)
    4 hours ago, Sankotronic said:

    Use motion sensor to turn on the light, then timer to turn it off after some minutes, but if door is closed then keep light on until door is opened and then turn it off after timer reach zero. If in the mean time somebody enters bathroom while timer is still counting then reset timer to full time so light will remain on. I have that kind of scene but only in LUA code. Also in the morning I use another timer that will keep lights on after it is triggered by motion sensor from alarm clock time (wake up time) for defined time which can be for any time period like half hour or one hour, one and half hour...Just to mention that can control any type of light actors, dimmers, relays, smart plugs, RGBW and VD (Philips HUE). Scene is totally configurable by user with many options and still no need to change code itself. Since there is many things that can be configured I have to prepare some kind of instructions and explain possibilities before posting it here and at the moment I'm not at home for next five weeks.

    I think would be good with lua but i have no ideea qith lua. 

    But that is not a problem. 

    From these replies that you huys give me i think it will be enough to figure out slmehow how it will work.

    i will combine a motion sensor and a door sensor. I will do it in block scene at first without variable. 

    Maybe i gl with the delay. 

    Thanks 

    Edited by Hajdu Levente

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