1.1.7 • Published 4 years ago
Share package homebridge-web-motion
Description This homebridge plugin exposes web-based motion sensors to Apple's HomeKit . Using HTTP requests, you can update the plugin with real-time sensor information. The plugin achieves this by setting up a listen server which listens for changes in state from your devices and then feeds them real-time into HomeKit.
Installation Install homebridge Install this plugin: npm install -g homebridge-web-motion Update your config.json Configuration "platforms": [{
"platform": "WebMotion",
"sensors": [{
"name": "Hallway Sensor",
"id": "hall"
},
{
"name": "Bedroom Sensor",
"id": "bed"
}
]
}]Core Key Description Default platformMust be WebMotion N/A nameName to appear in the Home app N/A idID to call on the listen server N/A
Optional fields Key Description Default autoResetWhether the sensor should automatically change the state back to 0 after being triggered falseautoResetDelayTime (in seconds) until the sensor will automatically reset (if enabled) 5
Additional options Key Description Default portPort for your HTTP listener (only one listener per port) 2000modelAppears under the Model field for the accessory plugin serialAppears under the Serial field for the accessory id manufacturerAppears under the Manufacturer field for the accessory author firmwareAppears under the Firmware field for the accessory version
API Interfacing Your API should be able to:
Update motionDetected when motion is detected by messaging the listen server (should notify 0 after motion finishes unless autoReset is enabled): /motionDetected?id=ID&value=INT_VALUE_0_TO_1MotionDetected Key Number Name 0No motion detected 1Motion detected