I have a fibaro 2*1,5kw in my bathroom controlling my ceiling light and the lights over the mirror
I am very new to PLEG & PLTS. Wich one should i use and how do i automate it like this?
*at normal awake-time - turn on both lights when my philio 4 in 1 senses motion. Lights of 5 min after last movement in bathroom
*at night i want the same thing but i want the light sensor included. For example: if motion is tripped and light sensor is below certain value turn only lights over mirror on. If light is over turn on both lamps.
I want it like this just because on night the eyes are more sensitive to light and i gets more awake if the light is to bright and it will be harder to sleep again after that
Could someone please give me a jumpstart??
Sent from my GT-I9295 using Tapatalk
As you want separate control of two different devices, PLEG is most suitable for this application. Try something like this:
Triggers
Motion Motion Sensor is tripped
MirrorOn Mirror light is turn on
LightOn Main light is turned on
Device Properties
LightLevel Light Sensor CurrentLevel
Conditions
DoLightOn Not MirrorOn and Motion and LightLevel > 100
DoMirrorOn Not MirrorOn and Motion
DoLightOff LightOn and (Motion; Now > 5:00)
DoMirrorOff MirrorOn and (Motion; Now > 5:00)
Actions
DoLightOn Turn on Main light
DoMirrorOn Turn on Mirror light
DoLightOff Turn off Main light
DoMirrorOff Turn off Mirror light
I have assumed that the light Sensor is in the bathroom so will be affected by the lights. This is why the Condition DoLightOn checks the state of the Mirror light along with the light level.
Many of us find it more reliable to use the Day or Night plugin to detect night rather than using sensors. To use this as an alternative, add a Trigger:
ItsNight Day or Night indicates night
and change the Condition DoLightOn to:
DoLightOn Not LightOn and Motion and ItsNight
Yes night variable would be better… will have a go on that… or maybe a virtual switch controlled via my night profile in tasker. Thanks man
Sent from my GT-I9295 using Tapatalk
I got it to work extremly well. Butt is there some way to override it?? For example shower or some bathroom visits take longer than 5 minutes…
Maybe i could use status of the other light to somehow disarm the pleg i am using?? Or could i use the wall switch connect to my fibaro dual realy??
Skickat fr?n min GT-I9295 via Tapatalk
There are lots of ways to override the auto-off once you decide how to signal that is what you want to happen. For example, you could change the Conditions like this:
Conditions
DoLightOn Not LightOn and Motion and ItsNight
DoMirrorOn Not MirrorOn and Motion
DoLightOff LightOn and (Motion; Now > 5:00) and (DoLightOn; LightOn < 5)
DoMirrorOff MirrorOn and (Motion; Now > 5:00) and (DoMirrorOn; MirrorOn < 5)
Now the lights will only be turned off after five minutes if they were turned on by the Motion sensor. If you turn them on with the wall-switch, they will stay on.
But the problem is that it’s a combination PIR & door sensor. So its impossible to turn it on with the wall switch because the sensor is faster. I want a way to override it with the wall switch… but dont get how. Can i control the inputs on the fibaro dual relay in some way and make it override my PLEG??
My wife is starting to get really annoyed cause the lights go of when she showers, and the fact that it stays on after bathroom visit and cant be turned of…
Skickat fr?n min GT-I9295 via Tapatalk
My wife is starting to get really annoyed cause the lights go of when she showers, and the fact that it stays on after bathroom visit and cant be turned of....
This is why it is a good idea to think through how you want it to work before you start programming it. ;) Meanwhile, just click [b]Bypass[/b] on PLEG to keep your wife happy.
It is easy to recognise a quick on/off/on of the light as a way to disable auto off. Create an additional Trigger for LightOff (Light is turned off). The expression (LightOff; LightOn < 5) will be true for the on/off/on and (LightOff; LightOn > 5) will be false. This allows:
Conditions
DoLightOn Not LightOn and Motion and ItsNight
DoLightOff LightOn and (Motion; Now > 5:00) and (LightOff; LightOn > 5)
But I am not sure whether this will do what you want because your goal seems to have changed since we started this. I think it is time to list everything you want the logic to do rather than trying to graft fixes onto a partial solution.
Hi everyone… Totally new to Vera and just starting to play around with PLEG. Is it possible to create a dual switch using PLEG with a GE/Jasco Dimmer? I want to set a nightlight for my kids room and activate an off ramp on his light over 30 minutes. So I want to hit on/off/on and start the timer to turn the light gradually off.
Any help is appreciated!
PLEG has a multi-trigger option:
StartRamp LightSwitch @ 2 < 10
IN the above condition … if the light switch is toggled (has to be slow enough for Vera to notice, so you need instant status switches) …
On Off On in less than 10 seconds … this condition will become true.