I have updated my PLEG to 5.2 yesterday. Everything was working fine. In one of my PLEGs, i have just deleted a action which was not neede, then deleted the corresponding condition. Press save, and after reload i get Lighting PLEG: Startup Lua failed
In the meantime, i guess thats stopping this PLEG from working ?
What’s in the log file ?
I am at work so no access to the log at the moment, i tried the info viewer but that does not seem to work remotely either, so i’ll get a log to you in 6 or 7 hours when i’m back home
In the meantime, a few things from the Advanced tab, maybe you can see something wrong there, i cant…
I have put the deleted condition (Junmute) back in to see if that solves the problem, it didnt
ConditionMap
[‘BothOff’,‘Not%20On3’,‘AutoOn1’,‘Night1%20and%20MotionOn2%20and%20BothOff%0A’,‘BothAutoOn’,‘%28On3%20and%20%28AutoOn1%3B%20On3%20%3C%201%3A00%29%29%0A’,‘AutoOff1’,‘%28MotionOn2%3B%20Now%20%3E%201%3A30%29%20or%20%28Not%20Night1%29%0A’,‘LastTrip’,‘BothAutoOn%20and%20MotionOn2’,‘AutoOn2’,‘Night1%20and%20HallmotionOn’,‘LastTripHall’,‘AutoOn2%20and%20HallmotionOn’,‘AutoOff2’,‘%28AutoOn2%20and%20%28LastTripHall%3B%20Now%20%3E%201%3A30%29%29%20or%20%28Not%20Night1%29’,‘GardenOn’,‘%28%28%2819%3A00%3A00%3BNOW%29%20and%20WE11%3D%3D0%29%20or%20%28%2817%3A00%3A00%3BNOW%29%20and%20WE11%3D%3D1%29%29%20and%20Night1%20and%20NOT%20Vacation1’,‘GardenOff’,‘%28WE11%3D%3D0%20and%20%2822%3A25%3A00%3BNOW%29%29%20or%20%28WE11%3D%3D1%20and%20%2822%3A55%3A00%3BNOW%29%29%20’,‘Patiodoor’,‘Patio_door_opened’,‘FDmotion’,‘MotionFDarmed’,‘Mikeaway’,‘Mdistance1%20%3E%201’,‘Mhome’,‘Mikehome%20and%20PingMike’,‘Mcomhome’,‘%28Mdirection%20%3D%3D%2075%29%20and%20Mdistance1%20%3C%201’,‘Jhome’,‘%28Jdirection%20%3D%3D%20100%29%20and%20PingJust’,‘Jmute’,‘%28Jhome%3B%20NOW%20%3E%20660%29%20and%20PingJust’,‘Jgoingaway’,‘%28Jdirection%20%3D%3D%2025%29’,‘Porchopen’,‘Porchdooropen’,‘Mmute’,‘%28Mhome%3B%20NOW%20%3E%20660%29%20and%20PingMike’,‘Mcomdark’,‘Mcomhome%20and%20Dark’,‘Junmute’,‘Porchdooropen’]
ObjectStatusMap
{{name = ‘BothOff’, state = true, seq = 1381813677.6826},{name = ‘AutoOn1’, state = false, seq = 1381813530.3517},{name = ‘BothAutoOn’, state = false, seq = 1381813530.9588},{name = ‘AutoOff1’, state = true, seq = 1381813677.1093},{name = ‘LastTrip’, state = false, seq = 1381813530.9638},{name = ‘AutoOn2’, state = false, seq = 1381814756.5199},{name = ‘LastTripHall’, state = false, seq = 1381814756.5261},{name = ‘AutoOff2’, state = true, seq = 1381818182.1307},{name = ‘GardenOn’, state = false, seq = 1381773622.1222},{name = ‘GardenOff’, state = false, seq = 1381785925.1774},{name = ‘On1’, state = true, seq = 1381605737.0908},{name = ‘On2’, state = true, seq = 1381605837.1313},{name = ‘HallmotionOn’, state = false, seq = 1381835984.9262},{name = ‘Night1’, state = false, seq = 1381773186.1299},{name = ‘Vacation1’, state = false, seq = 0},{name = ‘On3’, state = false, seq = 1381813530.9527},{name = ‘Patio_door_opened’, state = false, seq = 0},{name = ‘Patiodoor’, state = false, seq = 0},{name = ‘FDmotion’, state = false, seq = 1381515263.0001},{name = ‘MotionOn2’, state = false, seq = 1381834310.0031},{name = ‘MotionFDarmed’, state = false, seq = 1381515262.9559},{name = ‘Jdistance’, state = ‘0%2E008’, seq = 1381836374.2746},{name = ‘Mdistance1’, state = ‘35%2E894’, seq = 1381831679.5049},{name = ‘WE11’, state = ‘0’, seq = 1381705200.196},{name = ‘Mikeaway’, state = true, seq = 1381820112.6376},{name = ‘Mikehome’, state = false, seq = 1381771165.9659},{name = ‘Mcomhome’, state = false, seq = 1381770971.2576},{name = ‘Mdirection’, state = ‘0’, seq = 1381821014.1519},{name = ‘PingMike’, state = false, seq = 1381812787.3786},{name = ‘JUnmute’, state = false, seq = 1381834364.8366},{name = ‘Porchdooropen’, state = false, seq = 1381834364.8033},{name = ‘Jdirection’, state = ‘100’, seq = 1381835472.1622},{name = ‘Jhome’, state = true, seq = 1381837290.4111},{name = ‘Jmute’, state = false, seq = 1381834057.2091},{name = ‘Jgoingaway’, state = false, seq = 0},{name = ‘PingJust’, state = true, seq = 1381837290.3737},{name = ‘Porchopen’, state = false, seq = 1381834364.844},{name = ‘Mhome’, state = false, seq = 1381812787.4094},{name = ‘Mmute’, state = false, seq = 1381812897.1839},{name = ‘Dark’, state = false, seq = 0},{name = ‘Mcomdark’, state = false, seq = 0},{name = ‘NOW’, state = true, seq = 1381837268.1004},{name = ‘Junmute’, state = false, seq = 0},}
Properties
[[‘Mdistance1’,‘317’,‘urn:upnp-org:serviceId:IPhoneLocator1’,‘Distance’],[‘Jdistance’,‘318’,‘urn:upnp-org:serviceId:IPhoneLocator1’,‘Distance’],[‘WE11’,‘251’,‘urn:dcineco-com:serviceId:LogicTimer1’,‘Weekend’],[‘Mdirection’,‘317’,‘urn:upnp-org:serviceId:IPhoneLocator1’,‘IconCode’],[‘Jdirection’,‘318’,‘urn:upnp-org:serviceId:IPhoneLocator1’,‘IconCode’]]
TriggerDeviceVariableMap
{{name = ‘MotionOn1’, device= 215, service= ‘urn:micasaverde-com:serviceId:SecuritySensor1’, args = {{name = ‘Tripped’, op = ‘=’, value = ‘1’}, {name = ‘Armed’, value = ‘1’, op = ‘=’}, } }, {name = ‘On1’, device= 212, service= ‘urn:upnp-org:serviceId:SwitchPower1’, args = {{name = ‘Status’, op = ‘=’, value = ‘1’}, } }, {name = ‘On2’, device= 213, service= ‘urn:upnp-org:serviceId:SwitchPower1’, args = {{name = ‘Status’, op = ‘=’, value = ‘1’}, } }, {name = ‘HallmotionOn’, device= 203, service= ‘urn:micasaverde-com:serviceId:SecuritySensor1’, args = {{name = ‘Tripped’, op = ‘=’, value = ‘1’}, {name = ‘Armed’, value = ‘1’, op = ‘=’}, } }, {name = ‘Night1’, device= 255, service= ‘urn:rts-services-com:serviceId:DayTime’, args = {{name = ‘Status’, op = ‘=’, value = ‘0’}, } }, {name = ‘Vacation1’, device= 249, service= ‘urn:dcineco-com:serviceId:MSwitch1’, args = {{name = ‘Status8’, op = ‘=’, value = ‘1’}, } }, }
Actions
{‘AutoOn1’:[{‘delay’:0,‘actions’:[{‘device’:‘297’,‘service’:‘urn:upnp-org:serviceId:Dimming1’,‘action’:‘SetLoadLevelTarget’,‘arguments’:[{‘name’:‘newLoadlevelTarget’,‘value’:‘100’}]}]}],‘AutoOff1’:[{‘delay’:0,‘actions’:[{‘device’:‘297’,‘service’:‘urn:upnp-org:serviceId:Dimming1’,‘action’:‘SetLoadLevelTarget’,‘arguments’:[{‘name’:‘newLoadlevelTarget’,‘value’:‘0’}]}]}],‘AutoOn2’:[{‘delay’:0,‘actions’:[{‘device’:‘3’,‘service’:‘urn:upnp-org:serviceId:SwitchPower1’,‘action’:‘SetTarget’,‘arguments’:[{‘name’:‘newTargetValue’,‘value’:‘1’}]}]}],‘AutoOff2’:[{‘delay’:0,‘actions’:[{‘device’:‘3’,‘service’:‘urn:upnp-org:serviceId:SwitchPower1’,‘action’:‘SetTarget’,‘arguments’:[{‘name’:‘newTargetValue’,‘value’:‘0’}]}]}],‘GardenOn’:[{‘delay’:0,‘actions’:[{‘device’:‘235’,‘service’:‘urn:upnp-org:serviceId:SwitchPower1’,‘action’:‘SetTarget’,‘arguments’:[{‘name’:‘newTargetValue’,‘value’:‘1’}]},{‘device’:‘237’,‘service’:‘urn:upnp-org:serviceId:SwitchPower1’,‘action’:‘SetTarget’,‘arguments’:[{‘name’:‘newTargetValue’,‘value’:‘1’}]},{‘device’:‘234’,‘service’:‘urn:upnp-org:serviceId:SwitchPower1’,‘action’:‘SetTarget’,‘arguments’:[{‘name’:‘newTargetValue’,‘value’:‘1’}]}]}],‘GardenOff’:[{‘delay’:0,‘actions’:[{‘device’:‘237’,‘service’:‘urn:upnp-org:serviceId:SwitchPower1’,‘action’:‘SetTarget’,‘arguments’:[{‘name’:‘newTargetValue’,‘value’:‘0’}]},{‘device’:‘234’,‘service’:‘urn:upnp-org:serviceId:SwitchPower1’,‘action’:‘SetTarget’,‘arguments’:[{‘name’:‘newTargetValue’,‘value’:‘0’}]},{‘device’:‘235’,‘service’:‘urn:upnp-org:serviceId:SwitchPower1’,‘action’:‘SetTarget’,‘arguments’:[{‘name’:‘newTargetValue’,‘value’:‘0’}]}]}],‘Patiodoor’:[{‘delay’:0,‘actions’:[{‘device’:‘221’,‘service’:‘urn:rts-services-com:serviceId:ProgramLogicC’,‘action’:‘RunScene’,‘arguments’:[{‘name’:‘SceneNameOrNumber’,‘value’:‘63’}]}]}],‘Mikeaway’:[{‘delay’:0,‘actions’:[{‘device’:‘256’,‘service’:‘urn:dcineco-com:serviceId:MSwitch1’,‘action’:‘SetStatus7’,‘arguments’:[{‘name’:‘newStatus7’,‘value’:‘1’}]},{‘device’:‘256’,‘service’:‘urn:dcineco-com:serviceId:MSwitch1’,‘action’:‘SetStatus8’,‘arguments’:[{‘name’:‘newStatus8’,‘value’:‘0’}]}]}],‘Mcomhome’:[{‘delay’:0,‘actions’:[{‘device’:‘256’,‘service’:‘urn:dcineco-com:serviceId:MSwitch1’,‘action’:‘SetStatus3’,‘arguments’:[{‘name’:‘newStatus3’,‘value’:‘1’}]}]}],‘FDmotion’:[{‘delay’:0,‘actions’:[{‘device’:‘221’,‘service’:‘urn:rts-services-com:serviceId:ProgramLogicC’,‘action’:‘RunScene’,‘arguments’:[{‘name’:‘SceneNameOrNumber’,‘value’:‘88’}]}]}],‘Jmute’:[{‘delay’:0,‘actions’:[{‘device’:‘318’,‘service’:‘urn:upnp-org:serviceId:IPhoneLocator1’,‘action’:‘SetMute’,‘arguments’:[{‘name’:‘newMuteStatus’,‘value’:‘1’}]}]}],‘Jgoingaway’:[],‘Porchopen’:[{‘delay’:0,‘actions’:[{‘device’:‘318’,‘service’:‘urn:upnp-org:serviceId:IPhoneLocator1’,‘action’:‘SetMute’,‘arguments’:[{‘name’:‘newMuteStatus’,‘value’:‘0’}]},{‘device’:‘317’,‘service’:‘urn:upnp-org:serviceId:IPhoneLocator1’,‘action’:‘SetMute’,‘arguments’:[{‘name’:‘newMuteStatus’,‘value’:‘0’}]}]},{‘delay’:120,‘actions’:[{‘device’:‘318’,‘service’:‘urn:upnp-org:serviceId:IPhoneLocator1’,‘action’:‘ForceRefresh’,‘arguments’:[{‘name’:‘PresentStatus’,‘value’:‘0’}]},{‘device’:‘317’,‘service’:‘urn:upnp-org:serviceId:IPhoneLocator1’,‘action’:‘ForceRefresh’,‘arguments’:[{‘name’:‘PresentStatus’,‘value’:‘0’}]}]},{‘delay’:240,‘actions’:[{‘device’:‘318’,‘service’:‘urn:upnp-org:serviceId:IPhoneLocator1’,‘action’:‘ForceRefresh’,‘arguments’:[{‘name’:‘PresentStatus’,‘value’:‘0’}]},{‘device’:‘317’,‘service’:‘urn:upnp-org:serviceId:IPhoneLocator1’,‘action’:‘ForceRefresh’,‘arguments’:[{‘name’:‘PresentStatus’,‘value’:‘0’}]}]},{‘delay’:360,‘actions’:[{‘device’:‘318’,‘service’:‘urn:upnp-org:serviceId:IPhoneLocator1’,‘action’:‘ForceRefresh’,‘arguments’:[{‘name’:‘PresentStatus’,‘value’:‘0’}]},{‘device’:‘317’,‘service’:‘urn:upnp-org:serviceId:IPhoneLocator1’,‘action’:‘ForceRefresh’,‘arguments’:[{‘name’:‘PresentStatus’,‘value’:‘0’}]}]},{‘delay’:600,‘actions’:[{‘device’:‘318’,‘service’:‘urn:upnp-org:serviceId:IPhoneLocator1’,‘action’:‘ForceRefresh’,‘arguments’:[{‘name’:‘PresentStatus’,‘value’:‘0’}]},{‘device’:‘317’,‘service’:‘urn:upnp-org:serviceId:IPhoneLocator1’,‘action’:‘ForceRefresh’,‘arguments’:[{‘name’:‘PresentStatus’,‘value’:‘0’}]}]}],‘Mmute’:[{‘delay’:0,‘actions’:[{‘device’:‘317’,‘service’:‘urn:upnp-org:serviceId:IPhoneLocator1’,‘action’:‘SetMute’,‘arguments’:[{‘name’:‘newMuteStatus’,‘value’:‘1’}]}]}],‘Mhome’:[{‘delay’:0,‘actions’:[{‘device’:‘221’,‘service’:‘urn:rts-services-com:serviceId:ProgramLogicC’,‘action’:‘RunScene’,‘arguments’:[{‘name’:‘SceneNameOrNumber’,‘value’:‘94’}]}]},{‘delay’:300,‘actions’:[{‘device’:‘297’,‘service’:‘urn:upnp-org:serviceId:Dimming1’,‘action’:‘SetLoadLevelTarget’,‘arguments’:[{‘name’:‘newLoadlevelTarget’,‘value’:‘0’}]}]}],‘Mcomdark’:[{‘delay’:0,‘actions’:[{‘device’:‘297’,‘service’:‘urn:upnp-org:serviceId:Dimming1’,‘action’:‘SetLoadLevelTarget’,‘arguments’:[{‘name’:‘newLoadlevelTarget’,‘value’:‘100’}]}]}],‘Junmute’:[]}
ActionsMap
{JUnmute= {Start =‘1381834364’, Next = 5},Porchopen= {Start =‘1381834364’, Next = 2},}
I have sent an email with the log
Yep,
There is a bug when you remove actions … while delayed actions are still pending.
Here is a fix …
Great, many thanks. Error is gone, PLEG is working again !
@RichardT
I’m getting a similar message as well. I came home tonight and attempted to use my switch scene to enable the alarm. Found out in looking at my PLEG that I had a condition that wasn’t resetting. I decided to add the _ into the condition name to enable it as a repeatable evaluation. Once I saved the changes and waited for the restart, I got a Startup Lua Failed message, and in the PLEG device, it says: Error restoring condition map. I just upgraded to 5.3 earlier this afternoon.
At this point, all my automation in this PLEG is inactive as it doesn’t have any of the logic loaded. Don’t know how I can “undo” the change I made and get back to working state let alone make the change to the condition.
You can restore from Vera from last night’s backup.
I would like for you to save the output from the following command before you make the change again … DO NOT POST the output. It may have passwords to your camera’s, codes for your notification services … etc.
http://Your.Vera.IP.Address:3480/data_request?id=user_data
You can find and search for the sensitive data and delete it … or just email me the file. I am too busy to look at info more than I need to solve a problem.
@RichardT
Sent you the content in email.
I also ran into a snafu when trying to restore. Apparently Vera doesn’t like Safari as restoring from backup didn’t work. As soon as I did it from Chrome, worked like a charm. When will the world solidify the browser support for IE/Chrome/Firefox/Safari/Others!! >:(
In the process of restoring now thought and hopefully I can straighten it all out now form what was missing.
I am having same issue for past few days. Any time I make changes to the PLEG, I get a Error in lua for scenes and events. I had this in 5.2 right around 5.3 came out and now again in 5.3 - i’d rather not do a restore as i made quite a few other changes.
Can you help?
I need to see the Log Files and if there is an error at the Top of the Dashboard …
I need to see a report for your PLEG and the error.
I just installed 5.5 and I am getting the same thing. If I try to hit the inputs, conditions, or actions tabs I just get: Opening pleg_Inputs… and it never goes farther.
This is a new install so there can’t be any syntax issues.
Refresh your browser page. This is usually the F5 key.
Or F5 for the rest of us ![]()
The path between my brain and my fingers must be UDP: There is apparently no check that the intended message got through unscathed. ;D
I’ve tried reloading the browser. I’ve restarted chrome and then tried a different computer. I’ve uninstalled PLEG and reinstalled. What is it looking for exactly? What can I do to debug this? I’m fairly new to the veralite so I am still getting my bearings around the system.
here is a pull from the log file:
04 12/20/13 12:46:22.229 <0x2b541680>
02 12/20/13 12:47:52.103 ZW_Send_Data node 4 NO ROUTE (nil) <0x2b941680>
04 12/20/13 12:47:52.249 <0x2b541680>
02 12/20/13 12:49:22.103 ZW_Send_Data node 4 NO ROUTE (nil) <0x2b941680>
04 12/20/13 12:49:22.239 <0x2b541680>
02 12/20/13 12:50:32.489 luvd_get_info mg conn can’t read /etc/cmh-ludl//toolbox.js or /etc/cmh-lu//toolbox.js from filename /toolbox.js pPtrFile (null) <0x2d541680>
02 12/20/13 12:50:50.409 luvd_get_info mg conn can’t read /etc/cmh-ludl//J_ProgramLogicC.js or /etc/cmh-lu//J_ProgramLogicC.js from filename /J_ProgramLogicC.js pPtrFile (null) <0x2e141680>
02 12/20/13 12:50:52.106 ZW_Send_Data node 4 NO ROUTE (nil) <0x2b941680>
04 12/20/13 12:50:52.259 <0x2b541680>
02 12/20/13 12:52:22.102 ZW_Send_Data node 4 NO ROUTE (nil) <0x2b941680>
04 12/20/13 12:52:22.239 <0x2b541680>
02 12/20/13 12:53:52.103 ZW_Send_Data node 4 NO ROUTE (nil) <0x2b941680>
04 12/20/13 12:53:52.239 <0x2b541680>
02 12/20/13 12:55:22.104 ZW_Send_Data node 4 NO ROUTE (nil) <0x2b941680>
04 12/20/13 12:55:22.239 <0x2b541680>
Have you installed Program Logic Core from the app store? It is a prerequisite for PLEG.
That was it. Don’t know how I missed that.