[quote=“RichardTSchaefer, post:17, topic:180458”]You can create them easily with some LUA Script:
The serviceID is:
urn:rts-services-com:serviceId:ProgramLogicC
for all the variables except ConditionMap, it’s servicedID is:
urn:rts-services-com:serviceId:ProgramLogicEG
To Create a variable:
luup.variable_set(ServiceID, VariableName, “”, deviceID)
And you MUST do them in order, one at a time and save after each... Due to your programming checks.
Yes you have to create them ... they do not have to be done in order ... and they do not need to be done one at a time.
The checks are only there if you open up any tabs besides the advanced tab, control tab, or notifications.
Do not click on any button that is PLEG specific.[/quote]
Got it. So manually create the devices using the PLEG app, then script the variable population like this…
luup.variable_set(urn:rts-services-com:serviceId:ProgramLogicC, Schedules, "[['MorningTimeON','2','06:30a:00','1,2,3,4,5,6,7','','0','','',''],['EveningTimeON','2','18:45:00','1,2,3,4,5,6,7','',null,null],['MorningTimeOFF','2','09:00:00','1,2,3,4,5,6,7','',null,null],['EveningTimeOFF','2','21:30:00','1,2,3,4,5,6,7','',null,null]]
", 127)
... and so on for each
also, response from Vera Support…
This is the log sequence in which i see the PLEG error.
01 04/01/14 11:41:46.971 LuaInterface::CallFunction_Startup-1 device 211 function Initialize failed [string ?module(?L_ProgramLogicCRG", package.seeall)?"]:100: attempt to perform arithmetic on local ?tmp? (a nil value) LEAK this:61440 start:1568768 to 0?186b000 <0?2bb07680>
01 04/01/14 11:41:46.971 LuImplementation::StartLua running startup code for 211 I_ProgramLogicEG.xml failed <0?2bb07680>
According to this sequence one PLEG condition has nil/(nothing or zero) value and it;s causing the error.
In the
… does this tell you anything – before I blow everything away?