sschuste zuerst mal vielen Dank, dass Du mir hilfst mein selbstverursachtes Chaos zu beseitigen. Ich geh die Punkte am besten Schritt für Schritt durch.
Also, im Verzeichnis /usr/lib/node_modules/homebridge/bin liegt bei mir die Datei homebridge (grün und fett im Terminalfenster, das dürfte also das Programm sein.
file /var/lib/homebridge liefert mir folgendes zurück: /var/lib/homebridge: directory
In /var/lib/homebridge liegt eine Unzahl von config.json Dateien sowie die Verzeichnisse node-persist und persist. In node-persist liegen einige json Dateien, in erzeichnis persist liegt ein Verzeichnis storage in darin einige Dateien (scheinbar gehören die zu zum Homebridge People Guest Mode Plugin).
file /usr/lib/node_modules/homebridge/bin/homebridge liefert mir folgendes zurück:
/usr/lib/node_modules/homebridge/bin/homebridge: a /usr/bin/env node script, ASCII text executable
file /usr/local/lib/node_modules/homebridge/bin/homebridge liefert mir folgendes zurück:
/usr/local/lib/node_modules/homebridge/bin/homebridge: cannot open `/usr/local/lib/node_modules/homebridge/bin/homebridge' (No such file or directory)
file /var/lib/homebridge/config.json liefert mir folgendes zurück: /var/lib/homebridge/config.json: JSON data. Das ist die richtige und einzige config.json Datei die ich auch in homebridge-config-ui-x ändern kann. Gerade gegengecheckt.
Im Verzeichnis /usr/local/lib/node_modules liegt einmal die Datei n und einmal npm (das stammt vermutlich von meinen Stümpereien n zu installieren). ls -ld /usr/local/lib/node_modules/homebridge* liefert richtigerweise "No such file or directory" zurück.
Im Verzeichnis /usr/lib/node_modules liegen alle Plugins UND die Dateien n und npm.
ls -ld /usr/lib/node_modules/homebridge* liefert die einzelnen Plugins zurück:
drwxr-xr-x 5 root root 4096 May 29 09:59 /usr/lib/node_modules/homebridge
drwxr-xr-x 5 root root 4096 May 29 10:07 /usr/lib/node_modules/homebridge-camera-ffmpeg
drwxr-xr-x 6 root root 4096 May 29 09:59 /usr/lib/node_modules/homebridge-config-ui-x
drwxr-xr-x 4 root root 4096 May 29 10:07 /usr/lib/node_modules/homebridge-daikin-local
drwxr-xr-x 9 root root 4096 May 29 10:07 /usr/lib/node_modules/homebridge-eveatmo
drwxr-xr-x 4 root root 4096 May 29 10:08 /usr/lib/node_modules/homebridge-nest
drwxr-xr-x 3 root root 4096 May 29 12:51 /usr/lib/node_modules/homebridge-people-guest-mode
drwxr-xr-x 3 root root 4096 May 29 10:08 /usr/lib/node_modules/homebridge-platform-maxcube
drwxr-xr-x 2 root root 4096 May 29 10:08 /usr/lib/node_modules/homebridge-raspberrypi-temperature
drwxr-xr-x 9 root root 4096 May 29 10:08 /usr/lib/node_modules/homebridge-shelly
drwxr-xr-x 4 root root 4096 May 29 10:09 /usr/lib/node_modules/homebridge-smappee-platform
drwxr-xr-x 3 root root 4096 May 29 10:09 /usr/lib/node_modules/homebridge-sonoff-tasmota-http
drwxr-xr-x 4 root root 4096 May 29 10:09 /usr/lib/node_modules/homebridge-telegram
drwxr-xr-x 4 root root 4096 May 29 10:09 /usr/lib/node_modules/homebridge-tplink-smarthome
drwxr-xr-x 6 root root 4096 May 29 11:14 /usr/lib/node_modules/homebridge-weather-plus
drwxr-xr-x 5 root root 4096 May 30 09:40 /usr/lib/node_modules/homebridge-wol
npm -v liefert 6.14.5 zurück.
In hombridge-config-ui-x wird aber angezeigt, dass v6.14.4 in Verwendung ist. Ich hab durch meine Stümperei also scheinbar zweimal n und npm auf dem Raspi, einmal in /usr/lib/node_modules neben den Homebridge Plugins und einmal in /usr/local/lib/node_modules. Dort irgendwie liegt vermutlich der Hund begraben. Diese npm Version schaffe ich auch nicht zu aktualisieren. Weil wenn ich sudo npm i npm@latest -g starte wird scheinbar die nicht von homebridge-config-ui-x verwendete Version in /usr/local/lib aktualisiert.
Gebe ich sudo npm list -g --depth=0 ein kriege ich auch nur noch folgendes zurück (bisher konnte ich auch hier immer alle homebridge Plugins auflisten). Derzeit gibt dieser Befehl folgendes zurück:
/usr/local/lib
Kann ich das irgendwie wieder geradebiegen? Wie krieg ich das überschüssige n und npm wieder runter und die Konfiguration wieder richtig?