Fibaro Motion Sensor
Recently the new Fibaro Motion Sensor was introduced. This device has the capability of measuring the light level (LUX) within the range from 0 ~ 32757 LUX. This is also the first device which can measure such levels and we would like to use it for putting our screens down when the light level exceeds 10000 LUX for 5 minutes or longer.
When the level drops below 10000 LUX (also for 5 minutes or longer), the screens must go up again. Please find yourself a suitable limit for going up/down.
For this setup to work correctly you need at least UI6, as this is (for now) the only firmware which supports most of the options from the motion sensor.
There is just one small problem when you want to trigger for a certain brightness level, as the conditions (< and >) don’t work correctly (yet) within this firmware. Please upload the following file to fix this problem:
Please go to “Apps” -> “Develop Apps” and select the option “Luup files”. You may upload the file here. Don’t forget to check the box to restart Luup after reload.
Plugin Countdown Timer
For the timer based option – i.e. wait 5 minutes before executing a scene – we will use the plugin “Countdown Timer” (2 instances per motion sensor). As this is a plugin it can be downloaded directly by going to “Apps” -> “Install Apps”.
When done, there will be already 1 instance created. For our purposes we need 2 instances, so create another one:
When done, you will have two instances of the countdown timer in your dashboard. We are going to use each one for performing actions when a timer is completed :
Don’t forget to configure the duration – in our case 300 seconds, but you can use every value you prefer.
Creating the scenes
We will need 4 scene’s for executing all actions:
Now it’s easy to get the timers going; the scene’s Lux > 10000 and Lux < 10000 will trigger the timers, depending on the Lux value measured by the motion sensor.
This can be done easily using a trigger in both scene’s and use this trigger to activate or stop the corresponding countdown timer:
and in case LUX < 10000:
When done, you can do this also for the scene’s “Screens Up / Down” :
When you have configured everything properly, you can activate the timers manually by holding your hand on the “eye”. The LUX level will drop and the timer (LUX < 10000) will be activated. After the pre-configured time period, an event will occur (Screens UP).
If in any event – the LUX level will rise again above 10000, the other timer will be activated and the current timer will be canceled. When this timer ends, the scene Screens DOWN will occur.
Thats all! Suggestions are very welcome!