-
Notifications
You must be signed in to change notification settings - Fork 16
/
config-platform-sample.json
28 lines (26 loc) · 1.24 KB
/
config-platform-sample.json
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
{
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "123-45-678"
},
"description": "This is an example configuration file with ContactSensor, MotionSensor, and Switch types.",
"platforms": [
{
"platform" : "WiringPiPlatform",
"name" : "Pi GPIO (WiringPi)",
"overrideCache" : "true",
"autoExport" : "true",
"gpiopins" :
[
{ "type" : "ContactSensor", "name" : "PHYSICAL_PIN_21", "pin": 9, "enabled": "true", "mode": "in", "pull": "down" },
{ "type" : "LeakSensor", "name" : "PHYSICAL_PIN_19", "pin": 10, "enabled": "true", "mode": "in", "pull": "down" },
{ "type" : "OccupancySensor", "name" : "PHYSICAL_PIN_23", "pin": 11, "enabled": "true", "mode": "in", "pull": "down" },
{ "type" : "SmokeSensor", "name" : "PHYSICAL_PIN_32", "pin": 12, "enabled": "true", "mode": "in", "pull": "down" },
{ "type" : "MotionSensor", "name" : "PHYSICAL_PIN_33", "pin": 13, "enabled": "true", "mode": "in", "pull": "down" },
{ "type" : "Switch", "name" : "PHYSICAL_PIN_13", "pin": 27, "enabled" : "true", "mode" : "out", "pull" : "down", "inverted" : "false", "duration" : 0 }
]
}
]
}