Beiträge von doctorgremlin

    Hallo zusammen,


    leider bekomme ich seit dem letzten Update folgende Fehlermeldung:


    pi@raspberrypi:~ $ homebridge

    [2.12.2020, 19:58:49] Loaded config.json with 1 accessories and 4 platforms.

    [2.12.2020, 19:58:49] ---

    [2.12.2020, 19:58:51] Loaded plugin: [email protected]

    [2.12.2020, 19:58:51] Registering platform 'homebridge-config-ui-x.config'

    [2.12.2020, 19:58:51] ---

    [2.12.2020, 19:58:51] Loaded plugin: [email protected]

    [2.12.2020, 19:58:53] Registering platform 'homebridge-fritz-platform.FritzPlatform'

    [2.12.2020, 19:58:53] ---

    [2.12.2020, 19:58:53] Loaded plugin: [email protected]

    [2.12.2020, 19:58:53] Registering platform 'homebridge-homematic.HomeMatic'

    [2.12.2020, 19:58:53] ---

    [2.12.2020, 19:58:53] Loaded plugin: [email protected]

    [2.12.2020, 19:58:56] Registering platform 'homebridge-weather-plus.WeatherPlus'

    [2.12.2020, 19:58:56] ---

    [2.12.2020, 19:58:57] Loaded plugin: [email protected]

    [2.12.2020, 19:58:57] Registering accessory 'homebridge-xiaomi-roborock-vacuum.XiaomiRoborockVacuum'

    [2.12.2020, 19:58:57] ---

    [2.12.2020, 19:58:57] Loading 4 platforms...

    [2.12.2020, 19:58:57] [Config] Initializing config platform...

    [2.12.2020, 19:58:57] [Config] Spawning homebridge-config-ui-x with PID 26690

    [2.12.2020, 19:58:57] [HomeMatic CCU] Initializing HomeMatic platform...

    [2.12.2020, 19:58:57] [HomeMatic CCU] [Core] merging configurations

    [2.12.2020, 19:58:57] [HomeMatic CCU] Homematic Plugin Version 0.1.231

    [2.12.2020, 19:58:57] [HomeMatic CCU] Plugin by thkl https://github.com/thkl

    [2.12.2020, 19:58:57] [HomeMatic CCU] Homematic is a registered trademark of the EQ-3 AG

    [2.12.2020, 19:58:57] [HomeMatic CCU] Please report any issues to https://github.com/thkl/homebridge-homematic/issues

    [2.12.2020, 19:58:57] [HomeMatic CCU] running in production mode

    [2.12.2020, 19:58:57] [HomeMatic CCU] will connect to your ccu at 192.168.0.17

    [2.12.2020, 19:58:57] [HomeMatic CCU] IMPORTANT !! Starting this version, your homematic custom configuration is located in /home/pi/.homebridge/homematic_config.json

    [2.12.2020, 19:58:57] [HomeMatic CCU] [RPC] using xmprpc for communication with BidCos-RF

    [2.12.2020, 19:58:57] [HomeMatic CCU] init RPC for BidCos-RF.

    [2.12.2020, 19:58:57] [HomeMatic CCU] [RPC] local ip used : 192.168.0.5. you may change that with local_ip parameter in config

    [2.12.2020, 19:58:57] [HomeMatic CCU] init RPC for VirtualDevices.

    [2.12.2020, 19:58:57] [HomeMatic CCU] [RPC] local ip used : 192.168.0.5. you may change that with local_ip parameter in config

    [2.12.2020, 19:58:57] [HomeMatic CCU] [RPC] using xmprpc for communication with BidCos-Wired

    [2.12.2020, 19:58:57] [HomeMatic CCU] init RPC for BidCos-Wired.

    [2.12.2020, 19:58:57] [HomeMatic CCU] [RPC] local ip used : 192.168.0.5. you may change that with local_ip parameter in config

    [2.12.2020, 19:58:57] [HomeMatic CCU] init RPC for HmIP-RF.

    [2.12.2020, 19:58:57] [HomeMatic CCU] [RPC] local ip used : 192.168.0.5. you may change that with local_ip parameter in config

    [2.12.2020, 19:58:57] [FritzPlatform] Initializing FritzPlatform platform...

    [2.12.2020, 19:59:00] [HomeMatic CCU] [RPC] server for interface BidCos-RF. is listening on port 9090.

    [2.12.2020, 19:59:00] [HomeMatic CCU] [RPC] Creating Local HTTP Client for CCU RPC Events

    [2.12.2020, 19:59:00] [HomeMatic CCU] [RPC] server for interface VirtualDevices. is listening on port 9093.

    [2.12.2020, 19:59:00] [HomeMatic CCU] [RPC] Creating Local HTTP Client for CCU RPC Events

    [2.12.2020, 19:59:00] [HomeMatic CCU] [RPC] server for interface BidCos-Wired. is listening on port 9091.

    [2.12.2020, 19:59:00] [HomeMatic CCU] [RPC] Creating Local HTTP Client for CCU RPC Events

    [2.12.2020, 19:59:00] [HomeMatic CCU] [RPC] server for interface HmIP-RF. is listening on port 9092.

    [2.12.2020, 19:59:00] [HomeMatic CCU] [RPC] Creating Local HTTP Client for CCU RPC Events

    [2.12.2020, 19:59:00] TypeError: this.config.devices.map is not a function

    at new FritzPlatform (/usr/lib/node_modules/homebridge-fritz-platform/src/platform.js:82:25)

    at /usr/lib/node_modules/homebridge/src/server.ts:395:40

    at Array.forEach (<anonymous>)

    at Server.loadPlatforms (/usr/lib/node_modules/homebridge/src/server.ts:372:27)

    at Server.start (/usr/lib/node_modules/homebridge/src/server.ts:151:29)

    at cli (/usr/lib/node_modules/homebridge/src/cli.ts:80:10)

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

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

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

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

    [2.12.2020, 19:59:00] Got SIGTERM, shutting down Homebridge...

    [2.12.2020, 19:59:00] [HomeMatic CCU] [RPC] Removing Event Server for Interface BidCos-RF.

    [2.12.2020, 19:59:00] [HomeMatic CCU] [RPC] Removing Event Server for Interface BidCos-Wired.

    [2.12.2020, 19:59:00] [HomeMatic CCU] [RPC] Removing Event Server for Interface HmIP-RF.


    Hat jemand eine Idee für mich, wie ich das wieder zum Laufen bringe?

    Ich vermute, es hat mit dem Update von Nodejs via hb-service auf 14.15.1 zu tun, aber wie kann ich wieder auf Version 12 downgraden (die war vorher installiert)?


    Gruß,

    Doc

    Ja, ist mit drin:

    Code
    pi@raspberrypi:~ $ echo $PATH
    /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/games:/usr/games:/usr/lib/jvm/java-8-oracle/bin:/usr/lib/jvm/java-8-oracle/db/bin:/usr/lib/jvm/java-8-oracle/jre/bin

    Interessanterweise habe ich das setup jetzt nochmal durchlaufen lassen, diesmal scheint es geklappt zu haben:

    Verstehe ich zwar nicht, warum es jetzt geklappt hat, aber immerhin bin ich jetzt mal einen Schritt weiter.

    Ja, es kommen wirklich zwei Meldungen, wenn ich /usr/bin/gcc bzw. /usr/bin/g++ angebe:


    Code
    pi@raspberrypi:~ $ which g++
    /usr/bin/g++
    pi@raspberrypi:~ $ which g++ /usr/bin/g++
    /usr/bin/g++
    /usr/bin/g++
    pi@raspberrypi:~ $ which gcc
    /usr/bin/gcc
    pi@raspberrypi:~ $ which gcc /usr/bin/gcc
    /usr/bin/gcc
    /usr/bin/gcc

    Das System ist ansonsten auf dem neuesten Stand:

    Hallo Det,

    hier mal die entsprechenden Ausgaben:


    Code
    pi@raspberrypi:~ $ sudo find / -name 'g++'
    /usr/share/bash-completion/completions/g++
    /usr/share/lintian/overrides/g++
    /usr/share/doc/g++
    Code
    pi@raspberrypi:~ $ which g++ /bin/g++
    /usr/bin/g++
    pi@raspberrypi:~ $ which gcc /usr/bin/gcc
    /usr/bin/gcc
    /usr/bin/gcc

    Vielleicht liegt es an deiner Version von Node. Habe gesehen es läuft die 12.16.1

    Kann sein, dass das Plugin dafür noch nicht ausgelegt ist.

    Geh mal runter auf die 10.20.1 - die läuft aktuell auch bei mir und funzt

    Leider nicht, das Ergebnis ist das gleiche:


    pi@raspberrypi:~ $ sudo su -

    root@raspberrypi:~# npm install -g homebridge-xiaomi-roborock-vacuum@latest --unsafe-perm


    > [email protected] install /usr/local/lib/node_modules/homebridge-xiaomi-roborock-vacuum/node_modules/deasync

    > node ./build.js


    make: Verzeichnis „/usr/local/lib/node_modules/homebridge-xiaomi-roborock-vacuum/node_modules/deasync/build“ wird betreten

    CXX(target) Release/obj.target/deasync/src/deasync.o

    make: g++: Kommando nicht gefunden

    deasync.target.mk:99: die Regel für Ziel „Release/obj.target/deasync/src/deasync.o“ scheiterte

    make: *** [Release/obj.target/deasync/src/deasync.o] Fehler 127

    make: Verzeichnis „/usr/local/lib/node_modules/homebridge-xiaomi-roborock-vacuum/node_modules/deasync/build“ wird verlassen

    gyp 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:191:23)

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

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

    gyp ERR! System Linux 4.19.66-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-xiaomi-roborock-vacuum/node_modules/deasync

    gyp ERR! node -v v10.20.1

    gyp ERR! node-gyp -v v5.1.0

    gyp ERR! not ok

    Build failed

    npm ERR! code ELIFECYCLE

    npm ERR! errno 1

    npm ERR! [email protected] install: `node ./build.js`

    npm ERR! Exit status 1

    npm ERR!

    npm ERR! Failed at the [email protected] install script.

    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.


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

    npm ERR! /root/.npm/_logs/2020-04-19T18_18_18_822Z-debug.log

    Hallo zusammen,


    ich versuche auf meinem Raspberry auch gerade das Plugin zum Laufen zu bekommen, scheitere aber an der Installation. Folgende Fehlermeldung bekomme ich angezeigt:


    root@raspberrypi:~# npm install -g homebridge-xiaomi-roborock-vacuum@latest --unsafe-perm

    [email protected] install /usr/lib/node_modules/homebridge-xiaomi-roborock-vacuum/node_modules/deasync
    node ./build.js

    make: Verzeichnis „/usr/lib/node_modules/homebridge-xiaomi-roborock-vacuum/node_modules/deasync/build“ wird betreten

    CXX(target) Release/obj.target/deasync/src/deasync.o

    make: g++: Kommando nicht gefunden

    deasync.target.mk:107: die Regel für Ziel „Release/obj.target/deasync/src/deasync.o“ scheiterte

    make: *** [Release/obj.target/deasync/src/deasync.o] Fehler 127

    make: Verzeichnis „/usr/lib/node_modules/homebridge-xiaomi-roborock-vacuum/node_modules/deasync/build“ wird verlassen

    gyp ERR! build error

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

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

    gyp ERR! stack at ChildProcess.emit (events.js:311:20)

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

    gyp ERR! System Linux 4.19.66-v7+

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

    gyp ERR! cwd /usr/lib/node_modules/homebridge-xiaomi-roborock-vacuum/node_modules/deasync

    gyp ERR! node -v v12.16.1

    gyp ERR! node-gyp -v v5.0.5

    gyp ERR! not ok

    Build failed

    npm ERR! code ELIFECYCLE

    npm ERR! errno 1

    npm ERR! [email protected] install: node ./build.js

    npm ERR! Exit status 1

    npm ERR!

    npm ERR! Failed at the [email protected] install script.

    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

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

    npm ERR! /root/.npm/_logs/2020-04-15T16_46_17_998Z-debug.log


    Build-Essential ist in aktuellster Version installiert, und das System ist generell auf aktuellem Stand.

    Hat jemand eine Idee für mich?

    Super, den hatte ich wohl übersehen. Damit bekomme ich das Programm nun richtig angezeigt.

    Probieren kann ich es leider erst im Sommer wieder, Gartenbewässerung macht bei den Temperaturen wenig bis keinen Sinn ;)

    Vielen Dank für die Antwort.

    Hallo zusammen,


    ich habe mich in den letzten Tagen auch ein wenig mit Homebridge beschäftigt, und bislang auch meine komplette Homematic und meinen Xiaomi Vac erfolgreich eingefügt. Das einzige, dass mir bislang noch nicht gelungen ist, sind die in Homematic gepflegten Programme in Homekit benutzbar zu machen.

    Ich habe zwar laut Anleitung in der config.json der Platform Homematic über "programs":["Bewässerung"], den entsprechenden Eintrag mitgegeben, und bekomme ihn auch in Homekit angezeigt, aber als Status steht dort "nicht unterstützt".


    Hat jemand eine Idee für mich?


    Gruß,

    Thomas