Foscam Plugin for HomeBridge (API 2.0)
Older verion using API 1.0: homebridge-foscam
Newer verion using API 2.1: homebridge-foscamcamera
It is strongly advised that you switch to the newer version. No new development will be done on this version.
- Install homebridge using
npm install -g homebridge
. - Install this plugin using
npm install -g git+https://github.com/luisiam/homebridge-foscam2.git
. - Update your configuration file. See configuration sample below.
Edit your config.json
accordingly. Configuration sample:
"platforms": [{
"platform": "Foscam2"
}]
This step is not required. HomeBridge with API 2.0 can handle configurations in the HomeKit app.
"platforms": [{
"platform": "Foscam2",
"cameras": [{
"username": "admin",
"password": "password",
"host": "192.168.1.10",
"port": "88",
"stay": "13",
"away": "15",
"night": "14",
"path": "Local path for snapshots"
}]
}]
stay
, away
, night
define configuration for different ARMED state.
The supported configurations depend on your device. The Foscam public CGI defines the following:
bit 3 | bit 2 | bit 1 | bit 0
bit 0 = Ring
bit 1 = Send email
bit 2 = Snap picture
bit 3 = Record
The following seems to be valid for the C2 as well (not found in any documentation)
bit 7 | bit 6 | bit 5 | bit 4 | bit 3 | bit 2 | bit 1 | bit 0
bit 0 = Ring
bit 1 = Send email
bit 2 = Snap picture
bit 3 = Record
bit 7 = Push notification
Note: The configuration is defined as int, thus the followings are valid, e.g. 0 (Do Nothing), 1 (Ring), 2 (Email), 3 (Ring + Email), 4 (Record), 12 (Picture and Record), 13 (Ring, Picture and Record), etc.
P.S.: Any ARMED state will activate motion detection by default.