Beiträge von exuded

    Ich habe Node versuch zu updaten... jeodoch funktioniert nun überhaupt nichts mehr:

    pi@raspberrypi:~ $ homebridge

    internal/modules/cjs/loader.js:583

    throw err;

    ^


    Error: Cannot find module 'commander'

    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)

    at Function.Module._load (internal/modules/cjs/loader.js:507:25)

    at Module.require (internal/modules/cjs/loader.js:637:17)

    at require (internal/modules/cjs/helpers.js:20:18)

    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/lib/cli.js:1:77)

    at Module._compile (internal/modules/cjs/loader.js:689:30)

    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)

    at Module.load (internal/modules/cjs/loader.js:599:32)

    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)

    at Function.Module._load (internal/modules/cjs/loader.js:530:3)



    Laut Google Ergebnissen des Fehlers gibt es da super viele Fehlerursachen.... Ich bin drauf und dran den Raspi zum 7. mal komplett neu aufzusetzen und Homebridge erneut zu installieren...

    Welche Node Version sollte ich denn dann nehmen?

    Denn beim letzten mal ging ich von dieser Anleitung aus. Jedoch scheint hier ja dann der Absatz, indem erklärt wird wie man Node installiert veraltet zu sein. Denn damit erhielt ich dann die zu alte Version.


    Oder gibt es einen anderen Rat, ohne alles neu aufzusetzen? :|

    der USER muss leer sein beim ersten Start. Also entferne mal die zwei

    ich habe es versucht und die config.json wie folgt geändert:

    {

    "bridge": {

    "name": "Homebridge",

    "username": "CC:22:3D:E3:CE:30",

    "port": 51826,

    "pin": "031-45-154"

    },


    "accessories": [

    ],


    "platforms": [

    {

    "platform": "Hue",

    "users": {

    },

    "lights": true

    }

    ]

    }



    Nun erhalte ich weiterhin die gleiche Fehlermeldung:



    pi@raspberrypi:~ $ homebridge

    [7/14/2018, 6:32:08 PM] Loaded config.json with 0 accessories and 1 platforms.

    [7/14/2018, 6:32:08 PM] ---

    [7/14/2018, 6:32:09 PM] Plugin /usr/local/lib/node_modules/homebridge-hue requires Node version of ^8.11.3 which does not satisfy the current Node version of v6.10.0. You may need to upgrade your installation of Node.

    [7/14/2018, 6:32:10 PM] ====================

    [7/14/2018, 6:32:10 PM] ERROR LOADING PLUGIN homebridge-hue:

    [7/14/2018, 6:32:10 PM] /usr/local/lib/node_modules/homebridge-hue/node_modules/homebridge-lib/lib/LibPlatform.js:127

    async _identify () {

    ^^^^^^^^^

    SyntaxError: Unexpected identifier

    at Object.exports.runInThisContext (vm.js:76:16)

    at Module._compile (module.js:542:28)

    at Object.Module._extensions..js (module.js:579:10)

    at Module.load (module.js:487:32)

    at tryModuleLoad (module.js:446:12)

    at Function.Module._load (module.js:438:3)

    at Module.require (module.js:497:17)

    at require (internal/module.js:20:19)

    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-hue/node_modules/homebridge-lib/index.js:17:16)

    at Module._compile (module.js:570:32)

    [7/14/2018, 6:32:10 PM] ====================

    [7/14/2018, 6:32:10 PM] No plugins found. See the README for information on installing plugins.

    [7/14/2018, 6:32:10 PM] Loading 1 platforms...

    /usr/local/lib/node_modules/homebridge/lib/api.js:122

    throw new Error("The requested platform '" + name + "' was not registered by any plugin.");

    ^


    Error: The requested platform 'Hue' was not registered by any plugin.

    at API.platform (/usr/local/lib/node_modules/homebridge/lib/api.js:122:13)

    at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:315:45)

    at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:85:36)

    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:43:10)

    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)

    at Module._compile (module.js:570:32)

    at Object.Module._extensions..js (module.js:579:10)

    at Module.load (module.js:487:32)

    at tryModuleLoad (module.js:446:12)

    at Function.Module._load (module.js:438:3)

    Hallo zusammen,


    da ich langsam verzweifle und durch die vielen Beiträge hier dennoch keine Lösung fand, wende ich mich nun mit einem eigenen Beitrag an euch.


    Ich hatte meine Homebridge zunächst über die HomeBridge iOS App eingerichtet und konfiguriert. Dies funktionierte auch soweit. Als ich dann jedoch das homebridge-hue Plugin installierte und die Config editieren wollte, haben sich die Hinweise in den Foren überschlagen und gegenseitig widersprochen.

    Das Problem war: Es gab nach Eintragung des User Tokens ("xxxxx":"xxxxxxxx") immer folgende Fehlermeldung beim Neustart von Homebridge: Error1: unauthorized user

    Da ich jedoch sicher gehen konnte, dass ich das von der Bridge erhaltene User Token richtig in die Config (über die App) eingetragen hatte, wusste ich nicht mehr weiter.

    Als nächstes probierte ich die Config.json ohne die App, direkt am Raspi zu editieren. Dort war die Config.json jedoch nicht aufzufinden.


    Deshalb deinstallierte ich Homebridge und installierte es ohne die Homebridge App komplett neu, direkt über das Terminal des Raspi.


    Nun zum erneuten Problem nach Installation des Homebridge-hue Plugins.

    Ich habe die config.json wie folgt angepasst:

    {

    "bridge": {

    "name": "Homebridge",

    "username": "CC:22:3D:E3:CE:30",

    "port": 51826,

    "pin": "031-45-154"

    },


    "accessories": [

    ],


    "platforms": [

    {

    "platform": "Hue",

    "users": {

    "001788FFFExxxxxx": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",

    "001788FFFEyyyyyy": "yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy"

    },

    "lights": true

    }

    ]

    }


    Mit diesem Stand wollte ich nun Homebridge neu starten, um wie mehrfach in Foren erwähnt, den User Token von der Hue Bridge zu erhalten und diesen danach in der Config.json einzutragen. So soll sich die Homebridge ja mit der Hue Bridge verbinden können.


    Jedoch erhalte ich beim Launch von Homebridge dann folgendes fehlerhaftes Log:

    pi@raspberrypi:~ $ homebridge

    [7/14/2018, 5:56:20 PM] Loaded config.json with 0 accessories and 1 platforms.

    [7/14/2018, 5:56:20 PM] ---

    [7/14/2018, 5:56:20 PM] Plugin /usr/local/lib/node_modules/homebridge-hue requires Node version of ^8.11.3 which does not satisfy the current Node version of v6.10.0. You may need to upgrade your installation of Node.

    [7/14/2018, 5:56:21 PM] ====================

    [7/14/2018, 5:56:21 PM] ERROR LOADING PLUGIN homebridge-hue:

    [7/14/2018, 5:56:21 PM] /usr/local/lib/node_modules/homebridge-hue/node_modules/homebridge-lib/lib/LibPlatform.js:127

    async _identify () {

    ^^^^^^^^^

    SyntaxError: Unexpected identifier

    at Object.exports.runInThisContext (vm.js:76:16)

    at Module._compile (module.js:542:28)

    at Object.Module._extensions..js (module.js:579:10)

    at Module.load (module.js:487:32)

    at tryModuleLoad (module.js:446:12)

    at Function.Module._load (module.js:438:3)

    at Module.require (module.js:497:17)

    at require (internal/module.js:20:19)

    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-hue/node_modules/homebridge-lib/index.js:17:16)

    at Module._compile (module.js:570:32)

    [7/14/2018, 5:56:21 PM] ====================

    [7/14/2018, 5:56:21 PM] No plugins found. See the README for information on installing plugins.

    [7/14/2018, 5:56:22 PM] Loading 1 platforms...

    /usr/local/lib/node_modules/homebridge/lib/api.js:122

    throw new Error("The requested platform '" + name + "' was not registered by any plugin.");

    ^


    Error: The requested platform 'Hue' was not registered by any plugin.

    at API.platform (/usr/local/lib/node_modules/homebridge/lib/api.js:122:13)

    at Server._loadPlatforms (/usr/local/lib/node_modules/homebridge/lib/server.js:315:45)

    at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:85:36)

    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:43:10)

    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)

    at Module._compile (module.js:570:32)

    at Object.Module._extensions..js (module.js:579:10)

    at Module.load (module.js:487:32)

    at tryModuleLoad (module.js:446:12)

    at Function.Module._load (module.js:438:3)



    Jetzt weiß ich leider nicht weiter. Ich möchte einfach nur das Homebridge-hue Plugin zum laufen bringen und meinen Osram Smart Plug, der mit der Hue Bridge gekoppelt ist, via HomeKit steuern können.


    Vielen Dank im Voraus für Eure hoffentlich Rettung ;):)