Beiträge von Normsen

    Funktioniert bei mir problemlos.

    Kannst du sagen welche befehle du benutzt hast? Bekomme es nicht zum laufen. Habe noble, Git und bluetooth installiert aber ständig kommt der Fehler das er den bluetooth hci socket nicht findet :/ den Raspi habe ich jetzt schon gefühlt 6 mal neu aufgesetzt

    {

    "bridge": {

    "name": "Homebridge",

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

    "port": 51826,

    "pin": "031-45-154"

    },

    "description": "Home Smart Home",

    "platforms": [{

    "platform": "config",

    "name": "Config",

    "port": 8080,

    "auth": "form",

    "theme": "red",

    "restart": "sudo -n systemctl restart homebridge",

    "temp": "/sys/class/thermal/thermal_zone0/temp",

    "sudo": true,

    "log": {

    "method": "systemd",

    "service": "homebridge"

    }

    } ],

    "accessories": [

    {

    "accessory": "AveaBulb",

    "name": "sleeping room table lamp",

    "manufacturer": "Elgato",

    "model": "Avea",

    "serialnumber": "Avea_7F14",

    "bluetoothid": "78a5048e1145"

    }

    ]

    }

    befehle für Avea in die Config geschrieben und Homebridge startet nicht mehr..


    Sep 09 16:59:50 raspberrypi sudo[1792]: homebridge : TTY=unknown ; PWD=/ ; USER=root ; COMMAND=/bin/systemctl restart homebridge

    Sep 09 16:59:50 raspberrypi sudo[1792]: pam_unix(sudo:session): session opened for user root by (uid=0)

    Sep 09 16:59:50 raspberrypi systemd[1]: Stopping Node.js HomeKit Server...

    Sep 09 16:59:50 raspberrypi homebridge[965]: [9/9/2018, 4:59:50 PM] Got SIGTERM, shutting down Homebridge...

    Sep 09 16:59:55 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=143/n/a

    Sep 09 16:59:55 raspberrypi systemd[1]: Stopped Node.js HomeKit Server.

    Sep 09 16:59:55 raspberrypi systemd[1]: homebridge.service: Unit entered failed state.

    Sep 09 16:59:55 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.

    Sep 09 16:59:55 raspberrypi systemd[1]: Started Node.js HomeKit Server.

    Sep 09 16:59:55 raspberrypi sudo[1792]: pam_unix(sudo:session): session closed for user root

    Sep 09 16:59:55 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=203/EXEC

    Sep 09 16:59:55 raspberrypi systemd[1]: homebridge.service: Unit entered failed state.

    Sep 09 16:59:55 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.

    Sep 09 17:00:05 raspberrypi systemd[1]: homebridge.service: Service hold-off time over, scheduling restart.

    Sep 09 17:00:05 raspberrypi systemd[1]: Stopped Node.js HomeKit Server.

    Sep 09 17:00:05 raspberrypi systemd[1]: Started Node.js HomeKit Server.

    Sep 09 17:00:05 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=203/EXEC

    Sep 09 17:00:05 raspberrypi systemd[1]: homebridge.service: Unit entered failed state.

    Sep 09 17:00:05 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.

    Sep 09 17:00:16 raspberrypi systemd[1]: homebridge.service: Service hold-off time over, scheduling restart.

    Sep 09 17:00:16 raspberrypi systemd[1]: Stopped Node.js HomeKit Server.

    Sep 09 17:00:16 raspberrypi systemd[1]: Started Node.js HomeKit Server.

    Sep 09 17:00:16 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=203/EXEC

    Sep 09 17:00:16 raspberrypi systemd[1]: homebridge.service: Unit entered failed state.

    Sep 09 17:00:16 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.

    Sep 09 17:00:26 raspberrypi systemd[1]: homebridge.service: Service hold-off time over, scheduling restart.

    Sep 09 17:00:26 raspberrypi systemd[1]: Stopped Node.js HomeKit Server.

    Sep 09 17:00:26 raspberrypi systemd[1]: Started Node.js HomeKit Server.

    Sep 09 17:00:26 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=203/EXEC

    Sep 09 17:00:26 raspberrypi systemd[1]: homebridge.service: Unit entered failed state.

    Sep 09 17:00:26 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.

    Sep 09 17:00:36 raspberrypi systemd[1]: homebridge.service: Service hold-off time over, scheduling restart.

    Sep 09 17:00:36 raspberrypi systemd[1]: Stopped Node.js HomeKit Server.

    Sep 09 17:00:36 raspberrypi systemd[1]: Started Node.js HomeKit Server.

    Sep 09 17:00:36 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=203/EXEC

    Sep 09 17:00:36 raspberrypi systemd[1]: homebridge.service: Unit entered failed state.

    Sep 09 17:00:36 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.

    Sep 09 17:00:46 raspberrypi systemd[1]: homebridge.service: Service hold-off time over, scheduling restart.

    Sep 09 17:00:46 raspberrypi systemd[1]: Stopped Node.js HomeKit Server.

    Sep 09 17:00:46 raspberrypi systemd[1]: Started Node.js HomeKit Server.

    Sep 09 17:00:46 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=203/EXEC

    Sep 09 17:00:46 raspberrypi systemd[1]: homebridge.service: Unit entered failed state.

    Sep 09 17:00:46 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.

    homebridge läuft wieder. Habe das Plugin deinstalliert und erneut installiert.


    sudo journalctl -fau homebridge zeigt mir das:


    sudo journalctl -fau homebridge

    -- Logs begin at Thu 2016-11-03 18:16:43 CET. --

    Sep 09 16:43:45 raspberrypi homebridge[965]:

    Sep 09 16:43:45 raspberrypi homebridge[965]: Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:

    Sep 09 16:43:45 raspberrypi homebridge[965]:

    Sep 09 16:43:45 raspberrypi homebridge[965]: ??????????????

    Sep 09 16:43:45 raspberrypi homebridge[965]: ? 031-45-154 ?

    Sep 09 16:43:45 raspberrypi homebridge[965]: ??????????????

    Sep 09 16:43:45 raspberrypi homebridge[965]:

    Sep 09 16:43:45 raspberrypi homebridge[965]: [9/9/2018, 4:43:45 PM] Homebridge is running on port 51826.

    Sep 09 16:43:48 raspberrypi homebridge[965]: [9/9/2018, 4:43:48 PM] [Config] Using Form Authentication

    Sep 09 16:43:48 raspberrypi homebridge[965]: [9/9/2018, 4:43:48 PM] [Config] Console v3.8.10 is listening on port 8080.


    sieht erstmal ok aus denke ich..


    und nun? :/

    nachdem jetzt wieder gar nichts geht und mir nur noch angezeigt das der host down ist, gebe ich erstmal auf und warte auf den Profi. danach wird es wohl wieder eine Neuinstallation werden. Bald kann ich deine Anleitung auswendig :D


    Gruß Norman

    so: habe alles wieder bereinigt in der config.json. Neuinstallation der Avea bulb, selbe Fehler denke ich, aber Homebridge startet und bei Plugins steht das Avea Plugin. Und mit der Meldung das es Aktualisiert werden kann. Dort drauf klicken lässt aber wieder den Browser abstürzen :/

    sudo chown -R $USER /usr/local && npm install -g homebridge-avea-bulb


    habe es damit noch mal versucht, aber diese Fehler noch bei obwohl er lange installiert hat.


    yp ERR! build error

    gyp ERR! stack Error: `make` failed with exit code: 2

    gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262:23)

    gyp ERR! stack at ChildProcess.emit (events.js:182:13)

    gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:240:12)

    gyp ERR! System Linux 4.14.50-v7+

    gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"

    gyp ERR! cwd /usr/local/lib/node_modules/homebridge-avea-bulb/node_modules/bluetooth-hci-socket

    gyp ERR! node -v v10.10.0

    gyp ERR! node-gyp -v v3.8.0

    gyp ERR! not ok

    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/homebridge-avea-bulb/node_modules/xpc-connection):

    npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"})

    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/homebridge-avea-bulb/node_modules/bluetooth-hci-socket):

    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: `node-gyp rebuild`

    npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1


    + [email protected]

    added 15 packages from 15 contributors in 62.876s



    dann trotzdem die cofig.json angepasst und nun startet die hombridge nicht neu.


    Gruß Norman

    Habe noch das probiert:

    Code
    curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -

    dann das:

    Code
    sudo apt-get install -y nodejs

    dann das:

    Code
    sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev

    dann:

    Code
    sudo apt-get install -y build-essential

    die 3 befehle von dir für Avea Bulb... aber gleicher Fehler im Terminal. nun bin ich ratlos.


    Norman

    Ach, hör auf. Genau dieses Problem habe ich vor drei Tagen auch mit einem anderen Plugin gehabt. Das sind jene Plugins, die nicht im npm-Repository zu finden sind, und dann muss man sie mit git von GitHub runterladen. Das ist einfach blöd, weil man sie auch nicht mit homebridge-config-ui-x vernünftig verwalten kann.


    Hier im Forum sind welche, die das ohne Probleme hinkriegen und nicht mal wissen, warum, und nur wir zwei sind irgendwie zu blöd. Na gut. Ich wollte das Problem eh verstehen und setz mich morgen mal dran. Ich hab mal einen Spielfilm über's Überleben im tiefsten Alaska gesehen, und da wurde ständig das Mantra vorgetragen: "Was ein Mann kann, kann auch ein anderer" und dann haben sie einen Bären mit bloßen Händen umgebracht. Wird jetzt auch mein Motto.


    Stefan

    Guten morgen,


    Ich bin gespannt Stefan. Dann mache ich erstmal nichts, werde mir die Befehle trainieren und mich mehr mit dem Raspi beschäftigen :)


    Gruß Norman

    ah ok da war ich wohl zu aufgeregt und habe alles eingegeben :D


    jetzt aber das hier:

    pi@raspberrypi:~ $ sudo -i

    root@raspberrypi:~# npm install -g --unsafe-perm homebridge-avea-bulb

    npm ERR! Error while executing:

    npm ERR! /usr/bin/git ls-remote -h -t https://git@github.com/lockitron/noble.git

    npm ERR!

    npm ERR! fatal: failed to stat '.': Permission denied

    npm ERR!

    npm ERR! exited with error code: 128


    npm ERR! A complete log of this run can be found in:

    npm ERR! /root/.npm/_logs/2018-09-07T17_38_12_065Z-debug.log

    root@raspberrypi:~#

    Git installieren.

    so Raspberry läuft wieder, Git ist installiert, dann fehler beim installieren des Plugins


    pi@raspberrypi:~ $ sudo -i npm install -g --unsafe-perm homebridge-avea-bulb exit


    SSH is enabled and the default password for the 'pi' user has not been changed.

    This is a security risk - please login as the 'pi' user and type 'passwd' to set a new password.


    npm ERR! Error while executing:

    npm ERR! /usr/bin/git ls-remote -h -t https://git@github.com/lockitron/noble.git

    npm ERR!

    npm ERR! fatal: failed to stat '.': Permission denied

    npm ERR!

    npm ERR! exited with error code: 128


    npm ERR! A complete log of this run can be found in:

    npm ERR! /root/.npm/_logs/2018-09-07T16_35_58_004Z-debug.log

    pi@raspberrypi:~ $ sudo -i npm install -g --unsafe-perm homebridge-avea-bulb exit

    npm ERR! Error while executing:

    npm ERR! /usr/bin/git ls-remote -h -t https://git@github.com/lockitron/noble.git

    npm ERR!

    npm ERR! fatal: failed to stat '.': Permission denied

    npm ERR!

    npm ERR! exited with error code: 128


    npm ERR! A complete log of this run can be found in:

    npm ERR! /root/.npm/_logs/2018-09-07T16_38_43_450Z-debug.log


    den weg das Plugin über den Homebridge browser zu installieren habe ich noch ausgeschlossen, ging ja vorher auch irgendwie nicht.


    Gruß Norman

    Danke. Dann werde ich nachher den Raspi platt machen, nach deiner Anleitung neu aufsetzen, Github installieren und mit dem Befehl

    ...sudo -i npm install -g --unsafe-perm homebridge-avea-bulb exit... das Plugin installieren?


    kannst du noch sagen warum das mit dem NOPASSWD nicht geklappt hat? s.o.

    ich denke es ist sinnvoll den Raspi noch mal platt zu machen. Karte Flashen und Betriebssystem zu installieren. Dann werde ich nach deiner Anleitung alles wieder so machen. Wenn ich Avea installieren möchte dann mit deinem Befehl. Git installieren ja?Nein?

    Guten morgen,


    bin komplett neu in dem Thema und habe dann nur durch lesen gesehen das Git installiert werden muss. Was macht dein Befehl? Komme ich wieder auf die Bridge? Wie soll Avea installiert werden? Bzw. wie bekomme ich das erstmal alles wieder sauber?


    Gruß Norman

    nachdem das Plugin wahrscheinlich halb installiert war, hatte config.json angepasst und wurde auch so gespeichert. dann neustart und non komme ich nicht mehr auf die homebridge.


    sudo systemctl restart homebridge; sudo journalctl -fau homebridge

    -- Logs begin at Fri 2018-09-07 07:17:01 CEST. --

    Sep 07 08:20:31 raspberrypi homebridge[2048]: [9/7/2018, 8:20:31 AM] Loading 1 platforms...

    Sep 07 08:20:31 raspberrypi homebridge[2048]: [9/7/2018, 8:20:31 AM] [Config] Initializing config platform...

    Sep 07 08:20:31 raspberrypi homebridge[2048]: [9/7/2018, 8:20:31 AM] [Config] Spawning homebridge-config-ui-x with PID 2066

    Sep 07 08:20:31 raspberrypi homebridge[2048]: [9/7/2018, 8:20:31 AM] Loading 1 accessories...

    Sep 07 08:20:31 raspberrypi homebridge[2048]: /usr/local/lib/node_modules/homebridge/lib/api.js:64

    Sep 07 08:20:31 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=1/FAILURE

    Sep 07 08:20:31 raspberrypi systemd[1]: homebridge.service: Unit entered failed state.

    Sep 07 08:20:31 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.

    Sep 07 08:20:36 raspberrypi systemd[1]: Stopped Node.js HomeKit Server.

    Sep 07 08:20:36 raspberrypi systemd[1]: Started Node.js HomeKit Server.

    Sep 07 08:20:38 raspberrypi homebridge[2080]: [9/7/2018, 8:20:38 AM] Loaded config.json with 1 accessories and 1 platforms.

    Sep 07 08:20:38 raspberrypi homebridge[2080]: [9/7/2018, 8:20:38 AM] ---

    Sep 07 08:20:38 raspberrypi homebridge[2080]: [9/7/2018, 8:20:38 AM] ====================

    Sep 07 08:20:38 raspberrypi homebridge[2080]: [9/7/2018, 8:20:38 AM] ERROR LOADING PLUGIN homebridge-avea-bulb:

    Sep 07 08:20:38 raspberrypi homebridge[2080]: [9/7/2018, 8:20:38 AM] Error: Cannot find module 'bluetooth-hci-socket'

    Sep 07 08:20:38 raspberrypi homebridge[2080]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)

    Sep 07 08:20:38 raspberrypi homebridge[2080]: at Function.Module._load (internal/modules/cjs/loader.js:507:25)

    Sep 07 08:20:38 raspberrypi homebridge[2080]: at Module.require (internal/modules/cjs/loader.js:637:17)

    Sep 07 08:20:38 raspberrypi homebridge[2080]: at require (internal/modules/cjs/helpers.js:20:18)

    Sep 07 08:20:38 raspberrypi homebridge[2080]: at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-avea-bulb/node_modules/noble/lib/hci-socket/hci.js:6:26)

    Sep 07 08:20:38 raspberrypi homebridge[2080]: at Module._compile (internal/modules/cjs/loader.js:689:30)

    Sep 07 08:20:38 raspberrypi homebridge[2080]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)

    Sep 07 08:20:38 raspberrypi homebridge[2080]: at Module.load (internal/modules/cjs/loader.js:599:32)

    Sep 07 08:20:38 raspberrypi homebridge[2080]: at tryModuleLoad (internal/modules/cjs/loader.js:538:12)

    Sep 07 08:20:38 raspberrypi homebridge[2080]: at Function.Module._load (internal/modules/cjs/loader.js:530:3)

    Sep 07 08:20:38 raspberrypi homebridge[2080]: [9/7/2018, 8:20:38 AM] ====================

    Sep 07 08:20:38 raspberrypi homebridge[2080]: [9/7/2018, 8:20:38 AM] Loaded plugin: homebridge-config-ui-x

    Sep 07 08:20:38 raspberrypi homebridge[2080]: [9/7/2018, 8:20:38 AM] Registering platform 'homebridge-config-ui-x.config'

    Sep 07 08:20:38 raspberrypi homebridge[2080]: [9/7/2018, 8:20:38 AM] ---

    Sep 07 08:20:38 raspberrypi homebridge[2080]: [9/7/2018, 8:20:38 AM] Loading 1 platforms...

    Sep 07 08:20:38 raspberrypi homebridge[2080]: [9/7/2018, 8:20:38 AM] [Config] Initializing config platform...

    Sep 07 08:20:38 raspberrypi homebridge[2080]: [9/7/2018, 8:20:38 AM] [Config] Spawning homebridge-config-ui-x with PID 2106

    Sep 07 08:20:38 raspberrypi homebridge[2080]: [9/7/2018, 8:20:38 AM] Loading 1 accessories...

    Sep 07 08:20:38 raspberrypi homebridge[2080]: /usr/local/lib/node_modules/homebridge/lib/api.js:64

    Sep 07 08:20:38 raspberrypi homebridge[2080]: throw new Error("The requested accessory '" + name + "' was not registered by any plugin.");

    Sep 07 08:20:38 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=1/FAILURE

    Sep 07 08:20:38 raspberrypi systemd[1]: homebridge.service: Unit entered failed state.

    Sep 07 08:20:38 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.

    Sep 07 08:20:48 raspberrypi systemd[1]: homebridge.service: Service hold-off time over, scheduling restart.

    Sep 07 08:20:48 raspberrypi systemd[1]: Stopped Node.js HomeKit Server.

    Sep 07 08:20:48 raspberrypi systemd[1]: Started Node.js HomeKit Server.

    Sep 07 08:20:50 raspberrypi homebridge[2113]: [9/7/2018, 8:20:50 AM] Loaded config.json with 1 accessories and 1 platforms.

    Sep 07 08:20:50 raspberrypi homebridge[2113]: [9/7/2018, 8:20:50 AM] ---

    Sep 07 08:20:50 raspberrypi homebridge[2113]: [9/7/2018, 8:20:50 AM] ====================

    Sep 07 08:20:50 raspberrypi homebridge[2113]: [9/7/2018, 8:20:50 AM] ERROR LOADING PLUGIN homebridge-avea-bulb:

    Sep 07 08:20:50 raspberrypi homebridge[2113]: [9/7/2018, 8:20:50 AM] Error: Cannot find module 'bluetooth-hci-socket'

    Sep 07 08:20:50 raspberrypi homebridge[2113]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)

    Sep 07 08:20:50 raspberrypi homebridge[2113]: at Function.Module._load (internal/modules/cjs/loader.js:507:25)

    Sep 07 08:20:50 raspberrypi homebridge[2113]: at Module.require (internal/modules/cjs/loader.js:637:17)

    Sep 07 08:20:50 raspberrypi homebridge[2113]: at require (internal/modules/cjs/helpers.js:20:18)

    Sep 07 08:20:50 raspberrypi homebridge[2113]: at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-avea-bulb/node_modules/noble/lib/hci-socket/hci.js:6:26)

    Sep 07 08:20:50 raspberrypi homebridge[2113]: at Module._compile (internal/modules/cjs/loader.js:689:30)

    Sep 07 08:20:50 raspberrypi homebridge[2113]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)

    Sep 07 08:20:50 raspberrypi homebridge[2113]: at Module.load (internal/modules/cjs/loader.js:599:32)

    Sep 07 08:20:50 raspberrypi homebridge[2113]: at tryModuleLoad (internal/modules/cjs/loader.js:538:12)

    Sep 07 08:20:50 raspberrypi homebridge[2113]: at Function.Module._load (internal/modules/cjs/loader.js:530:3)

    Sep 07 08:20:50 raspberrypi homebridge[2113]: [9/7/2018, 8:20:50 AM] ====================

    Sep 07 08:20:50 raspberrypi homebridge[2113]: [9/7/2018, 8:20:50 AM] Loaded plugin: homebridge-config-ui-x

    Sep 07 08:20:50 raspberrypi homebridge[2113]: [9/7/2018, 8:20:50 AM] Registering platform 'homebridge-config-ui-x.config'

    Sep 07 08:20:50 raspberrypi homebridge[2113]: [9/7/2018, 8:20:50 AM] ---

    Sep 07 08:20:50 raspberrypi homebridge[2113]: [9/7/2018, 8:20:50 AM] Loading 1 platforms...

    Sep 07 08:20:50 raspberrypi homebridge[2113]: [9/7/2018, 8:20:50 AM] [Config] Initializing config platform...

    Sep 07 08:20:50 raspberrypi homebridge[2113]: [9/7/2018, 8:20:50 AM] [Config] Spawning homebridge-config-ui-x with PID 2131

    Sep 07 08:20:50 raspberrypi homebridge[2113]: [9/7/2018, 8:20:50 AM] Loading 1 accessories...

    Sep 07 08:20:50 raspberrypi homebridge[2113]: /usr/local/lib/node_modules/homebridge/lib/api.js:64

    Sep 07 08:20:50 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=1/FAILURE

    Sep 07 08:20:50 raspberrypi systemd[1]: homebridge.service: Unit entered failed state.

    Sep 07 08:20:50 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.

    Sep 07 08:21:00 raspberrypi systemd[1]: homebridge.service: Service hold-off time over, scheduling restart.

    Sep 07 08:21:00 raspberrypi systemd[1]: Stopped Node.js HomeKit Server.

    Sep 07 08:21:00 raspberrypi systemd[1]: Started Node.js HomeKit Server.

    Sep 07 08:21:02 raspberrypi homebridge[2138]: [9/7/2018, 8:21:02 AM] Loaded config.json with 1 accessories and 1 platforms.

    Sep 07 08:21:02 raspberrypi homebridge[2138]: [9/7/2018, 8:21:02 AM] ---

    Sep 07 08:21:02 raspberrypi homebridge[2138]: [9/7/2018, 8:21:02 AM] ====================

    Sep 07 08:21:02 raspberrypi homebridge[2138]: [9/7/2018, 8:21:02 AM] ERROR LOADING PLUGIN homebridge-avea-bulb:

    Sep 07 08:21:02 raspberrypi homebridge[2138]: [9/7/2018, 8:21:02 AM] Error: Cannot find module 'bluetooth-hci-socket'

    Sep 07 08:21:02 raspberrypi homebridge[2138]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)

    Sep 07 08:21:02 raspberrypi homebridge[2138]: at Function.Module._load (internal/modules/cjs/loader.js:507:25)

    Sep 07 08:21:02 raspberrypi homebridge[2138]: at Module.require (internal/modules/cjs/loader.js:637:17)

    Sep 07 08:21:02 raspberrypi homebridge[2138]: at require (internal/modules/cjs/helpers.js:20:18)

    Sep 07 08:21:02 raspberrypi homebridge[2138]: at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-avea-bulb/node_modules/noble/lib/hci-socket/hci.js:6:26)

    Sep 07 08:21:02 raspberrypi homebridge[2138]: at Module._compile (internal/modules/cjs/loader.js:689:30)

    Sep 07 08:21:02 raspberrypi homebridge[2138]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)

    Sep 07 08:21:02 raspberrypi homebridge[2138]: at Module.load (internal/modules/cjs/loader.js:599:32)

    Sep 07 08:21:02 raspberrypi homebridge[2138]: at tryModuleLoad (internal/modules/cjs/loader.js:538:12)

    Sep 07 08:21:02 raspberrypi homebridge[2138]: at Function.Module._load (internal/modules/cjs/loader.js:530:3)

    Sep 07 08:21:02 raspberrypi homebridge[2138]: [9/7/2018, 8:21:02 AM] ====================

    Sep 07 08:21:02 raspberrypi homebridge[2138]: [9/7/2018, 8:21:02 AM] Loaded plugin: homebridge-config-ui-x

    Sep 07 08:21:02 raspberrypi homebridge[2138]: [9/7/2018, 8:21:02 AM] Registering platform 'homebridge-config-ui-x.config'

    Sep 07 08:21:02 raspberrypi homebridge[2138]: [9/7/2018, 8:21:02 AM] ---

    Sep 07 08:21:02 raspberrypi homebridge[2138]: [9/7/2018, 8:21:02 AM] Loading 1 platforms...

    Sep 07 08:21:02 raspberrypi homebridge[2138]: [9/7/2018, 8:21:02 AM] [Config] Initializing config platform...

    Sep 07 08:21:02 raspberrypi homebridge[2138]: [9/7/2018, 8:21:02 AM] [Config] Spawning homebridge-config-ui-x with PID 2156

    Sep 07 08:21:02 raspberrypi homebridge[2138]: [9/7/2018, 8:21:02 AM] Loading 1 accessories...

    Sep 07 08:21:02 raspberrypi homebridge[2138]: /usr/local/lib/node_modules/homebridge/lib/api.js:64

    Sep 07 08:21:02 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=1/FAILURE

    Sep 07 08:21:02 raspberrypi systemd[1]: homebridge.service: Unit entered failed state.

    Sep 07 08:21:02 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.

    Sep 07 08:21:12 raspberrypi systemd[1]: homebridge.service: Service hold-off time over, scheduling restart.

    Sep 07 08:21:12 raspberrypi systemd[1]: Stopped Node.js HomeKit Server.

    Sep 07 08:21:12 raspberrypi systemd[1]: Started Node.js HomeKit Server.

    Sep 07 08:21:14 raspberrypi homebridge[2163]: [9/7/2018, 8:21:14 AM] Loaded config.json with 1 accessories and 1 platforms.

    Sep 07 08:21:14 raspberrypi homebridge[2163]: [9/7/2018, 8:21:14 AM] ---

    Sep 07 08:21:14 raspberrypi homebridge[2163]: [9/7/2018, 8:21:14 AM] ====================

    Sep 07 08:21:14 raspberrypi homebridge[2163]: [9/7/2018, 8:21:14 AM] ERROR LOADING PLUGIN homebridge-avea-bulb:

    Sep 07 08:21:14 raspberrypi homebridge[2163]: [9/7/2018, 8:21:14 AM] Error: Cannot find module 'bluetooth-hci-socket'

    Sep 07 08:21:14 raspberrypi homebridge[2163]: at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)

    Sep 07 08:21:14 raspberrypi homebridge[2163]: at Function.Module._load (internal/modules/cjs/loader.js:507:25)

    Sep 07 08:21:14 raspberrypi homebridge[2163]: at Module.require (internal/modules/cjs/loader.js:637:17)

    Sep 07 08:21:14 raspberrypi homebridge[2163]: at require (internal/modules/cjs/helpers.js:20:18)

    Sep 07 08:21:14 raspberrypi homebridge[2163]: at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-avea-bulb/node_modules/noble/lib/hci-socket/hci.js:6:26)

    Sep 07 08:21:14 raspberrypi homebridge[2163]: at Module._compile (internal/modules/cjs/loader.js:689:30)

    Sep 07 08:21:14 raspberrypi homebridge[2163]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)

    Sep 07 08:21:14 raspberrypi homebridge[2163]: at Module.load (internal/modules/cjs/loader.js:599:32)

    Sep 07 08:21:14 raspberrypi homebridge[2163]: at tryModuleLoad (internal/modules/cjs/loader.js:538:12)

    Sep 07 08:21:14 raspberrypi homebridge[2163]: at Function.Module._load (internal/modules/cjs/loader.js:530:3)

    Sep 07 08:21:14 raspberrypi homebridge[2163]: [9/7/2018, 8:21:14 AM] ====================

    Sep 07 08:21:14 raspberrypi homebridge[2163]: [9/7/2018, 8:21:14 AM] Loaded plugin: homebridge-config-ui-x

    Sep 07 08:21:14 raspberrypi homebridge[2163]: [9/7/2018, 8:21:14 AM] Registering platform 'homebridge-config-ui-x.config'

    Sep 07 08:21:14 raspberrypi homebridge[2163]: [9/7/2018, 8:21:14 AM] ---

    Sep 07 08:21:14 raspberrypi homebridge[2163]: [9/7/2018, 8:21:14 AM] Loading 1 platforms...

    Sep 07 08:21:14 raspberrypi homebridge[2163]: [9/7/2018, 8:21:14 AM] [Config] Initializing config platform...

    Sep 07 08:21:14 raspberrypi homebridge[2163]: [9/7/2018, 8:21:14 AM] [Config] Spawning homebridge-config-ui-x with PID 2181

    Sep 07 08:21:14 raspberrypi homebridge[2163]: [9/7/2018, 8:21:14 AM] Loading 1 accessories...

    Sep 07 08:21:14 raspberrypi homebridge[2163]: /usr/local/lib/node_modules/homebridge/lib/api.js:64

    Sep 07 08:21:14 raspberrypi homebridge[2163]: throw new Error("The requested accessory '" + name + "' was not registered by any plugin.");

    Sep 07 08:21:14 raspberrypi systemd[1]: homebridge.service: Main process exited, code=exited, status=1/FAILURE

    Sep 07 08:21:14 raspberrypi systemd[1]: homebridge.service: Unit entered failed state.

    Sep 07 08:21:14 raspberrypi systemd[1]: homebridge.service: Failed with result 'exit-code'.

    ^C

    pi@raspberrypi:~ $ Write failed: Host is down

    habe das noch gemacht..

    Code
    sudo apt-get install git

    dann

    npm install -g --unsafe-perm homebridge-avea-bulb

    Fehler:

    npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/homebridge-avea-bulb

    npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules/homebridge-avea-bulb/node_modules

    npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules

    npm ERR! path /usr/local/lib/node_modules/homebridge-avea-bulb

    npm ERR! code EACCES

    npm ERR! errno -13

    npm ERR! syscall access

    npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules/homebridge-avea-bulb'

    npm ERR! { [Error: EACCES: permission denied, access '/usr/local/lib/node_modules/homebridge-avea-bulb']

    npm ERR! stack:

    npm ERR! 'Error: EACCES: permission denied, access \'/usr/local/lib/node_modules/homebridge-avea-bulb\'',

    npm ERR! errno: -13,

    npm ERR! code: 'EACCES',

    npm ERR! syscall: 'access',

    npm ERR! path: '/usr/local/lib/node_modules/homebridge-avea-bulb' }

    npm ERR!

    npm ERR! The operation was rejected by your operating system.

    npm ERR! It is likely you do not have the permissions to access this file as the current user

    npm ERR!

    npm ERR! If you believe this might be a permissions issue, please double-check the

    npm ERR! permissions of the file and its containing directories, or try running

    npm ERR! the command again as root/Administrator (though this is not recommended).


    npm ERR! A complete log of this run can be found in:

    npm ERR! /home/pi/.npm/_logs/2018-09-06T20_35_13_921Z-debug.log


    dann so:

    sudo npm install -g --unsafe-perm homebridge-avea-bulb

    Fehler:

    npm ERR! code 128

    npm ERR! Command failed: /usr/bin/git submodule update -q --init --recursive

    npm ERR! fatal: Could not change back to '/root/.npm/_cacache/tmp/git-clone-01bd620e': Permission denied

    npm ERR!


    npm ERR! A complete log of this run can be found in:

    npm ERR! /root/.npm/_logs/2018-09-06T20_36_07_195Z-debug.log


    ich verzweifle gerade...