Hello,
I created a PLEG Awhile back that controls my flood lights and a kitchen light, all is working well except if the kitchen light is on and night arrives it turns the light off and then I have to turn it back on, really annoying.
House Lighting
Device ID: 512014-03-14 11:16:31.067 PLC Version: 6.3
Registration
You have 1 licenses, which allows for 4 PLEG and/or PLTS plugins.
Triggers
Name Description State Last True Last False
BackDoorUnlock PIN Code #* is entered on Back Door true 2014-03-12 22:39:58.486 0
Night Day or Night indicates Night time. false 2014-03-13 19:12:46.025 2014-03-14 07:21:01.108
BackDoorLock Back Door: Lock button is pressed true 2014-03-11 17:35:47.563 0
WD_Scene1 WD Controller: scene number 1 is activated false 0 0
Schedules
Name Type Time Days Random On Delay Off After Type Off Time Off Days Random Off Delay State Last On Last Off
LightOffSched Weekly 23:30:00 1,2,3,4,5,6,7 None None None false 2014-03-13 23:30:00.101 0
Conditions
Name Repeat Expression State Last True Last False
FloodOn No Night false 2014-03-13 19:12:46.026 2014-03-14 07:21:01.118
FloodOff No not Night or LightOffSched true 2014-03-13 23:30:00.104 2014-03-13 19:12:46.030
_KitchenOn Yes Night and BackDoorUnlock false 2014-03-13 19:12:46.031 2014-03-14 07:21:01.122
_KitchenOff Yes Night and BackdoorLock false 2014-03-13 19:12:46.065 2014-03-14 07:21:01.123
Actions
Actions for Condition: _KitchenOn
Immediate
Device Action Arguments
Kitchen Lights SetTarget newTargetValue=1
Actions for Condition: _KitchenOff
Immediate
Device Action Arguments
Kitchen Lights SetTarget newTargetValue=0
Actions for Condition: FloodOn
Immediate
Device Action Arguments
G_Flood Light SetTarget newTargetValue=1
Flood_Lights SetTarget newTargetValue=1
Actions for Condition: FloodOff
Immediate
Device Action Arguments
Flood_Lights SetTarget newTargetValue=0
G_Flood Light SetTarget newTargetValue=0
Also I have a WD Wireless Gateway that I would like to integrate as well in the following way, not sure if this is possible though. Setup scene 1 to turn off kitchen light if it is on and if the light is off then turn it on.