Rigpapa,
i was trying to run some of my code in an Activity triggered by Reactor 2.0. It seems to error out. was trying to debug, but didn’t see the issue. perhaps a scope issue, but i can run the exact code (sans the print statements) in the test luup code window. here is the output from the logs if it helps:
50 11/20/18 19:33:36.741 luup_log:224: Reactor: Child 253 ("UTIL - Run Therms") configuration change, updating! <0x6f88b520>
06 11/20/18 19:33:36.752 Device_Variable::m_szValue_set device: 253 service: urn:toggledbits-com:serviceId:ReactorSensor variable: lastacc was: 1542760398 now: 1542760416 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x6f88b520>
50 11/20/18 19:33:36.784 luup_log:224: Reactor: "UTIL - Run Therms" (#253) now "tripped" <0x6f88b520>
06 11/20/18 19:33:36.785 Device_Variable::m_szValue_set device: 253 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: LastTrip was: 1542760391 now: 1542760416 #hooks: 0 upnp: 0 skip: 0 v:0xdd5788/NONE duplicate:0 <0x6f88b520>
06 11/20/18 19:33:36.785 Device_Variable::m_szValue_set device: 253 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Tripped was: 0 now: 1 #hooks: 0 upnp: 0 skip: 0 v:0xdd5660/NONE duplicate:0 <0x6f88b520>
06 11/20/18 19:33:36.786 Device_Variable::m_szValue_set device: 253 service: urn:toggledbits-com:serviceId:ReactorSensor variable: TripCount was: 29 now: 30 #hooks: 0 upnp: 0 skip: 0 v:0xe650a0/NONE duplicate:0 <0x6f88b520>
06 11/20/18 19:33:36.787 Device_Variable::m_szValue_set device: 224 service: urn:toggledbits-com:serviceId:Reactor variable: runscene was: [ ] now: [ ] #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x6f88b520>
06 11/20/18 19:33:36.789 Device_Variable::m_szValue_set device: 224 service: urn:toggledbits-com:serviceId:Reactor variable: runscene was: [ ] now: { "ctx253-sc__trip": { "starttime": 1542760416, "scene": "__trip", "taskid": "ctx253-sc__trip", "options": { "contextDevice": 253, "stopPriorScenes": true }, "owner": 253, "context": 253, "lastgroup": 0 } } #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x6f88b520>
50 11/20/18 19:33:36.790 luup_log:224: Reactor: "UTIL - Run Therms" (253) ["scene__trip_action1"]: before comment <0x6f88b520>
50 11/20/18 19:33:36.791 luup_log:224: Reactor: "UTIL - Run Therms" (253) ["scene__trip_action1"]: start of code <0x6f88b520>
01 11/20/18 19:33:36.792 luup_log:224: Reactor: "UTIL - Run Therms" (253) aborting scene "__trip" Lua execution at group step 1, Lua failed: 1 <0x6f88b520>
02 11/20/18 19:33:36.793 luup_log:224: Reactor: Lua:
print("before comment")
-- RUN THE THERMOSTATS EVERY HOUR IN CASE THE WATCHERS ARE IDLE
print("start of code")
sebbyCode.vLog("FROM Reactor Trigger", "Kicking off THERMOSTATS from a Reactor schedule")
print("sent vlog")
sebbyCode.setLocation()
print("ran setLocation")
return true <0x6f88b520>
06 11/20/18 19:33:36.793 Device_Variable::m_szValue_set device: 224 service: urn:toggledbits-com:serviceId:Reactor variable: runscene was: { "ctx253-sc__trip": { "starttime": 1542760416, "scene": "__trip", "taskid": "ctx253-sc__trip", "options": { "contextDevice": 253, "stopPriorScenes": true }, "owner": 253, "context": 253, "lastgroup": 0 } } now: [ ] #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x6f88b520>
06 11/20/18 19:33:36.794 Device_Variable::m_szValue_set device: 253 service: urn:toggledbits-com:serviceId:ReactorSensor variable: Message was: Not tripped now: Tripped #hooks: 0 upnp: 0 skip: 0 v:0xe59fb0/NONE duplicate:0 <0x6f88b520>
06 11/20/18 19:33:36.795 Device_Variable::m_szValue_set device: 253 service: urn:toggledbits-com:serviceId:ReactorSensor variable: cstate was: { "cond167327a08d5": { "evalstate": false, "statestamp": 1542760026, "stateedge": { "1": 1542740136, "0": 1542760026 }, "valuestamp": 1542760011, "id": "cond167327a08d5", "evalstamp": 1542760026, "laststate": false, "lastvalue": 1542760011 }, "lastSaved": 1542760398, "grp166b1d95e77": { "evalstate": false, "evalstamp": 1542760026, "hastimer": false, "changed": false } } now: { "cond167327a08d5": { "evalstate": true, "statestamp": 1542760416, "stateedge": { "1": 1542760416, "1": 1542740136, "0": 1542760026 }, "valuestamp": 1542760416, "id": "cond167327a08d5", "evalstamp": 1542760416, "laststate": true, "lastvalue": 1542760416 }, "lastSaved": 1542760416, "grp166b1d95e77": { "evalstate": true, "evalstamp": 1542760416, "hastimer": false, "changed": true } } #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:0 <0x6f88b520>
50 11/20/18 19:33:36.797 luup_log:224: Reactor: Child 253 ("UTIL - Run Therms") configuration change, updating! <0x6f88b520>
06 11/20/18 19:33:36.803 Device_Variable::m_szValue_set device: 253 service: urn:toggledbits-com:serviceId:ReactorSensor variable: Runtime was: 7585 now: 7585 #hooks: 0 upnp: 0 skip: 0 v:0xe5a228/NONE duplicate:1 <0x6f88b520>
06 11/20/18 19:33:36.803 Device_Variable::m_szValue_set device: 253 service: urn:toggledbits-com:serviceId:ReactorSensor variable: lastacc was: 1542760416 now: 1542760416 #hooks: 0 upnp: 0 skip: 0 v:(nil)/NONE duplicate:1 <0x6f88b520>
50 11/20/18 19:33:36.804 luup_log:224: Reactor: "UTIL - Run Therms" (#253) now "untripped" <0x6f88b520>