Done. No visible change in behavior. This one shows a timeout rather than the 400 error, but I checked the lua version and it still works fine.
*************************************************** REACTOR LOGIC SUMMARY REPORT ***************************************************
Version: 3.10develop (21206) config 21129 cdata 20045 ui 21170 pluginDevice 96 LuaXP 1.0.2enh
System: Vera version 1.7.5186 (7.31) on Sercomm G450 ID 36 (Vera Plus); loadtime 1627231500/1627231523; systemReady 1627231528
Env: Lua 5.1; JSON dkjson 1.2; UnsafeLua=1/true
Local time: 2021-07-25T10:51:18-0600; DST=1; Denver, Colorado United States; formats %d/%m/%Y %H:%M:%S
House mode: plugin 1; system 1; tracking off
Sun data: { "source": "int", "civdawn": 1627212120, "nautdawn": 1627209832, "sunset": 1627265990, "nautdusk": 1627270125, "stamp": 2021206, "latitude": 39.7392, "astrodusk": 1627272667, "longitude": -104.985, "civdusk": 1627267837, "astrodawn": 1627207289, "sunrise": 1627213967 }
Geofence: not running
RS: 1627158412,1627158444,1627158479,1627158582,1627158719,1627161660,1627163837,1627178909,1627230163,1627231523
NS: 1617604260:D,1617604980:U,1619301360:D,1619302200:U,1621185360:D,1621185720:U,1623708600:D,1623708840:U,1623711665:D,1623716940:U
************************************************************************************************************************************
Google Voice Alerts (#186)
Version 20045.23 2021-07-25 10:50:13
Message/status: Not tripped
Condition group "Google Voice Alerts Overall" (AND) false as of 14:19:38 <root>
&-T-group "Garage Door" (AND) TRUE as of 10:16:49 <grp18yf6g45>
| &-T-service Garage Door (24) urn:micasaverde-com:serviceId:DoorLock1/Status isfalse [1 => 0 at 10:16:49; T/T as of 10:16:49/10:16:49] <cond18yf6itp>
&-F-group "Porch Motion" (AND) false as of 17:08:53 <grp18yf989x>
| &-F-service Porch Motion Sensor (113) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped istrue [1 => 0 at 17:08:53; F/F as of 17:08:53/17:08:53] <cond18yfc6at>
&-F-group "Trailer Motion" (AND) false as of 14:33:04 <grp18yfquq5>
| &-F-service Trailer Motion Sensor (185) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped istrue [0 at 14:33:04; F/F as of 14:33:04/14:33:04] <cond18yfqxdp>
Activity grp18yf6g45.false
Action type request? method=POST, index=1, target=, url=http://192.168.1.133:3000/assistant, data= {"user": "mwalker","command": "The garage door was closed","broadcast": true}, headers=table: 0x1b514c0
Activity grp18yfquq5.true
Run Lua:
1: local http=require("socket.http")
2: local siteurl = "http://192.168.1.133:3000/assistant"
3: local payload = [[ {"user": "mwalker","command": "Motion near the travel trailer was detected","broadcast": true} ]]
4: local respback = { }
5: local res, code, response_headers, status = http.request
6: {
7: url = siteurl,
8: method = "POST",
9: headers =
10: {
11: ["Content-Type"] = "application/json",
12: ["Content-Length"] = payload:len()
13: },
14: source = ltn12.source.string(payload),
15: sink = ltn12.sink.table(respback)
16: }
17: return true;
Activity grp18yf989x.true
Run Lua:
1: local http=require("socket.http")
2: local siteurl = "http://192.168.1.133:3000/assistant"
3: local payload = [[ {"user": "mwalker","command": "Porch motion was detected","broadcast": true} ]]
4: local respback = { }
5: local res, code, response_headers, status = http.request
6: {
7: url = siteurl,
8: method = "POST",
9: headers =
10: {
11: ["Content-Type"] = "application/json",
12: ["Content-Length"] = payload:len()
13: },
14: source = ltn12.source.string(payload),
15: sink = ltn12.sink.table(respback)
16: }
17: return true;
Activity grp18yf6g45.true
Run Lua:
1: local http=require("socket.http")
2: local siteurl = "http://192.168.1.133:3000/assistant"
3: local payload = [[ {"user": "mwalker","command": "The garage door has opened.","broadcast": true} ]]
4: local respback = { }
5: local res, code, response_headers, status = http.request
6: {
7: url = siteurl,
8: method = "POST",
9: headers =
10: {
11: ["Content-Type"] = "application/json",
12: ["Content-Length"] = payload:len()
13: },
14: source = ltn12.source.string(payload),
15: sink = ltn12.sink.table(respback)
16: }
17: return true;
Events
2021-07-25 10:45:23.413: Reactor startup (Luup reload)
2021-07-25 10:45:23.673: Starting (Luup Startup/Reload)
2021-07-25 10:45:24.312: Sensor update starting
2021-07-25 10:45:24.329: Sensor update completed; 0.016s
2021-07-25 10:50:13.678: Configuration changed!
2021-07-25 10:50:13.709: Sensor update starting
2021-07-25 10:50:13.829: Sensor update completed; 0.120s
2021-07-25 10:50:24.323: { dev=186, action="RunScene", options={ stopRunningScenes=true, forceReactorScenes=true, contextDevice=186, stopPriorScenes=false }, sceneId="grp18yf6g45.false", event="action", scene="grp18yf6g45.false" }
2021-07-25 10:50:24.324: Launching scene/activity "grp18yf6g45.false"
2021-07-25 10:50:24.327: Starting "grp18yf6g45.false" group 1 at step 1
2021-07-25 10:50:24.357: TROUBLE: Evaluation error in "\"user\": \"mwalker\",\"command\": \"The garage door was closed\",\"broadcast\": true": [luaxp]Invalid operator at 7
2021-07-25 10:50:24.359: Request action: POST http://192.168.1.133:3000/assistant
2021-07-25 10:50:39.376: TROUBLE: Request failed, response status timeout
2021-07-25 10:50:39.379: Activity "grp18yf6g45.false" finished in 15.054000139236s
2021-07-25 10:50:39.380: Stopping activity "grp18yf6g45.false"
2021-07-25 10:50:56.301: { dev=186, action="RunScene", options={ stopRunningScenes=true, forceReactorScenes=true, contextDevice=186, stopPriorScenes=false }, sceneId="grp18yf6g45.true", event="action", scene="grp18yf6g45.true" }
2021-07-25 10:50:56.301: Launching scene/activity "grp18yf6g45.true"
2021-07-25 10:50:56.304: Starting "grp18yf6g45.true" group 1 at step 1
2021-07-25 10:50:58.249: Activity "grp18yf6g45.true" finished in 1.9470000267029s
2021-07-25 10:50:58.250: Stopping activity "grp18yf6g45.true"
Devices
Trailer Motion Sensor (185) urn:schemas-micasaverde-com:device:MotionSensor:1 (4/3); parent 183; plugin -; mfg model ; dev D_MotionSensor1.xml impl
Garage Door (24) urn:schemas-micasaverde-com:device:DoorLock:1 (7/0); parent 0; plugin 2998; mfg model ; dev D_GarageDoorLock.xml impl I_GarageDoorLock.xml
Porch (111) urn:schemas-upnp-org:device:DigitalSecurityCamera:2 (6/-1); parent 0; plugin -; mfg model ; dev D_DigitalSecurityCamera2.xml impl I_BlueIris.xml
Trailer (183) urn:schemas-upnp-org:device:DigitalSecurityCamera:2 (6/-1); parent 0; plugin -; mfg model ; dev D_DigitalSecurityCamera2.xml impl I_BlueIris.xml
Porch Motion Sensor (113) urn:schemas-micasaverde-com:device:MotionSensor:1 (4/3); parent 111; plugin -; mfg model ; dev D_MotionSensor1.xml impl
Watches
Device #186 Google Voice Alerts service urn:toggledbits-com:serviceId:ReactorSensor variable cdata
Device #185 Trailer Motion Sensor service urn:micasaverde-com:serviceId:SecuritySensor1 variable Tripped
Device #186 Google Voice Alerts service urn:toggledbits-com:serviceId:ReactorSensor variable TestTime
Device #24 Garage Door service urn:micasaverde-com:serviceId:DoorLock1 variable Status
Device #113 Porch Motion Sensor service urn:micasaverde-com:serviceId:SecuritySensor1 variable Tripped
Device #186 Google Voice Alerts service urn:toggledbits-com:serviceId:ReactorSensor variable TestHouseMode