0.3.0 • Published 8 years ago

homebridge-filesensor v0.3.0

Weekly downloads
2
License
ISC
Repository
github
Last release
8 years ago

homebridge-filesensor

Is a plugin for Homebridge that uses Chokidar.

This plugin creates a motion sensor or contact sensor accessory based on watching a directory or file. This is useful because many inexpensive IP cameras (Foscam, D-Link, others) have an option to FTP an image or video file when they detect motion. If you use this accessory to monitor that FTP drop location, you can expose that camera as a motion sensor to HomeKit.

Configuration

KeyDescription
pathThe directory, file, or glob to watch (see docs for the chokidar module for what's possible)
window_secondsA file modification date has to be within this many seconds of now to trigger the sensor. This is also the length of time that the sensor will stay triggered before falling back to it's default state.
inverseIf needed, you can invert the behavior of the sensor, for instance so that finding a file means there is ''no'' motion or contact detected.
sensor_typeCurrently either "m" for motion sensor or "c" for contact sensor.

NOTE: Contact sensor support is a little wonky right now, it doesn't seem to want to fall back to the untriggered state for some reason--also app support seems to be lacking.

0.3.0

8 years ago