Copy/paste de code even in https://jsonlint.com. Regel 14 gaat al fout. En sowieso de komma verwijderen op de 1 na laatste regel. En ook alle commentaarregels verwijderen. Ook twee keer "accessories": samenvoegen tot 1.boosterbosch schreef op donderdag 29 november 2018 @ 13:28:
ik heb het volgende probleem, ik heb een TP Link smartplug via homebridge en die werkt perfect en nu wil ik 2 nieuwe accesoires toevoegen, namelijk een Hive smartplug en thermostaat, maar die komen niet tevoorschijn. Hier is mijn config.json, kan iemand een fout zien:
code:
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{ "bridge": { "name": "Homebridge", "username": "CC:22:3D:E3:CE:30", "port": 51826, "pin": "031-45-154" }, "description": "Barry's Homebridge Config", "accessories": [ { "accessory": "HivePlug", "name": "Kitchen Scentsy", "displayName: "Kitchen Scentsy", "username": "****@****.***", "password": "******" } ], "accessories": [ { "accessory": "HiveThermostat", "name": "Hive Thermostat", "username": "****@****.***", "password": "******" } ], "platforms": [{ "platform": "TplinkSmarthome", "name": "TplinkSmarthome", //////////////////////////////// // Device Discovery Options //////////////////////////////// "broadcast": "255.255.255.255", // Broadcast Address "devices": [], // Manual list of devices (see section below) "deviceTypes": [], // set to [] or ["plug", "bulb"] to find all TPLink device types or ["plug"] / ["bulb"] for only plugs or bulbs "macAddresses": [], // Whitelist of mac addresses to include. If specified will ignore other devices "pollingInterval": 10, // (seconds) How often to check device status in the background //////////////////////////////// // Device Options //////////////////////////////// "addCustomCharacteristics": true, // Adds energy monitoring characteristics viewable in Eve app "inUseThreshold": 0, // (Watts) For plugs that support energy monitoring (HS110), min power draw for OutletInUse "switchModels": ["HS200"], // Matching models are created in homekit as a switch instead of an outlet "timeout": 5 // (seconds) communication timeout }], }
Dus dit:
code:
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
| {
"bridge": {
"name": "Homebridge",
"username": "CC:22:3D:E3:CE:30",
"port": 51826,
"pin": "031-45-154"
},
"description": "Barry's Homebridge Config",
"accessories": [{
"accessory": "HivePlug",
"name": "Kitchen Scentsy",
"displayName": "Kitchen Scentsy ",
"username": "****@****.***",
"password": "******"
},
{
"accessory": "HiveThermostat",
"name": "Hive Thermostat",
"username": "****@****.***",
"password": "******"
}],
"platforms": [{
"platform": "TplinkSmarthome",
"name": "TplinkSmarthome",
"broadcast": "255.255.255.255",
"devices": [],
"deviceTypes": [],
"macAddresses": [],
"pollingInterval": 10,
"addCustomCharacteristics": true,
"inUseThreshold": 0,
"switchModels": ["HS200"],
"timeout": 5
}]
} |
[ Voor 14% gewijzigd door meesje op 29-11-2018 13:36 ]
