Tried the script but ran in to a problem with "attempt to index field 'lastUpdate' (a nil value) ". Log below.
Should the uservarible be an integer?
2019-06-18 22:13:01.395 Status: User: Admin initiated a switch command (244/Lawnmoverswitch/Off)
2019-06-18 22:13:01.537 Status: dzVents: Info: LawnmoverGone: ------ Start internal script: Robot4: Device: "Lawnmoverswitch (RFXCOM)", Index: 244
2019-06-18 22:13:01.537 Status: dzVents: Info: LawnmoverGone: ------ Finished Robot4
2019-06-18 22:13:05.981 (RFXCOM) Temp + Humidity (Kallvind temp)
2019-06-18 22:13:09.264 (RFXCOM) Lighting 2 (Lawnmoverswitch)
2019-06-18 22:13:09.256 Status: User: Admin initiated a switch command (244/Lawnmoverswitch/On)
2019-06-18 22:13:09.408 Status: dzVents: Info: LawnmoverGone: ------ Start internal script: Robot4: Device: "Lawnmoverswitch (RFXCOM)", Index: 244
2019-06-18 22:13:09.408 Status: dzVents: Debug: LawnmoverGone: OpenURL: url =
http://127.0.0.1:8088/json.htm?type=com ... 0is%20over
2019-06-18 22:13:09.408 Status: dzVents: Debug: LawnmoverGone: OpenURL: method = GET
2019-06-18 22:13:09.408 Status: dzVents: Debug: LawnmoverGone: OpenURL: post data = nil
2019-06-18 22:13:09.408 Status: dzVents: Debug: LawnmoverGone: OpenURL: headers = nil
2019-06-18 22:13:09.408 Status: dzVents: Debug: LawnmoverGone: OpenURL: callback = LawnmoverGone
2019-06-18 22:13:09.409 Status: dzVents: Info: LawnmoverGone: ------ Finished Robot4
2019-06-18 22:13:09.409 Status: EventSystem: Script event triggered: /home/pi/domoticz/dzVents/runtime/dzVents.lua
2019-06-18 22:13:14.421 Status: Waiting is over
2019-06-18 22:13:14.539 Status: dzVents: Info: LawnmoverGone: ------ Start internal script: Robot4: HTTPResponse: "LawnmoverGone"
2019-06-18 22:13:14.581 Status: dzVents: Debug: LawnmoverGone: Processing device-adapter for Lawnmoverswitch: Switch device adapter
2019-06-18 22:13:14.581 Status: dzVents: Error (2.4.19): LawnmoverGone: An error occured when calling event handler Robot4
2019-06-18 22:13:14.581 Status: dzVents: Error (2.4.19): LawnmoverGone: ...pi/domoticz/scripts/dzVents/generated_scripts/Robot4.lua:16: attempt to index field 'lastUpdate' (a nil value)
2019-06-18 22:13:14.581 Status: dzVents: Info: LawnmoverGone: ------ Finished Robot4