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

Revised Toilet Scene needed ?


samuel

Question

In my toilet i have an AEON LABS Multisensor 6 Aeotec, whereby my light is been triggered by the sensor.

You can see the scene below, often the light goes out because there is no movement anymore in the toilet, while the person is still in the toilet!

if I increase the reset time, then it takes longer before the light dims (off), but on the other side, I would like to have a scene, when I step outside the toilet the light dims to off, within around 5 seconds.

 

Does somebody has an improved scene from his or her timer from the toilet or any other scene what is equivalent (revised) to this scene?

 

Please login or register to see this code.

 

 

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

The "is-someone-inside-the-toilet?" is the

Please login or register to see this link.

of home-automation :-) 

The approach I have is to make use of an extra door sensor so I can tell if the door is closed or open. In case someone moves inside the toilet when the door is closed I will not turn off the light again until the door opens. Likewise if the door is closed and motion is breached within a small timeframe (2-3sec) I also assume that someone is inside the toilet (door opens, sensor breached, door closed, all within a few seconds). It's not 100% but works in most cases.

To get the light to turn off extra fast (5 sec) when someone leaves I have no immediate solution to, as it is hard to know if the person has actually left the toilet.

Anyway, I'm usually coding in my own framework but I believe the code below could work (haven't been able to test it extensively)

Note, no need to use a fibaro global variable to store state...

Please login or register to see this code.

 

Edited by jgab
Link to comment
Share on other sites

  • 0

The topic has been moved from "

Please login or register to see this link.

" to "

Please login or register to see this link.

".

 

Temat został przeniesiony z "

Please login or register to see this link.

" do "

Please login or register to see this link.

".

Link to comment
Share on other sites

  • 0
On 6/21/2018 at 9:54 AM, samuel said:

In my toilet i have an AEON LABS Multisensor 6 Aeotec, whereby my light is been triggered by the sensor.

You can see the scene below, often the light goes out because there is no movement anymore in the toilet, while the person is still in the toilet!

if I increase the reset time, then it takes longer before the light dims (off), but on the other side, I would like to have a scene, when I step outside the toilet the light dims to off, within around 5 seconds.

 

Does somebody has an improved scene from his or her timer from the toilet or any other scene what is equivalent (revised) to this scene?

 

Please login or register to see this code.

 

 

 

 

Hi

 

This is not the best code, but it is working stable... 

Please login or register to see this link.

 

I think it will do what you need without any modifications... Here are the comment text from the scene:

 

################################################################
## Automatic hallway lights that wont get on somebodys nerves ##
################################################################
 
## Turn ON hallway light if ##
- We se motion and the lux value is below "luxTrigger"
- If door opens and we are below "luxTrigger" value
 
## Keep light ON if ##
- We sees motion within the "timer" value. Then timer is reset
 
## Manual touching wall switch OFF ##
- Will trigger "hysteresis" time within which the light cannot go ON again
- Light will however go on again after hysteresis time *IF* motion and/or door
sensor trigger and at the same time the lux is lower than "luxTrigger" value
 
## Manually touching wall switch to other value than "dimmerSet" ##
-- Will disable scene indefinetly or until light is manully switched off.
After that the light will go on again with same conditions as mentioned
(door or motion sensor and at the same time lux that is lower than "luxTrigger"
 
--------------------------------------------
Important motion sensor parameters to change
 
Illuminance report - threshold: from 200 down to 20
To be able to trigger on resonable indoor values. If left on 200, the full light
for a short period will cause a very long period before the light could go on
again due to non correct lux value.
 
Motion detection - alarm cancellation delay: from 5 up to 30
To save batteries and to avoid strange behaviour if the time frames are
to short (motion cancel delay, timer, hysteresis).
--------------------------------------------
 
NOTE !!
This code need a global "GhallAutoOnTime" variable set in the
variables panel. Also note that the timer do not depends on the unpredictable
loop time in the code, but in real time measures.
 
--]]

 

/Peo

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.

×
×
  • Create New...