Hi,
ich habe den Sonoff Touch, ist es möglich auch diesen einzubinden ohne Switch?
Habe MQTT laufen sowie Homebridge ansich.
Jedoch wenn ich meinen Sonoff in der config.json konfiguriere startet HB nicht.
Code
File: /home/pi/.homebridge/config.json
{
"bridge": { "name": "Homebridge", "username": "CC:22:3D:E3:CE:30", "port": 51826, "pin": "031-45-154"
},
"platforms": [], "accessories": [ {
"accessory": "sonoff",
"switchType": "outlet",
"name": "sonoff",
"url": "mqtt://192.168.0.45",
"hostname": "192.168.0.66",
"username": "",
"password": "",
"topics": {
"statusGet": "stat/sonoff/RESULT",
"statusSet": "cmnd/sonoff/POWER",
"stateGet": "tele/sonoff/STATE"
},
"onValue": "ON",
"offValue": "OFF",
"activityTopic": "tele/sonoff/LWT",
"activityParameter": "Online",
"startCmd": "cmnd/sonoff/TelePeriod",
"startParameter": "60",
"manufacturer": "ITEAD",
"model": "Sonoff",
"serialNumberMAC": "1234"
}
]
}
Alles anzeigen
Code
Error:
homebridge
(node:4646) [DEP0022] DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
[03/11/2018, 18:03:31] Loaded config.json with 1 accessories and 0 platforms.
[03/11/2018, 18:03:31] ---
[03/11/2018, 18:03:34] Loaded plugin: homebridge-sonoff-tasmota-http
[03/11/2018, 18:03:34] Registering accessory 'homebridge-sonoff-tasmota-http.SonoffTasmotaHTTP'
[03/11/2018, 18:03:34] ---
[03/11/2018, 18:03:34] Loading 0 platforms...
[03/11/2018, 18:03:34] Loading 1 accessories...
/usr/local/lib/node_modules/homebridge/lib/api.js:64 throw new Error("The requested accessory '" + name + "' was not registered by any plugin."); ^
Error: The requested accessory 'sonoff' was not registered by any plugin. at API.accessory (/usr/local/lib/node_modules/homebridge/lib/api.js:64:13) at Server._loadAccessories (/usr/local/lib/node_modules/homebridge/lib/server.js:286:42) at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:87:38) at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:45:10) at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3)
Alles anzeigen
Vielleicht kann mir ja jemand behilflich sein.