Hi all
I have taken a lot from this forum, so hoping someone can make use of this. To keep my wife happy, I have implemented a smart light which does away with needing an on/off/on action to extend auto-off after no motion detected, instead using a double click of the light (which is what you do to set full brightness anyway, so she is used to that). You could just as easily use s2 or any of the sceneids. I have the use of the click activated scenes all in a separate PLEG, but you dont need to do this of course.
Note that this would only apply to you if you have the fibaro dimmer with the scene controller capability (something which I think is THE best thing about these modules… I use them for loads of stuff!). My only issue is its a little more complex than I would like as I want to repeat for a lot of lights, so if anyone can propose a shorter method with less conditions, I would appreciate the help.
Triggers
Name Description
FrontDoorOpen Front Door is tripped
HallMotion Hallway is tripped
HallNoMotion Hallway is not tripped
HallSpotsOff Hall Spots is turned off
HallSpotsOn Hall Spots is turned on
HLSs1Dbl Special Automation has satisfied condition: HLSs1Double Note - this is from another PLEG… details of the inputs / conditions at the end
IsNight Day or Night indicates Night time.
Schedules
Name On Type On Time On Days Random On Delay Off After Type Off Time Off Days Random Off Delay
HallLightTimer Self ReTrigger None Interval 20 None
Conditions
Name Repeat Expression
HallAutoOff No HallSpotsOn and !FrontDoorOpen and !HallLightTimer and (HallSpotsOn; !HallLightTimer)
HallAutoOn No IsNight and !HallSpotsOn and HallMotion
HallManualOn No HLSs1Dbl OR (HallSpotsOn AND !HallAutoOn)
HallKeepOn No HallManualOn and HallMotion and (HallManualOn; HallMotion)
HallAutoExtend No IsNight and HallSpotsOn and HallMotion
Actions
Actions for Condition: HallAutoExtend
Device Actions:
Immediate
Device Action Arguments
Lighting Control StartTimer timerName=HallLightTimer intervalTime=
Actions for Condition: HallAutoOff
Device Actions:
Immediate
Device Action Arguments
Hall Spots SetLoadLevelTarget newLoadlevelTarget=0
Actions for Condition: HallAutoOn
Device Actions:
Immediate
Device Action Arguments
Lighting Control StartTimer timerName=HallLightTimer intervalTime=
Hall Spots SetLoadLevelTarget newLoadlevelTarget=50
Actions for Condition: HallKeepOn
Device Actions:
Immediate
Device Action Arguments
Lighting Control StartTimer timerName=HallLightTimer intervalTime=30
Actions for Condition: HallManualOn
Device Actions:
Immediate
Device Action Arguments
Lighting Control StartTimer timerName=HallLightTimer intervalTime=180
Inputs / Condition from the Special Automation PLEG
Device Properties
Name Device Name Device Variable
LastSceneIDHLS Hall Spots LastSceneID
LastSceneTimeHLS Hall Spots LastSceneTime
SceneActivatedHLS Hall Spots sl_SceneActivated
Conditions
Name Repeat Expression
HLSs1Double No (SceneActivatedHLS;LastSceneTimeHLS) AND (LastSceneIDHLS == 14)