The 1st to 2nd Stair Lights are out of sync. Rebooted when turning them off. PLEG shows them as being on while Vera shows them off. Status report:
2014-11-10 20:51:15.608
Registration
Installed: Tue Nov 26 2013. You have 1 license, which allows a total of 4 PLEG and/or PLTS plugins.
Your license key is: ####
Triggers
Name Description State Last True Last False
BackDoorClosed Back Door Sensor armed is not tripped true 2014-11-10 20:02:03.678 2014-11-10 20:01:57.677
BackDoorOpened Back Door Sensor armed is tripped false 2014-11-10 20:01:57.677 2014-11-10 20:02:03.679
BackDoorUnlocked Back Door Deadbolt is opened false 2014-11-10 20:01:57.898 2014-11-10 20:02:04.318
BedroomClosetLightsOff Bedroom Closet Lights is turned off true 2014-11-10 18:35:57.486 2014-11-10 18:33:54.257
BedroomClosetLightsOn Bedroom Closet Lights is turned on false 2014-11-10 18:33:54.257 2014-11-10 18:35:57.487
BedroomClosetOccupancy Bedroom Closet Occupancy armed is tripped false 2014-11-10 18:33:53.889 2014-11-10 18:35:57.102
CatFeederOn Cat Feeder is turned on false 2014-11-10 19:03:00.346 2014-11-10 19:06:00.445
FirstFloorHallLightsOff First Floor Hall is turned off false 2014-11-10 20:04:06.875 2014-11-10 20:50:42.465
FirstFloorHallLightsOn First Floor Hall is turned on true 2014-11-10 20:50:42.466 2014-11-10 20:04:06.876
FrontDoorClosed Front Door Sensor armed is not tripped true 2014-11-10 18:17:29.798 2014-11-10 18:17:22.295
FrontDoorOpened Front Door Sensor armed is tripped false 2014-11-10 18:17:22.295 2014-11-10 18:17:29.798
FrontDoorUnlocked Front Door Deadbolt is opened false 2014-11-10 18:17:21.941 2014-11-10 18:17:52.870
GarageDoorOpened Garage Door Sensor armed is tripped false 2014-11-10 18:16:41.497 2014-11-10 18:18:35.127
IsNight Day or Night indicates Night time. true 2014-11-10 16:28:58.104 2014-11-10 07:22:53.103
KitchenOccupancy Kitchen Occupancy is tripped false 2014-11-10 10:39:11.951 2014-11-10 10:41:13.102
Lights1stto2ndOff 1st to 2nd Stair Lights is turned off false 2014-11-10 18:15:56.737 2014-11-10 18:17:12.777
Lights1stto2ndOn 1st to 2nd Stair Lights is turned on true 2014-11-10 18:17:12.777 2014-11-10 18:15:56.737
Lights2ndto3rdOff 2nd to 3rd Stair Lights is turned off true 2014-11-10 19:08:14.966 2014-11-10 19:06:11.096
Lights2ndto3rdOn 2nd to 3rd Stair Lights is turned on false 2014-11-10 19:06:11.096 2014-11-10 19:08:14.966
LRLampOff Living Room Lamp is turned off false 2014-11-09 22:19:54.271 2014-11-10 16:28:58.687
LRLampOn Living Room Lamp is turned on true 2014-11-10 16:28:58.687 2014-11-09 22:19:54.272
LRMotion Second Floor Motion armed is tripped false 2014-11-10 20:51:01.930 2014-11-10 20:51:03.432
LROccupancy Living Room Occupancy armed is tripped false 2014-11-10 20:50:27.863 2014-11-10 20:52:29.101
Occupancy1stto2nd 1st to 2nd Stairs Occupancy armed is tripped true 2014-11-10 20:50:42.093 2014-11-10 20:03:49.101
Occupancy2ndto3rd 2nd to 3rd Stairs Occupancy armed is tripped false 2014-11-10 19:06:10.673 2014-11-10 19:08:14.104
OfficeFanLightsOff Office Fan Lights is turned off false 2014-11-10 20:13:06.456 2014-11-10 20:51:03.896
OfficeFanLightsOn Office Fan Lights is turned on true 2014-11-10 20:51:03.896 2014-11-10 20:13:06.456
OfficeOccupancy Office Occupancy is tripped true 2014-11-10 20:51:03.173 2014-11-10 20:04:39.102
PatioLightsOn Patio Lights is turned on false 2014-11-05 21:12:00.253 2014-11-05 21:23:05.510
Schedules
Name On Type On Time On Days Random On Delay Off After Type Off Time Off Days Random Off Delay State Last On Last Off
BlindsCloseNight Weekly +00:15:00t 1,2,3,4,5,6,7 None Weekly -00:19:59r 1,2,3,4,5,6,7 None true 2014-11-10 17:43:58.100 2014-11-10 06:33:01.355
BlindsOpenDay Weekly -00:20:00r 1,2,3,4,5,6,7 None Weekly +00:14:59t 1,2,3,4,5,6,7 None false 2014-11-10 06:32:53.103 2014-11-10 17:43:57.101
LREveningLampSchedule Weekly -01:00:00t 1,2,3,4,5,6,7 None Weekly 23:00:00 1,2,3,4,5,6,7 None true 2014-11-10 16:28:58.320 2014-11-09 23:00:00.102
Device Properties
Name Device Name Device Variable Value Last Change Previous Change
AlarmArmMode Main Alarm DetailedArmMode Ready 2014-11-10 20:02:03.828 2014-11-10 20:01:58.176
Conditions
Name Repeat Expression State Last True Last False
AlarmArmedAway No AlarmArmMode eq 'Armed' false 2014-11-10 08:35:33.471 2014-11-10 17:07:17.910
FrontDoorOpenTooLong No FrontDoorOpened AND (FrontDoorOpened; NOW > 15:00) false 2014-06-04 19:19:32.103 2014-06-04 19:46:07.062
BackDoorOpenTooLong No BackDoorOpened AND (BackDoorOpened; NOW > 15:00) false 2014-11-06 14:18:33.108 2014-11-06 14:18:47.347
FrontDoorNeedstoBeLocked No (FrontDoorUnlocked AND (FrontDoorUnlocked; NOW > 15:00) AND FrontDoorClosed AND (FrontDoorClosed; NOW > 15:00)) false 2014-11-06 14:43:33.112 2014-11-06 14:43:38.213
BackDoorNeedstoBeLocked No (BackDoorUnlocked AND (BackDoorUnlocked; NOW > 15:00) AND BackDoorClosed AND (BackDoorClosed; NOW > 15:00)) false 2014-11-10 08:27:17.139 2014-11-10 08:27:22.329
FrontDoorNeedsLights No FrontDoorOpened AND IsNight false 2014-11-10 18:17:22.312 2014-11-10 18:17:29.816
GarageDoorOpenTooLong No GarageDoorOpened AND (GarageDoorOpened; NOW > 60:00) false 2014-10-23 18:02:21.119 2014-10-23 18:46:03.830
GarageNeedsLights No GarageDoorOpened AND IsNight false 2014-11-10 18:16:41.538 2014-11-10 18:18:35.146
LRNeedsLampOn No LRLampOff AND LREveningLampSchedule and NOT (LREveningLampSchedule; LRLampOff) false 2014-11-10 16:28:58.358 2014-11-10 16:28:58.709
LRLampAutoOn No LRNeedsLampOn; LRLampOn < 30 true 2014-11-10 16:28:58.710 2014-11-10 16:28:58.364
LRNeedsLampOff No LRLampOn and (LRLampAutoOn OR (LRLampOn; LREveningLampSchedule)) and (LRMotion; Now > 30:00) and (LROccupancy; Now > 30:00) and (NOT LREveningLampSchedule) false 2014-11-08 00:37:16.141 2014-11-08 00:37:31.750
Stairs1stto2ndNeedsLightsOn No BackDoorOpened or FrontDoorOpened or (Occupancy1stto2nd and NOT AlarmArmedAway) true 2014-11-10 20:50:42.126 2014-11-10 20:03:49.134
Stairs1stto2ndNeedsLightsOff No BackDoorClosed and (BackDoorClosed; Now > 2:00) and FrontDoorClosed and (FrontDoorClosed ; Now > 2:00) and NOT Occupancy1stto2nd false 2014-11-10 20:04:06.149 2014-11-10 20:50:42.133
Lights1stto2ndOffViaAuto No (Lights1stto2ndAutoOff; Lights1stto2ndOff < 30) true 2014-11-06 18:46:11.535 2014-11-06 13:59:35.318
Lights1stto2ndAutoOnDay No Stairs1stto2ndNeedsLightsOn and Lights1stto2ndOff and (Lights1stto2ndOffViaAuto or (Lights1stto2ndOff; Now > 60:00)) and NOT IsNight false 2014-11-10 08:33:54.614 2014-11-10 08:33:55.114
Lights1stto2ndAutoOnNight No Stairs1stto2ndNeedsLightsOn and Lights1stto2ndOff and (Lights1stto2ndOffViaAuto or (Lights1stto2ndOff; Now > 60:00)) and IsNight false 2014-11-10 18:17:12.327 2014-11-10 18:17:12.824
Lights1stto2ndOnViaAuto No (Lights1stto2ndAutoOnNight; Lights1stto2ndOn < 30) OR (Lights1stto2ndAutoOnDay; Lights1stto2ndOn < 30) true 2014-11-10 18:17:12.827 2014-11-10 18:17:12.337
Lights1stto2ndAutoOff No Lights1stto2ndOn and Stairs1stto2ndNeedsLightsOff and (Lights1stto2ndOnViaAuto or (Lights1stto2ndOn; Now > 60:00)) false 2014-11-10 20:04:06.190 2014-11-10 20:50:42.149
FirstFloorHallLightsOffViaAuto No (FirstFloorHallLightsAutoOff; FirstFloorHallLightsOff < 30) true 2014-11-06 21:59:21.897 2014-11-06 20:51:22.512
FirstFloorHallLightsAutoOn No Stairs1stto2ndNeedsLightsOn and FirstFloorHallLightsOff and (FirstFloorHallLightsOffViaAuto or (FirstFloorHallLightsOff; Now > 60:00)) false 2014-11-10 20:50:42.154 2014-11-10 20:50:42.524
FirstFloorHallLightsOnViaAuto No (FirstFloorHallLightsAutoOn; FirstFloorHallLightsOn < 30) true 2014-11-10 20:50:42.526 2014-11-10 20:50:42.161
FirstFloorHallLightsAutoOff No FirstFloorHallLightsOn and Stairs1stto2ndNeedsLightsOff and (FirstFloorHallLightsOnViaAuto or (FirstFloorHallLightsOn; Now > 60:00) ) false 2014-11-10 20:04:06.227 2014-11-10 20:04:06.939
BackDoorNeedsLights No BackDoorOpened and (IsNight or NOT GarageDoorOpened) false 2014-11-10 20:01:57.744 2014-11-10 20:02:03.745
OfficeFanLightsOffViaAuto No (OfficeNeedsFanLightsOff; OfficeFanLightsOff < 30) true 2014-11-03 18:00:17.565 2014-11-03 13:23:25.820
OfficeNeedsFanLightsOn No OfficeOccupancy and NOT AlarmArmedAway and OfficeFanLightsOff and (OfficeFanLightsOffViaAuto or (OfficeFanLightsOff ; Now > 60:00)) false 2014-11-10 20:51:03.247 2014-11-10 20:51:04.155
OfficeFanLightsOnViaAuto No (OfficeNeedsFanLightsOn; OfficeFanLightsOn < 30) true 2014-11-10 20:51:04.157 2014-11-10 20:51:03.254
OfficeNeedsFanLightsOff No OfficeFanLightsOn and (OfficeFanLightsOnViaAuto or (OfficeFanLightsOn ; Now > 60:00)) and (OfficeOccupancy ; Now > 10:00) false 2014-11-10 20:13:06.175 2014-11-10 20:13:06.538
PatioNeedsLightsOff No PatioLightsOn and (PatioLightsOn ; Now > 04:00:00) false 2014-09-28 03:43:21.184 2014-09-28 03:43:21.604
BedroomClosetLightsOffViaAuto No (BedroomClosetNeedsLightsOff; BedroomClosetLightsOff < 30) true 2014-11-03 17:54:34.001 2014-11-03 13:23:24.068
BedroomClosetNeedsLightsOn No BedroomClosetLightsOff and BedroomClosetOccupancy and (BedroomClosetLightsOffViaAuto or (BedroomClosetLightsOff ; Now > 60:00)) false 2014-11-10 18:33:53.978 2014-11-10 18:33:54.345
BedroomClosetLightsOnViaAuto No (BedroomClosetNeedsLightsOn; BedroomClosetLightsOn < 30) true 2014-11-10 18:33:54.347 2014-11-10 18:33:53.985
BedroomClosetNeedsLightsOff No BedroomClosetLightsOn and (BedroomClosetLightsOnViaAuto or (BedroomClosetLightsOn ; Now > 60:00)) and NOT BedroomClosetOccupancy false 2014-11-10 18:35:57.193 2014-11-10 18:35:57.584
Lights2ndto3rdOffViaAuto No (Stairs2ndto3rdNeedsLightsOff; Lights2ndto3rdOff < 30) true 2014-11-10 00:05:21.586 2014-11-09 22:58:42.076
Stairs2ndto3rdNeedsLightsOn No Occupancy2ndto3rd and Lights2ndto3rdOff and IsNight and (Lights2ndto3rdOffViaAuto or (Lights2ndto3rdOff ; Now > 60:00)) false 2014-11-10 19:06:10.768 2014-11-10 19:06:11.280
Lights2ndto3rdOnViaAuto No (Stairs2ndto3rdNeedsLightsOn; Lights2ndto3rdOn < 30) true 2014-11-10 19:06:11.282 2014-11-10 19:06:10.774
Stairs2ndto3rdNeedsLightsOff No Lights2ndto3rdOn and (Lights2ndto3rdOnViaAuto or (Lights2ndto3rdOn ; Now > 60:00)) and NOT Occupancy2ndto3rd false 2014-11-10 19:08:14.307 2014-11-10 19:08:15.066
CatFeederNeedsOff No CatFeederOn and (CatFeederOn; Now > 01:00:00) false 2014-11-01 19:24:06.220 2014-11-01 19:24:06.718
BlindsNeedClosing No BlindsCloseNight true 2014-11-10 17:43:58.257 2014-11-10 06:33:01.473
BlindsNeedOpeningHome No BlindsOpenDay and NOT AlarmArmedAway false 2014-11-10 17:07:18.022 2014-11-10 17:43:57.214
BlindsNeedOpeningAway No BlindsOpenDay and AlarmArmedAway false 2014-11-10 08:35:33.589 2014-11-10 17:07:18.027
Startup LUA
function MoveQMotionShades(ParamString)
local shadeChar,openAmtChar = string.match(ParamString,"(%d+),(%d+)")
local shadeNum = tonumber(shadeChar)
local openAmtNum = tonumber(openAmtChar)
local CommandtoSend
if shadeNum == 1 then
if openAmtNum == 100 then CommandtoSend= string.char(0x01,0x07,0x00,0x05,0x01,0x01,0x01,0x00,0xFC) -- Channel 1 Up
elseif openAmtNum == 75 then CommandtoSend= string.char(0x01,0x07,0x00,0x05,0x01,0x01,0x04,0x00,0xF9) -- Channel 1 75% Up
elseif openAmtNum == 50 then CommandtoSend= string.char(0x01,0x07,0x00,0x05,0x01,0x01,0x08,0x00,0xF5) -- Channel 1 50% Up
elseif openAmtNum == 25 then CommandtoSend= string.char(0x01,0x07,0x00,0x05,0x01,0x01,0x0C,0x00,0xF1) -- Channel 1 25% Up
elseif openAmtNum == 0 then CommandtoSend= string.char(0x01,0x07,0x00,0x05,0x01,0x01,0x02,0x00,0xFF) -- Channel 1 Down
end
elseif shadeNum == 2 then
if openAmtNum == 100 then CommandtoSend= string.char(0x01,0x07,0x00,0x05,0x01,0x02,0x01,0x00,0xFF) -- Channel 1 Up
elseif openAmtNum == 75 then CommandtoSend= string.char(0x01,0x07,0x00,0x05,0x01,0x02,0x04,0x00,0xFA) -- Channel 1 75% Up
elseif openAmtNum == 50 then CommandtoSend= string.char(0x01,0x07,0x00,0x05,0x01,0x02,0x08,0x00,0xF6) -- Channel 1 50% Up
elseif openAmtNum == 25 then CommandtoSend= string.char(0x01,0x07,0x00,0x05,0x01,0x02,0x0C,0x00,0xF2) -- Channel 1 25% Up
elseif openAmtNum == 0 then CommandtoSend= string.char(0x01,0x07,0x00,0x05,0x01,0x02,0x02,0x00,0xFC) -- Channel 1 Down
end
elseif shadeNum == 3 then
if openAmtNum == 100 then CommandtoSend= string.char(0x01,0x07,0x00,0x05,0x01,0x03,0x01,0x00,0xFE) -- Channel 1 Up
elseif openAmtNum == 75 then CommandtoSend= string.char(0x01,0x07,0x00,0x05,0x01,0x03,0x04,0x00,0xFB) -- Channel 1 75% Up
elseif openAmtNum == 50 then CommandtoSend= string.char(0x01,0x07,0x00,0x05,0x01,0x03,0x08,0x00,0xF7) -- Channel 1 50% Up
elseif openAmtNum == 25 then CommandtoSend= string.char(0x01,0x07,0x00,0x05,0x01,0x03,0x0C,0x00,0xF3) -- Channel 1 25% Up
elseif openAmtNum == 0 then CommandtoSend= string.char(0x01,0x07,0x00,0x05,0x01,0x03,0x02,0x00,0xFD) -- Channel 1 Down
end
elseif shadeNum == 4 then
if openAmtNum == 100 then CommandtoSend= string.char(0x01,0x07,0x00,0x05,0x01,0x04,0x01,0x00,0xF9) -- Channel 1 Up
elseif openAmtNum == 75 then CommandtoSend= string.char(0x01,0x07,0x00,0x05,0x01,0x04,0x04,0x00,0xFC) -- Channel 1 75% Up
elseif openAmtNum == 50 then CommandtoSend= string.char(0x01,0x07,0x00,0x05,0x01,0x04,0x08,0x00,0xF0) -- Channel 1 50% Up
elseif openAmtNum == 25 then CommandtoSend= string.char(0x01,0x07,0x00,0x05,0x01,0x04,0x0C,0x00,0xF4) -- Channel 1 25% Up
elseif openAmtNum == 0 then CommandtoSend= string.char(0x01,0x07,0x00,0x05,0x01,0x04,0x02,0x00,0xFA) -- Channel 1 Down
end
end
-- Connect and Send Command
local socket = require("socket")
host = "192.168.0.123"
c = assert(socket.connect(host, 4999))
c:settimeout(5)
local sres, serr = c:send(CommandtoSend)
print("Send:", sres, serr)
local data, rerr = c:receive(5)
luup.log (data)
print ("Receive:", data, rerr)
c:close()
end
Actions
Actions for Condition: BackDoorNeedsLights
Device Actions:
Immediate
Device Action Arguments
Garage Light SetTarget newTargetValue=1
Delay 05:00
Device Action Arguments
Garage Light SetTarget newTargetValue=0
Actions for Condition: BackDoorNeedstoBeLocked
Device Actions:
Immediate
Device Action Arguments
Back Door Deadbolt SetTarget newTargetValue=1
Actions for Condition: BedroomClosetNeedsLightsOff
Device Actions:
Immediate
Device Action Arguments
Bedroom Closet Lights SetTarget newTargetValue=0
Actions for Condition: BedroomClosetNeedsLightsOn
Device Actions:
Immediate
Device Action Arguments
Bedroom Closet Lights SetTarget newTargetValue=1
Actions for Condition: BlindsNeedClosing
LUA:
MoveQMotionShades("1,0")
MoveQMotionShades("2,0")
MoveQMotionShades("3,0")
MoveQMotionShades("4,0")
luup.call_delay("MoveQMotionShades",10,"1,0")
luup.call_delay("MoveQMotionShades",20,"2,0")
luup.call_delay("MoveQMotionShades",30,"3,0")
luup.call_delay("MoveQMotionShades",40,"4,0")
Actions for Condition: BlindsNeedOpeningAway
LUA:
luup.call_delay("MoveQMotionShades",40,"1,0")
luup.call_delay("MoveQMotionShades",50,"2,0")
luup.call_delay("MoveQMotionShades",60,"3,25")
luup.call_delay("MoveQMotionShades",70,"4,25")
Actions for Condition: BlindsNeedOpeningHome
LUA:
luup.call_delay("MoveQMotionShades",40,"1,50")
luup.call_delay("MoveQMotionShades",50,"2,50")
luup.call_delay("MoveQMotionShades",60,"3,100")
luup.call_delay("MoveQMotionShades",70,"4,100")
Actions for Condition: CatFeederNeedsOff
Device Actions:
Immediate
Device Action Arguments
Cat Feeder SetTarget newTargetValue=0
Actions for Condition: FirstFloorHallLightsAutoOff
Device Actions:
Immediate
Device Action Arguments
First Floor Hall SetTarget newTargetValue=0
Actions for Condition: FirstFloorHallLightsAutoOn
Device Actions:
Immediate
Device Action Arguments
First Floor Hall SetTarget newTargetValue=1
Actions for Condition: FrontDoorNeedsLights
Device Actions:
Immediate
Device Action Arguments
Front Yard Lights SetTarget newTargetValue=1
Delay 05:00
Device Action Arguments
Front Yard Lights SetTarget newTargetValue=0
Actions for Condition: FrontDoorNeedstoBeLocked
Device Actions:
Immediate
Device Action Arguments
Front Door Deadbolt SetTarget newTargetValue=1
Actions for Condition: GarageNeedsLights
Device Actions:
Immediate
Device Action Arguments
Garage Light SetTarget newTargetValue=1
Back Yard Lights SetTarget newTargetValue=1
Delay 10:00
Device Action Arguments
Back Yard Lights SetTarget newTargetValue=0
Garage Light SetTarget newTargetValue=0
Actions for Condition: Lights1stto2ndAutoOff
Device Actions:
Immediate
Device Action Arguments
1st to 2nd Stair Lights SetLoadLevelTarget newLoadlevelTarget=0
Actions for Condition: Lights1stto2ndAutoOnDay
Device Actions:
Immediate
Device Action Arguments
1st to 2nd Stair Lights SetLoadLevelTarget newLoadlevelTarget=90
Actions for Condition: Lights1stto2ndAutoOnNight
Device Actions:
Immediate
Device Action Arguments
1st to 2nd Stair Lights SetLoadLevelTarget newLoadlevelTarget=50
Actions for Condition: LRNeedsLampOff
Device Actions:
Immediate
Device Action Arguments
Living Room Lamp SetTarget newTargetValue=0
Actions for Condition: LRNeedsLampOn
Device Actions:
Immediate
Device Action Arguments
Living Room Lamp SetTarget newTargetValue=1
Actions for Condition: OfficeNeedsFanLightsOff
Device Actions:
Immediate
Device Action Arguments
Office Fan Lights SetLoadLevelTarget newLoadlevelTarget=0
Actions for Condition: OfficeNeedsFanLightsOn
Device Actions:
Immediate
Device Action Arguments
Office Fan Lights SetLoadLevelTarget newLoadlevelTarget=70
Actions for Condition: PatioNeedsLightsOff
Device Actions:
Immediate
Device Action Arguments
Patio Lights SetLoadLevelTarget newLoadlevelTarget=0
Actions for Condition: Stairs2ndto3rdNeedsLightsOff
Device Actions:
Immediate
Device Action Arguments
2nd to 3rd Stair Lights SetLoadLevelTarget newLoadlevelTarget=0
Actions for Condition: Stairs2ndto3rdNeedsLightsOn
Device Actions:
Immediate
Device Action Arguments
2nd to 3rd Stair Lights SetLoadLevelTarget newLoadlevelTarget=30
Notifications
Name Description Users Last Sent
NotifyBackDoorOpenTooLong Lighting PLEG has satisfied condition: BackDoorOpenTooLong wilme2 lucretia132 2014-11-06 14:18:33.108
NotifyFrontDoorOpenTooLong Lighting PLEG has satisfied condition: FrontDoorOpenTooLong wilme2 lucretia132 2014-06-04 19:19:32.103
NotifyGarageDoorOpenTooLong Lighting PLEG has satisfied condition: GarageDoorOpenTooLong wilme2 lucretia132 2014-10-23 18:02:21.119