Using Reactor to send an HTTP string

I would like to send a HTTP string to my control system when a Reactor sensor has tripped.
The URL is http://192.168.1.110:62000/SprBed_On

I have tried http://192.168.1.110:62000/{message} with ‘SprBed_On’ in the message box but it doesn’t work.
The http string does work if sent via Chrome or Domoticz.

Many thanks.

Please post a Logic Summary (Tools tab, Troubleshooting section)

Excellent support as always!!

*************************************************** REACTOR LOGIC SUMMARY REPORT ***************************************************
   Version: 3.5hotfix-20127 config 20017 cdata 20045 ui 20045 pluginDevice 380 LuaXP not loaded
    System: Vera version 1.7.4320 (pre-7.30) on Sercomm NA301 ID nil (unknown); loadtime 1589169253; systemReady 1589169278; Lua 5.1; JSON dkjson 1.2; UnsafeLua=nil
Local time: 2020-05-11T13:11:39+0100; DST=1; Tonbridge, England United Kingdom; formats %d/%m/%Y %H:%M:%S
House mode: plugin 1; system 1; tracking off
  Sun data: 
  Geofence: not running
************************************************************************************************************************************
React Motion Sensor (#381)
    Version 20045.23 05/11/20 11:56:42
    Message/status: Not tripped
    Condition group "Kitchen" (OR)  false as of 13:10:24 <root>
      |-F-group "Motion Sensor Tripped" (AND)  false as of 13:10:24 <grpridobtb>
      |     &-F-service Kitchen Motion (298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped = 1 [1 => 0 at 13:10:24; F/F as of 13:10:24/13:10:24] <condridorrw>
    Activity root.true
        Notify method UU nid 3: users  message "SprBed_On"
    Events
        2020-05-11 12:34:36: Activity "root.true" finished
        2020-05-11 12:34:36: Changing RS tripped state to true
        2020-05-11 12:35:09: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "1" to "1"
        2020-05-11 12:35:41: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "1" to "1"
        2020-05-11 12:36:13: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "1" to "1"
        2020-05-11 12:36:52: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "1" to "1"
        2020-05-11 12:37:53: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "1" to "0"
        2020-05-11 12:37:53: Condition condridorrw test state changed from true to false
        2020-05-11 12:37:53: Condition condridorrw evaluation state changed from true to false
        2020-05-11 12:37:53: Group Motion Sensor Tripped test state changed from true to false
        2020-05-11 12:37:53: Group Motion Sensor Tripped evaluation state changed from true to false
        2020-05-11 12:37:53: Group Kitchen test state changed from true to false
        2020-05-11 12:37:53: Group Kitchen evaluation state changed from true to false
        2020-05-11 12:37:53: Changing RS tripped state to false
        2020-05-11 12:39:58: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "0" to "1"
        2020-05-11 12:39:58: Condition condridorrw test state changed from false to true
        2020-05-11 12:39:58: Condition condridorrw evaluation state changed from false to true
        2020-05-11 12:39:58: Group Motion Sensor Tripped test state changed from false to true
        2020-05-11 12:39:58: Group Motion Sensor Tripped evaluation state changed from false to true
        2020-05-11 12:39:58: Group Kitchen test state changed from false to true
        2020-05-11 12:39:58: Group Kitchen evaluation state changed from false to true
        2020-05-11 12:39:58: Launching Kitchen.true activity
        2020-05-11 12:39:58: Launching scene/activity root.true
        2020-05-11 12:39:58: Starting "root.true" group 1
        2020-05-11 12:39:59: { dev=381, warning="[string \"--[[...\"]:2321: User HTTP notification failed (-1, 52)", scene="root.true", sceneName="root.true", index=1, event="runscene", group=1 }
        2020-05-11 12:39:59: Activity "root.true" finished
        2020-05-11 12:39:59: Changing RS tripped state to true
        2020-05-11 12:40:32: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "1" to "1"
        2020-05-11 12:40:35: Device Kitchen Lux (#297) urn:micasaverde-com:serviceId:LightSensor1/CurrentLevel changed from "1494" to "1239"
        2020-05-11 12:41:14: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "1" to "1"
        2020-05-11 12:41:54: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "1" to "1"
        2020-05-11 12:42:29: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "1" to "1"
        2020-05-11 12:43:07: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "1" to "1"
        2020-05-11 12:43:39: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "1" to "1"
        2020-05-11 12:43:45: Device Kitchen Lux (#297) urn:micasaverde-com:serviceId:LightSensor1/CurrentLevel changed from "1239" to "589"
        2020-05-11 12:44:12: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "1" to "1"
        2020-05-11 12:44:45: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "1" to "1"
        2020-05-11 12:45:30: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "1" to "1"
        2020-05-11 12:46:02: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "1" to "1"
        2020-05-11 12:46:34: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "1" to "1"
        2020-05-11 12:47:07: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "1" to "1"
        2020-05-11 12:48:09: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "1" to "0"
        2020-05-11 12:48:09: Condition condridorrw test state changed from true to false
        2020-05-11 12:48:09: Condition condridorrw evaluation state changed from true to false
        2020-05-11 12:48:09: Group Motion Sensor Tripped test state changed from true to false
        2020-05-11 12:48:09: Group Motion Sensor Tripped evaluation state changed from true to false
        2020-05-11 12:48:09: Group Kitchen test state changed from true to false
        2020-05-11 12:48:09: Group Kitchen evaluation state changed from true to false
        2020-05-11 12:48:09: Changing RS tripped state to false
        2020-05-11 12:48:11: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "0" to "1"
        2020-05-11 12:48:11: Condition condridorrw test state changed from false to true
        2020-05-11 12:48:11: Condition condridorrw evaluation state changed from false to true
        2020-05-11 12:48:11: Group Motion Sensor Tripped test state changed from false to true
        2020-05-11 12:48:11: Group Motion Sensor Tripped evaluation state changed from false to true
        2020-05-11 12:48:11: Group Kitchen test state changed from false to true
        2020-05-11 12:48:11: Group Kitchen evaluation state changed from false to true
        2020-05-11 12:48:11: Launching Kitchen.true activity
        2020-05-11 12:48:11: Launching scene/activity root.true
        2020-05-11 12:48:11: Starting "root.true" group 1
        2020-05-11 12:48:11: { dev=381, warning="[string \"--[[...\"]:2321: User HTTP notification failed (-1, 52)", scene="root.true", sceneName="root.true", index=1, event="runscene", group=1 }
        2020-05-11 12:48:11: Activity "root.true" finished
        2020-05-11 12:48:11: Changing RS tripped state to true
        2020-05-11 12:48:49: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "1" to "1"
        2020-05-11 12:49:22: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "1" to "1"
        2020-05-11 12:49:53: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "1" to "1"
        2020-05-11 12:50:01: Device Kitchen Lux (#297) urn:micasaverde-com:serviceId:LightSensor1/CurrentLevel changed from "589" to "415"
        2020-05-11 12:50:26: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "1" to "1"
        2020-05-11 12:51:27: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "1" to "0"
        2020-05-11 12:51:27: Condition condridorrw test state changed from true to false
        2020-05-11 12:51:27: Condition condridorrw evaluation state changed from true to false
        2020-05-11 12:51:27: Group Motion Sensor Tripped test state changed from true to false
        2020-05-11 12:51:27: Group Motion Sensor Tripped evaluation state changed from true to false
        2020-05-11 12:51:27: Group Kitchen test state changed from true to false
        2020-05-11 12:51:27: Group Kitchen evaluation state changed from true to false
        2020-05-11 12:51:27: Changing RS tripped state to false
        2020-05-11 12:56:09: Device Kitchen Lux (#297) urn:micasaverde-com:serviceId:LightSensor1/CurrentLevel changed from "415" to "622"
        2020-05-11 12:59:13: Device Kitchen Lux (#297) urn:micasaverde-com:serviceId:LightSensor1/CurrentLevel changed from "622" to "489"
        2020-05-11 13:08:23: Device Kitchen Lux (#297) urn:micasaverde-com:serviceId:LightSensor1/CurrentLevel changed from "489" to "278"
        2020-05-11 13:09:22: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "0" to "1"
        2020-05-11 13:09:22: Condition condridorrw test state changed from false to true
        2020-05-11 13:09:22: Condition condridorrw evaluation state changed from false to true
        2020-05-11 13:09:22: Group Motion Sensor Tripped test state changed from false to true
        2020-05-11 13:09:22: Group Motion Sensor Tripped evaluation state changed from false to true
        2020-05-11 13:09:22: Group Kitchen test state changed from false to true
        2020-05-11 13:09:22: Group Kitchen evaluation state changed from false to true
        2020-05-11 13:09:22: Launching Kitchen.true activity
        2020-05-11 13:09:22: Launching scene/activity root.true
        2020-05-11 13:09:22: Starting "root.true" group 1
        2020-05-11 13:09:23: { dev=381, warning="[string \"--[[...\"]:2321: User HTTP notification failed (-1, 52)", scene="root.true", sceneName="root.true", index=1, event="runscene", group=1 }
        2020-05-11 13:09:23: Activity "root.true" finished
        2020-05-11 13:09:23: Changing RS tripped state to true
        2020-05-11 13:10:24: Device Kitchen Motion (#298) urn:micasaverde-com:serviceId:SecuritySensor1/Tripped changed from "1" to "0"
        2020-05-11 13:10:24: Condition condridorrw test state changed from true to false
        2020-05-11 13:10:24: Condition condridorrw evaluation state changed from true to false
        2020-05-11 13:10:24: Group Motion Sensor Tripped test state changed from true to false
        2020-05-11 13:10:24: Group Motion Sensor Tripped evaluation state changed from true to false
        2020-05-11 13:10:24: Group Kitchen test state changed from true to false
        2020-05-11 13:10:24: Group Kitchen evaluation state changed from true to false
        2020-05-11 13:10:24: Changing RS tripped state to false
        2020-05-11 13:11:29: Device Kitchen Lux (#297) urn:micasaverde-com:serviceId:LightSensor1/CurrentLevel changed from "278" to "431"
    Devices
        Aeotec Sensor (171) urn:schemas-micasaverde-com:device:GenericIO:1 (11/0); parent 1; plugin -; mfg  model ; dev D_GenericIO1.xml impl 
        Kitchen Motion (298) urn:schemas-micasaverde-com:device:MotionSensor:1 (4/3); parent 171; plugin -; mfg  model ; dev D_MotionSensor1.xml impl 
    Watches
        Device #381 React Motion Sensor service urn:toggledbits-com:serviceId:ReactorSensor variable TestHouseMode
        Device #297 Kitchen Lux service urn:micasaverde-com:serviceId:LightSensor1 variable CurrentLevel
        Device #298 Kitchen Motion service urn:micasaverde-com:serviceId:SecuritySensor1 variable Tripped
        Device #381 React Motion Sensor service urn:toggledbits-com:serviceId:ReactorSensor variable cdata
        Device #381 React Motion Sensor service urn:toggledbits-com:serviceId:ReactorSensor variable TestTime
    Special Configuration
        UseReactorScenes = 1
        LogEventsToFile = 0
        Retrigger = 0
        FailOnTrouble = 0
        ContinuousTimer = 0

Awww, nuts. Bug in the Logic Summary display for the “User URL” notification method. Sorry. Can you screen shot your action for me?

Here you go…

OK. Wow. I won’t go into all of the reasons this is funny-not-funny. You’ll need a workaround. There’s a bug. Use this URL (the message field will be completely ignored):

http://192.168.1.110:62000/SprBed_On

Bug or not, you’d have to do it this way, as by default, this method will URL-encode the message, and that’s unlikely to be correct in this URL structure (although the characters don’t need URL-encoding–it’s just an error waiting to happen).

3 Likes

Thanks for the help - That works.
The control system looks for anything after the IP:Port and reacts to that so I can change the “SprBed_On” to something else if it helps.
If the workaround doesn’t have any adverse affects then I will leave it as it seems to be working fine.

1 Like