[quote=“Buxton, post:7, topic:200547”]I was getting the same null error while running sensor lua in openluup, and the revised code did stop the error message. However, I’m also getting the following during the untrip actions (which are not executing):
02/09/19 17:52:00 devicewatch: device=8, old="Disarmed", name=EVL3 Vista Partition 1, var=urn:micasaverde-com:serviceId:AlarmPartition2/ArmMode, new="Armed"
02/09/19 17:52:00 condchange: newState=true, cond=cond16873e9d143, oldState=false
02/09/19 17:52:00 evalchange: newState=true, cond=cond16873e9d143, oldState=false
02/09/19 17:52:00 groupchange: newState=true, cond=grp168691f6932, oldState=false
02/09/19 17:52:00 sensorstate: state=true
02/09/19 17:52:00 startscene: scene=__trip, sceneName=__trip
02/09/19 17:52:01 devicewatch: device=8, old="Disarmed", name=EVL3 Vista Partition 1, var=urn:micasaverde-com:serviceId:AlarmPartition2/ArmMode, new="Armed"
02/09/19 17:52:11 error: message=tick failed, reason=./L_Reactor.lua:804: attempt to get length of local 'val' (a number value)
02/09/19 17:52:40 devicewatch: device=10599, old="1", name=Porch Motion, var=urn:upnp-org:serviceId:SwitchPower1/Status, new="0"
02/09/19 17:52:40 condchange: newState=false, cond=cond168691f6933, oldState=true
02/09/19 17:52:40 evalchange: newState=false, cond=cond168691f6933, oldState=true
02/09/19 17:52:40 groupchange: newState=false, cond=grp168691f6932, oldState=true
02/09/19 17:52:40 sensorstate: state=false
02/09/19 17:52:40 startscene: scene=__untrip, sceneName=__untrip
As well, the run scene action is not executing on the sensor trip but it does run directly from the “run” command in Altui. There are no error messages regarding the scene execution.
[code] Version: 2.2stable-19026 config 206 pluginDevice 149
Local time: 2019-02-09T18:06:23-0800, DST=0
House mode: 1
Sun data: {“stamp”:2019040,“civdawn”:1549721883,“nautdawn”:1549720108,“sunset”:1549762244,“nautdusk”:1549765575,“latitude”:34.09,“astrodusk”:1549767330,“longitude”:-118.27,“civdusk”:1549763799,“astrodawn”:1549718352,“sunrise”:1549723438}
Geofence: not running
Power: , battery level
Porch Motion Sensor (#160) armed
Version 19012.1549688013 02/08/19 20:53:33
Message/status: Not tripped
Group #1 false as of 17:52:40
=f (service) Porch Motion (10599) urn:upnp-org:serviceId:SwitchPower1/Status = 1 [false/false as of 17:52:40/17:52:40; 1 => 0 at 17:52:40]
=T (service) EVL3 Vista Partition 1 (8) urn:micasaverde-com:serviceId:AlarmPartition2/ArmMode = Armed [true/true as of 17:52:00/17:52:00; disarmed => armed at 17:52:00]
Trip Actions
Device 10550 (Living Overhead) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue=1 )
Device 10178 (Bedroom Overhead) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue=1 )
Device 10357 (Upper Office Light) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue=1 )
Device 111 (IOS Push) action urn:upnp-org:serviceId:IOSPush1/SendPushOverNotification( Title=Porch Light On, Message=Porch Light On, Priority=1 )
Delay 10 inline
Device 10597 (Entry Table Lamp) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue=1 )
Run scene 5 ACTiBedroom
Run Lua:
luup.inet.wget(‘http://10.17.5.60:8080/jsonrpc?request={“jsonrpc”:“2.0”,“method”:“Addons.ExecuteAddon”,“params”:{“wait”:false,“addonid”:“plugin.video.surveillanceroom”,“params”:{“action”:“show_preview”,“camera_number”:“2”,“id”:“1”}},“id”:2}’)
luup.inet.wget(‘http://10.17.5.60:8080/jsonrpc?request={“jsonrpc”:“2.0”,“method”:“Addons.ExecuteAddon”,“params”:{“wait”:false,“addonid”:“plugin.video.surveillanceroom”,“params”:{“action”:“show_preview”,“camera_number”:“3”,“id”:“1”}},“id”:2}’)
Untrip Actions
Delay 10 inline
Device 10550 (Living Overhead) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue=0 )
Delay 10 inline
Device 10178 (Bedroom Overhead) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue=0 )
Device 10357 (Upper Office Light) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue=0 )
Device 10597 (Entry Table Lamp) action urn:upnp-org:serviceId:SwitchPower1/SetTarget( newTargetValue=0 )[/code][/quote]
You’re still on 2.2. Upgrade to 2.3 and try again. These issues were addressed shortly before release.