1.1.7 • Published 2 years ago

homebridge-web-motion v1.1.7

Weekly downloads
18
License
MIT
Repository
github
Last release
2 years ago

homebridge-web-motion

npm npm

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

  1. Install homebridge
  2. Install this plugin: npm install -g homebridge-web-motion
  3. Update your config.json

Configuration

"platforms": [{
  "platform": "WebMotion",
  "sensors": [{
      "name": "Hallway Sensor",
      "id": "hall"
    },
    {
      "name": "Bedroom Sensor",
      "id": "bed"
    }
  ]
}]

Core

KeyDescriptionDefault
platformMust be WebMotionN/A
nameName to appear in the Home appN/A
idID to call on the listen serverN/A

Optional fields

KeyDescriptionDefault
autoResetWhether the sensor should automatically change the state back to 0 after being triggeredfalse
autoResetDelayTime (in seconds) until the sensor will automatically reset (if enabled)5

Additional options

KeyDescriptionDefault
portPort for your HTTP listener (only one listener per port)2000
modelAppears under the Model field for the accessoryplugin
serialAppears under the Serial field for the accessoryid
manufacturerAppears under the Manufacturer field for the accessoryauthor
firmwareAppears under the Firmware field for the accessoryversion

API Interfacing

Your API should be able to:

  1. 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_1

MotionDetected Key

NumberName
0No motion detected
1Motion detected
1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

1.0.9

5 years ago