Hi, hoping some of the PLEG experts might be able to help to determine if the following is possible!
I currently have Fibaro FGD-211’s controlling the ceiling lighting spotlights in 4 rooms. I have the wired input to connect the Fibaros to ceiling mounted PIR sensors, similar to these. So when the PIR sensor is triggered, they trigger the Fibaro to turn on via PLEG, and after a preset period adjustable on the PIR, they turn off again. This setup is for simplicity, dimming control, and I wasn’t keen on the Z-wave PIR reliability. NB for those looking to try the same, the device option #41 is set t=to 1 byte dec = 1.
To allow me to trigger the light and set the dimming level, I use PLEG as follows (for Living Room as an example):
-
INPUTS
pLivRmSpotMaster LivRm Spotlight Master Status 1 (THIS IS A VIRTUAL SWITCH - SO WHEN ITS SET TO OFF THE PIR’s are IGNORED)
pLivRmSpotScActiv Living Room Spotlights LastSceneID 23
pLivRmSpotScTrgt Living Room Spotlights LoadLevelTarget 0 -
CONDITIONS
cLivRmSpotOff pLivRmSpotScActiv==23 (THE PIR IS OFF)
cLivRmSpotOn (pLivRmSpotScActiv==22) AND (pLivRmSpotMaster==1)(THE PIR IS ON AND THE MASTER (VIRTUAL SWITCH) IS ON) -
ACTIONS
cLivRmSpotOff Turn Spotlights Off (Delay: Immediate Living Room Spotlights SetLoadLevelTarget newLoadlevelTarget 0 )
cLivRmSpotOn Turn Spotlights to 50% (Delay: Immediate Living Room Spotlights SetLoadLevelTarget newLoadlevelTarget 50) (THIS 50% IS CURRENTLY CONSTANT)
This setup works well and is reliable, and I am hoping with PLEG to be able to improve functionality as below, but don’t have the know how(!):
- When the PIRs are triggered, the lights come on to a dimming level defined by, say, a virtual slider. In this case, the dimming level can be adjustable, from the current static 50% level. This can be adjusted in the Vera control panel, or via AuthomationHD, etc.
- While already on, adjusting the virtual slider will adjust the current brightness level. This may mean that adjusting the virtual slider also creates an action to change the light levels.
- By putting the virtual slider to zero, the lights do not come on when PIR is triggered, removing the current need for the Virtual Master Switch shown above.
- The virtual slider switch should remember its dimming level, not reset to say 50% every time the lights go off.
- Hopefully it can be done in a way that can allow future use of the TKBhome switches to control the dimming.
- For other applications, it may suit to also be able to tell PLEG to ignore the PIR input and keep the lights on when the PIR goes off (but that might over-complicate this current plan!)
I hope I have explained this right, but if not, please ask me any questions and thanks for any advice in advance.