This is a plugin for homebridge which makes it possible to control the night light of a Foscam Camera in HomeKit for Foscam Cameras that have night light (Like the Foscam P1).
The night light control is performed from the CGI API of Foscam Cameras.
/cgi-bin/CGIProxy.fcgi?cmd=getNightLightState&usr=admin&pwd=
/cgi-bin/CGIProxy.fcgi?cmd=setNightLightState&state=1&usr=admin&pwd=
{
"accessory": "FoscamNightLight",
"name": "Foscam Night Light",
"description": "The Night Light from a Foscam P1 Camera",
"hostname": "The hostname of the foscam camera", <- change this
"port": "The port of the foscam camera", <- change this
"username": "username of the foscam", <- change this
"password": "password of the foscam" <- change this
}