homebridge-fritz-platform
-
-
SeydX :
Jetz läuft wieder alles bis auf das Fritz-platform Plugin.
Fehler im homebridge.log ist
[5/12/2019, 5:46:10 PM] [FritzPlatform] [INFO] Initializing config...
[5/12/2019, 5:46:10 PM] [FritzPlatform] [INFO] Found 10 active devices…
[5/12/2019, 5:46:10 PM] [FritzPlatform] [ERROR] An error occured while checking config!
Anbei mein config.json (Habe nur die IP's und User/PW ausgeXt
{
"platform": "FritzPlatform",
"devices": {
"fritzwz": {
"active": true,
"host": "192.168.xxxxxx",
"port": 49000,
"username": "xxxxxx",
"password": "xxxxxx",
"type": "dsl",
"readOnly": false,
"options": {
"wifi2": false,
"wifi5": false,
"wifiGuest": false,
"wps": false,
"led": false
}
},
"Fritzoben": {
"active": true,
"host": "192.168.xxxxxx",
"port": 49000,
"username": "xxxxxxx",
"password": "xxxxxxxx",
"type": "dsl",
"readOnly": false,
"options": {
"wifi2": false,
"wifi5": false,
"wifiGuest": false,
"wps": false,
"led": false
}
},
"FRITZ!Box 7590": {
"active": true,
"host": "192.168.xxxxxxx",
"port": 49000,
"username": "xxxxxxxxx",
"password": "xxxxxxx",
"type": "dsl",
"master": true,
"mesh": true,
"readOnly": false,
"options": {
"wifi2": false,
"wifi5": false,
"wifiGuest": false,
"phoneBook": false,
"wps": false,
"aw": false,
"deflection": false,
"led": false,
"lock": false
}
},
"FRITZ!Powerline 1240E": {
"active": true,
"host": "192.168.100.23",
"port": 49000,
"username": "",
"password": "xxxxx",
"type": "",
"master": false,
"mesh": false,
"readOnly": false,
"options": false
},
"Philips hue (192.168.100.251)": {
"active": false,
"host": "192.168.100.251",
"port": 80,
"username": "",
"password": "",
"type": "",
"master": false,
"mesh": false,
"readOnly": false,
"options": false
}
},
"smarthome": {
"Pflanzlicht": {
"active": true,
"ain": "116570xxxxx",
"tempSensor": true,
"devType": "switch"
},
"Thermostat": {
"active": true,
"ain": "10971xxxxxx",
"heatValue": 5,
"coolValue": 5,
"windowSensor": false,
"devType": "thermostat"
},
"Schwippbogen": {
"active": true,
"ain": "11657xxxxxxx",
"tempSensor": true,
"devType": "switch"
}
},
"presence": {
"user": [
{
"active": true,
"name": "Ralf",
"address": "192.168.xxxxxx"
}
],
"anyone": true,
"offDelay": 90,
"onDelay": 15
},
"broadband": {
"active": false,
"measureTime": 5
},
"extReboot": {
"active": false,
"cmdOn": "",
"cmdOff": ""
},
"polling": 10,
"timeout": 10,
"clearCache": false
}
],
Vielleicht hast Du eine Idee oder ich habe etwas falsch in meiner Config. Danke vorab für Deine Hilfe
P.S. Wie mache ich das mit dem Powerlin Adapter. Der hat keine User sondern nur Passwort
ich nutze zwar keine Fritzbox und deshalb auch nicht dieses Plugin, aber der Bereich ab Presence sieht komisch auf. Vor allem die Setzung der Klammern. Das kann ich so nicht in der example-config.json nachlesen auf github. Muss das wirklich genau so sein?
Zusaetzlich weiß ich nicht, ob es sich beißt wenn du bei Hue noch Klammern und die IP angibst, also als Name --> "Philips hue (192.168.100.251)":
Config wird automatisch generiert, das Problem liegt wo anders, sehe leider debug nicht...
Habe ich doch glatt übersehen. Danke.
Alles anzeigenHast du im /etc/init.d/ Ordner eine Datei namens ‚homebridge‘ ?
Wenn ja, kannst du mal die Datei öffnen und nach „DEBUG=*“ suchen und diesen ersetzen mit DEBUG=FritzPlatform,FritzPlatformTR064,FritzPlatformLUA
und hb neustarten mit -D
In dem Verzeichnis habe ich keine Datei „homebridge“. Habe auch sonst keine Datei „homebridge“ mit einem Eintrag DEBUG=* gefunden. Ich nutze die Debian Variante des Containers von Oznu
SeydX : Habe jetzt mal die neue Version installiert. Anbei das Log
Diesen Fehler zeigt das Log. Leider kann ich damit nichts anfangen
[37m[5/13/2019, 7:26:24 AM][39m [36m[FritzPlatform][39m [1m[31m[ERROR] An error occured while checking config![39m[22m
{ status: 500,
message: 'Internal Server Error',
data:
'<?xml version="1.0"?>\n<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">\n<s:Body>\n<s:Fault>\n<faultcode>s:Client</faultcode>\n<faultstring>UPnPError</faultstring>\n<detail>\n<UPnPError xmlns="urn:dslforum-org:control-1-0">\n<errorCode>606</errorCode>\n<errorDescription>Action Not Authorized</errorDescription>\n</UPnPError>\n</detail>\n</s:Fault>\n</s:Body>\n</s:Envelope>',
serviceType: 'urn:dslforum-org:service:WANCommonInterfaceConfig:1',
action: 'GetCommonLinkProperties' }
warum zeigt mir Config-ui-x keine updates an?
Muss ich jetzt manuell Updaten?
sudo npm i -g homebridge-fritz-platform@dev
Beim starten meiner Homebridge sehe ich auch das in meinem Log
CodeMay 13 10:35:07 raspberrypi homebridge[613]: [2019-5-13 10:35:07] [FritzPlatform] [INFO] Looking for devices... May 13 10:35:07 raspberrypi homebridge[613]: [2019-5-13 10:35:07] [FritzPlatform] [ERROR] An error occured while checking config!In der Home App und in Eve sieht alles gut aus, doch wenn ich in Eve auf den Repeater gehe und die Led zum testen ausschalten möchte passiert nichts
Habe nun manuell ein update auf dev.8 gemacht.
Allerdings keine besserung. (ECONNREFUSED)
Code
Alles anzeigenMay 13 10:54:10 raspberrypi homebridge[6312]: [2019-5-13 10:54:10] Loaded config.json with 0 accessories and 4 platforms. May 13 10:54:10 raspberrypi homebridge[6312]: [2019-5-13 10:54:10] --- May 13 10:54:10 raspberrypi homebridge[6312]: [2019-5-13 10:54:10] Loaded plugin: homebridge-config-ui-x May 13 10:54:10 raspberrypi homebridge[6312]: [2019-5-13 10:54:10] Registering platform 'homebridge-config-ui-x.config' May 13 10:54:10 raspberrypi homebridge[6312]: [2019-5-13 10:54:10] --- May 13 10:54:11 raspberrypi homebridge[6312]: [2019-5-13 10:54:11] Loaded plugin: homebridge-eq3ble May 13 10:54:11 raspberrypi homebridge[6312]: [2019-5-13 10:54:11] Registering accessory 'homebridge-eq3ble.EQ3-Thermostat' May 13 10:54:11 raspberrypi homebridge[6312]: [2019-5-13 10:54:11] --- May 13 10:54:11 raspberrypi homebridge[6312]: [2019-5-13 10:54:11] Plugin /usr/local/lib/node_modules/homebridge-fritz-platform requires Node version of ^10.15.3 which does not satisfy the current Node version of v9.9.0. You may need to upgrade your installation of Node. May 13 10:54:11 raspberrypi homebridge[6312]: [2019-5-13 10:54:11] Loaded plugin: homebridge-fritz-platform May 13 10:54:12 raspberrypi homebridge[6312]: [2019-5-13 10:54:12] Registering platform 'homebridge-fritz-platform.FritzPlatform' May 13 10:54:12 raspberrypi homebridge[6312]: [2019-5-13 10:54:12] --- May 13 10:54:12 raspberrypi homebridge[6312]: [2019-5-13 10:54:12] Loaded plugin: homebridge-platform-eq3btsmart May 13 10:54:12 raspberrypi homebridge[6312]: [2019-5-13 10:54:12] Registering platform 'homebridge-platform-eq3btsmart.eq3BTSmart' May 13 10:54:12 raspberrypi homebridge[6312]: [2019-5-13 10:54:12] --- May 13 10:54:13 raspberrypi homebridge[6312]: [2019-5-13 10:54:13] Loaded plugin: homebridge-weather-plus May 13 10:54:13 raspberrypi homebridge[6312]: [2019-5-13 10:54:13] Registering platform 'homebridge-weather-plus.WeatherPlus' May 13 10:54:13 raspberrypi homebridge[6312]: [2019-5-13 10:54:13] --- May 13 10:54:13 raspberrypi homebridge[6312]: [2019-5-13 10:54:13] Loading 4 platforms... May 13 10:54:13 raspberrypi homebridge[6312]: [2019-5-13 10:54:13] [Config] Initializing config platform... May 13 10:54:13 raspberrypi homebridge[6312]: [2019-5-13 10:54:13] [Config] Running in Standalone Mode. May 13 10:54:13 raspberrypi homebridge[6312]: [2019-5-13 10:54:13] [FritzPlatform] Initializing FritzPlatform platform... May 13 10:54:13 raspberrypi homebridge[6312]: [2019-5-13 10:54:13] [FritzPlatform] [INFO] ************************************************************** May 13 10:54:13 raspberrypi homebridge[6312]: [2019-5-13 10:54:13] [FritzPlatform] [INFO] FritzPlatform v4.0.0-dev.8 by SeydX May 13 10:54:13 raspberrypi homebridge[6312]: [2019-5-13 10:54:13] [FritzPlatform] [INFO] GitHub: https://github.com/SeydX/homebridge-fritz-platform May 13 10:54:13 raspberrypi homebridge[6312]: [2019-5-13 10:54:13] [FritzPlatform] [INFO] Email: [email protected] May 13 10:54:13 raspberrypi homebridge[6312]: [2019-5-13 10:54:13] [FritzPlatform] [INFO] ************************************************************** May 13 10:54:13 raspberrypi homebridge[6312]: [2019-5-13 10:54:13] [FritzPlatform] [INFO] start success... May 13 10:54:13 raspberrypi homebridge[6312]: [2019-5-13 10:54:13] [WeatherPlus] Initializing WeatherPlus platform... May 13 10:54:13 raspberrypi homebridge[6312]: [2019-5-13 10:54:13] [WeatherPlus] Initializing platform accessory 'Now'... May 13 10:54:14 raspberrypi homebridge[6312]: [2019-5-13 10:54:14] [WeatherPlus] Initializing platform accessory 'Today'... May 13 10:54:14 raspberrypi homebridge[6312]: [2019-5-13 10:54:14] [WeatherPlus] Initializing platform accessory 'In 1 Day'... May 13 10:54:14 raspberrypi homebridge[6312]: [2019-5-13 10:54:14] [Heizung] Initializing eq3BTSmart platform... May 13 10:54:14 raspberrypi homebridge[6312]: [2019-5-13 10:54:14] Loading 0 accessories... May 13 10:54:14 raspberrypi homebridge[6312]: [2019-5-13 10:54:14] [FritzPlatform] [INFO] Looking for devices... May 13 10:54:14 raspberrypi homebridge[6312]: [2019-5-13 10:54:14] [FritzPlatform] [ERROR] An error occured while checking config! May 13 10:54:14 raspberrypi homebridge[6312]: { Error: connect ECONNREFUSED 192.168.178.25:8060 May 13 10:54:14 raspberrypi homebridge[6312]: at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1173:14) May 13 10:54:14 raspberrypi homebridge[6312]: errno: 'ECONNREFUSED', May 13 10:54:14 raspberrypi homebridge[6312]: code: 'ECONNREFUSED', May 13 10:54:14 raspberrypi homebridge[6312]: syscall: 'connect', May 13 10:54:14 raspberrypi homebridge[6312]: address: '192.168.178.25', May 13 10:54:14 raspberrypi homebridge[6312]: port: 8060, May 13 10:54:14 raspberrypi homebridge[6312]: config: May 13 10:54:14 raspberrypi homebridge[6312]: { adapter: [Function: httpAdapter], May 13 10:54:14 raspberrypi homebridge[6312]: transformRequest: { '0': [Function: transformRequest] }, May 13 10:54:14 raspberrypi homebridge[6312]: transformResponse: { '0': [Function: transformResponse] }, May 13 10:54:14 raspberrypi homebridge[6312]: timeout: 0, May 13 10:54:14 raspberrypi homebridge[6312]: xsrfCookieName: 'XSRF-TOKEN', May 13 10:54:14 raspberrypi homebridge[6312]: xsrfHeaderName: 'X-XSRF-TOKEN', May 13 10:54:14 raspberrypi homebridge[6312]: maxContentLength: -1, May 13 10:54:14 raspberrypi homebridge[6312]: validateStatus: [Function: validateStatus], May 13 10:54:14 raspberrypi homebridge[6312]: headers: May 13 10:54:14 raspberrypi homebridge[6312]: { Accept: 'application/json, text/plain, */*', May 13 10:54:14 raspberrypi homebridge[6312]: 'User-Agent': 'axios/0.18.0' }, May 13 10:54:14 raspberrypi homebridge[6312]: method: 'get', May 13 10:54:14 raspberrypi homebridge[6312]: url: 'http://192.168.178.25:8060/', May 13 10:54:14 raspberrypi homebridge[6312]: data: undefined }, May 13 10:54:14 raspberrypi homebridge[6312]: request: May 13 10:54:14 raspberrypi homebridge[6312]: Writable { May 13 10:54:14 raspberrypi homebridge[6312]: _writableState: May 13 10:54:14 raspberrypi homebridge[6312]: WritableState { May 13 10:54:14 raspberrypi homebridge[6312]: objectMode: false, May 13 10:54:14 raspberrypi homebridge[6312]: highWaterMark: 16384, May 13 10:54:14 raspberrypi homebridge[6312]: finalCalled: false, May 13 10:54:14 raspberrypi homebridge[6312]: needDrain: false, May 13 10:54:14 raspberrypi homebridge[6312]: ending: false, May 13 10:54:14 raspberrypi homebridge[6312]: ended: false, May 13 10:54:14 raspberrypi homebridge[6312]: finished: false, May 13 10:54:14 raspberrypi homebridge[6312]: destroyed: false, May 13 10:54:14 raspberrypi homebridge[6312]: decodeStrings: true, May 13 10:54:14 raspberrypi homebridge[6312]: defaultEncoding: 'utf8', May 13 10:54:14 raspberrypi homebridge[6312]: length: 0, May 13 10:54:14 raspberrypi homebridge[6312]: writing: false, May 13 10:54:14 raspberrypi homebridge[6312]: corked: 0, May 13 10:54:14 raspberrypi homebridge[6312]: sync: true, May 13 10:54:14 raspberrypi homebridge[6312]: bufferProcessing: false, May 13 10:54:14 raspberrypi homebridge[6312]: onwrite: [Function: bound onwrite], May 13 10:54:14 raspberrypi homebridge[6312]: writecb: null, May 13 10:54:14 raspberrypi homebridge[6312]: writelen: 0, May 13 10:54:14 raspberrypi homebridge[6312]: bufferedRequest: null, May 13 10:54:14 raspberrypi homebridge[6312]: lastBufferedRequest: null, May 13 10:54:14 raspberrypi homebridge[6312]: pendingcb: 0, May 13 10:54:14 raspberrypi homebridge[6312]: prefinished: false, May 13 10:54:14 raspberrypi homebridge[6312]: errorEmitted: false, May 13 10:54:14 raspberrypi homebridge[6312]: bufferedRequestCount: 0, May 13 10:54:14 raspberrypi homebridge[6312]: corkedRequestsFree: [Object] }, May 13 10:54:14 raspberrypi homebridge[6312]: writable: true, May 13 10:54:14 raspberrypi homebridge[6312]: _events: May 13 10:54:14 raspberrypi homebridge[6312]: { response: [Function: handleResponse], May 13 10:54:14 raspberrypi homebridge[6312]: error: [Function: handleRequestError] }, May 13 10:54:14 raspberrypi homebridge[6312]: _eventsCount: 2, May 13 10:54:14 raspberrypi homebridge[6312]: _maxListeners: undefined, May 13 10:54:14 raspberrypi homebridge[6312]: _options: May 13 10:54:14 raspberrypi homebridge[6312]: { maxRedirects: 21, May 13 10:54:14 raspberrypi homebridge[6312]: maxBodyLength: 10485760, May 13 10:54:14 raspberrypi homebridge[6312]: protocol: 'http:', May 13 10:54:14 raspberrypi homebridge[6312]: path: '/', May 13 10:54:14 raspberrypi homebridge[6312]: method: 'get', May 13 10:54:14 raspberrypi homebridge[6312]: headers: [Object], May 13 10:54:14 raspberrypi homebridge[6312]: agent: undefined, May 13 10:54:14 raspberrypi homebridge[6312]: auth: undefined, May 13 10:54:14 raspberrypi homebridge[6312]: hostname: '192.168.178.25', May 13 10:54:14 raspberrypi homebridge[6312]: port: '8060', May 13 10:54:14 raspberrypi homebridge[6312]: nativeProtocols: [Object], May 13 10:54:14 raspberrypi homebridge[6312]: pathname: '/' }, May 13 10:54:14 raspberrypi homebridge[6312]: _ended: true, May 13 10:54:14 raspberrypi homebridge[6312]: _ending: true, May 13 10:54:14 raspberrypi homebridge[6312]: _redirectCount: 0, May 13 10:54:14 raspberrypi homebridge[6312]: _redirects: [], May 13 10:54:14 raspberrypi homebridge[6312]: _requestBodyLength: 0, May 13 10:54:14 raspberrypi homebridge[6312]: _requestBodyBuffers: [], May 13 10:54:14 raspberrypi homebridge[6312]: _onNativeResponse: [Function], May 13 10:54:14 raspberrypi homebridge[6312]: _currentRequest: May 13 10:54:14 raspberrypi homebridge[6312]: ClientRequest { May 13 10:54:14 raspberrypi homebridge[6312]: _events: [Object], May 13 10:54:14 raspberrypi homebridge[6312]: _eventsCount: 6, May 13 10:54:14 raspberrypi homebridge[6312]: _maxListeners: undefined, May 13 10:54:14 raspberrypi homebridge[6312]: output: [], May 13 10:54:14 raspberrypi homebridge[6312]: outputEncodings: [], May 13 10:54:14 raspberrypi homebridge[6312]: outputCallbacks: [], May 13 10:54:14 raspberrypi homebridge[6312]: outputSize: 0, May 13 10:54:14 raspberrypi homebridge[6312]: writable: true, May 13 10:54:14 raspberrypi homebridge[6312]: _last: true, May 13 10:54:14 raspberrypi homebridge[6312]: upgrading: false, May 13 10:54:14 raspberrypi homebridge[6312]: chunkedEncoding: false, May 13 10:54:14 raspberrypi homebridge[6312]: shouldKeepAlive: false, May 13 10:54:14 raspberrypi homebridge[6312]: useChunkedEncodingByDefault: false, May 13 10:54:14 raspberrypi homebridge[6312]: sendDate: false, May 13 10:54:14 raspberrypi homebridge[6312]: _removedConnection: false, May 13 10:54:14 raspberrypi homebridge[6312]: _removedContLen: false, May 13 10:54:14 raspberrypi homebridge[6312]: _removedTE: false, May 13 10:54:14 raspberrypi homebridge[6312]: _contentLength: 0, May 13 10:54:14 raspberrypi homebridge[6312]: _hasBody: true, May 13 10:54:14 raspberrypi homebridge[6312]: _trailer: '', May 13 10:54:14 raspberrypi homebridge[6312]: finished: true, May 13 10:54:14 raspberrypi homebridge[6312]: _headerSent: true, May 13 10:54:14 raspberrypi homebridge[6312]: socket: [Socket], May 13 10:54:14 raspberrypi homebridge[6312]: connection: [Socket], May 13 10:54:14 raspberrypi homebridge[6312]: _header: 'GET / HTTP/1.1\r\nAccept: application/json, text/plain, */*\r\nUser-Agent: axios/0.18.0\r\nHost: 192.168.178.25:8060\r\nConnection: close\r\n\r\n', May 13 10:54:14 raspberrypi homebridge[6312]: _onPendingData: [Function: noopPendingOutput], May 13 10:54:14 raspberrypi homebridge[6312]: agent: [Agent], May 13 10:54:14 raspberrypi homebridge[6312]: socketPath: undefined, May 13 10:54:14 raspberrypi homebridge[6312]: timeout: undefined, May 13 10:54:14 raspberrypi homebridge[6312]: method: 'GET', May 13 10:54:14 raspberrypi homebridge[6312]: path: '/', May 13 10:54:14 raspberrypi homebridge[6312]: _ended: false, May 13 10:54:14 raspberrypi homebridge[6312]: res: null, May 13 10:54:14 raspberrypi homebridge[6312]: aborted: undefined, May 13 10:54:14 raspberrypi homebridge[6312]: timeoutCb: null, May 13 10:54:14 raspberrypi homebridge[6312]: upgradeOrConnect: false, May 13 10:54:14 raspberrypi homebridge[6312]: parser: null, May 13 10:54:14 raspberrypi homebridge[6312]: maxHeadersCount: null, May 13 10:54:14 raspberrypi homebridge[6312]: _redirectable: [Circular], May 13 10:54:14 raspberrypi homebridge[6312]: [Symbol(isCorked)]: false, May 13 10:54:14 raspberrypi homebridge[6312]: [Symbol(outHeadersKey)]: [Object] }, May 13 10:54:14 raspberrypi homebridge[6312]: _currentUrl: 'http://192.168.178.25:8060/' }, May 13 10:54:14 raspberrypi homebridge[6312]: response: undefined } May 13 10:54:14 raspberrypi homebridge[6312]: [2019-5-13 10:54:14] [Heizung] EQ3 - Discovering devices... May 13 10:54:29 raspberrypi homebridge[6312]: [2019-5-13 10:54:29] [Heizung] EQ3 - Found 1 devices. May 13 10:54:29 raspberrypi homebridge[6312]: [2019-5-13 10:54:29] [Heizung] Initializing platform accessory '00:1a:22:11:1d:21'...EDIT
Problem selbst behoben.
sudo systemctl stop homebridge
sudo rm -rf /var/homebridge/accessories
sudo npm uninstall -g homebridge-fritz-platform
danach habe ich dann nochmal einen clean install gemacht.
läuft wieder.
Wil es eine "Dev" Version ist, updates musst du manuell installieren bzw gucken ob es welche gibt.
Bzgl. ECONNREFUSED. Das sieht so aus als würde FritzBox die Verbindung ablehnen... ich sehe das das Plugin auf Port 8060 zugreifen möchte, was soll da sein?
Ist 8060 bei dir im config.json als Port eingetragen? Kannst du mal schauen was bei dir auf der FritzBox Seite als Port eingetragen ist
FritzBox > Freigaben > FRITZ!Box Dienste > TCP-Port für HTTPS
lg
FettesB das müssen wir mal weiter beobachten
btw.
Neue Version ist online
jetzt könnt ihr Philipps HUE aus config entfernen, sollte jetzt nixht mehr wieder auftauchen
SeydX : Danke für Deine Mühen, sieht jetzt schon besser aus. trotzdem kommen noch Fehler.
Anbei mein Log. Ich habe vorher ein Update auf Dev9 gemacht
Das Problem scheint jetzt bei meiner 3. Fritzbox (Fritzwz) zu liegen, hier sind aber die Usersettings die gleichen, wie bei den anderen Fritzboxen.
SeydX : Habe jetzt mal Fritzwz auf active=flase gesetzt. Jetzt kommt nur noch die Fehlermeldung :
[FritzPlatform] [ERROR] Smarthome List: An error occured while genersting smarthome list!
Soll ich vielleicht mal den Smarthometeil aus der config.json löschen, persist und accessorries leer machen und dann neu starten?
Oder das besser die Config durc das Plugin neu einlesen lassen?