-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSwitches
66 lines (60 loc) · 2.53 KB
/
Switches
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
##### These switches are for use with homebridge-http-switch homebridge plugin
##### These have been tested using a TIOC 2.0 Camera with dual illuminator, Ive been sending these commands directly to the camera, completly unstested with a recorder.
##### This Config uses Digest Auth only. To change auth type change "sendImmediately" to true.
##### Infrared Mode Switch with 2 way feedback
{
"accessory": "HTTP-SWITCH",
"name": "Infrared Mode",
"switchType": "stateful",
"timeout": 1000,
"onUrl": "http://{Ip Address}/cgi-bin/configManager.cgi?action=setConfig&LightingScheme[0][0].LightingMode=InfraredMode",
"method": "GET",
"auth": {
"username": "username",
"password": "password",
"sendImmediately": false
},
"offUrl": "http://{Ip Address}/cgi-bin/configManager.cgi?action=setConfig&LightingScheme[0][0].LightingMode=WhiteMode",
"statusUrl": "http://{Ip Address}/cgi-bin/configManager.cgi?action=getConfig&name=LightingScheme",
"pullInterval": 5000,
"debug": false,
"statusPattern": "0].LightingMode=InfraredMode"
}
##### Floodlight Mode Switch with 2 way feedback
{
"accessory": "HTTP-SWITCH",
"name": "Floodlight Mode",
"switchType": "stateful",
"timeout": 1000,
"onUrl": "http://{Ip Address}/cgi-bin/configManager.cgi?action=setConfig&LightingScheme[0][0].LightingMode=WhiteMode",
"method": "GET",
"auth": {
"username": "username",
"password": "password",
"sendImmediately": false
},
"offUrl": "http://{Ip Address}/cgi-bin/configManager.cgi?action=setConfig&LightingScheme[0][0].LightingMode=InfraredMode",
"statusUrl": "http://{Ip Address}/cgi-bin/configManager.cgi?action=getConfig&name=LightingScheme",
"pullInterval": 5000,
"debug": false,
"statusPattern": "0].LightingMode=WhiteMode"
}
##### Auto Mode Switch with 2 way feedback
{
"accessory": "HTTP-SWITCH",
"name": "Motion Mode",
"switchType": "stateful",
"timeout": 1000,
"onUrl": "http://{Ip Address}/cgi-bin/configManager.cgi?action=setConfig&LightingScheme[0][0].LightingMode=AIMode",
"method": "GET",
"auth": {
"username": "username",
"password": "password",
"sendImmediately": false
},
"offUrl": "http://{Ip Address}/cgi-bin/configManager.cgi?action=setConfig&LightingScheme[0][0].LightingMode=InfraredMode",
"statusUrl": "http://{Ip Address}/cgi-bin/configManager.cgi?action=getConfig&name=LightingScheme",
"pullInterval": 5000,
"debug": false,
"statusPattern": "0].LightingMode=AIMode"
}