Update index.js
Update index.js

Added support for Motion, it has a string http response for ON/Active
it is now a easy way to turn on and off motion detection.

config.json
{
        "accessory": "Http",
        "name": "Motion Status",
        "switchHandling": "yes",
        "http_method": "GET",
        "on_url":      "http://localhost:8082/0/detection/start",
        "off_url":     "http://localhost:8082/0/detection/pause",
        "status_url":  "http://localhost:8082/0/detection/status",
        "service": "Switch",
        "brightnessHandling": "no",
        "brightness_url":     "",
        "brightnesslvl_url":  "",
        "sendimmediately": "",
        "username" : "",
        "password" : ""
      }
rudders/homebridge-http