NEWS
Sonoff-Adapter
-
@Jan1
Habe es aus dem Log herauskopiert.Habe den Adapter gerade noch mal installiert:
$ ./iobroker url "https://github.com/ioBroker/ioBroker.sonoff/tarball/master" sonoff install https://github.com/ioBroker/ioBroker.sonoff/tarball/master npm install https://github.com/ioBroker/ioBroker.sonoff/tarball/master --production --save --prefix "/opt/iobroker" (System call) In file included from ../src/DeviceINQ.h:17, from ../src/linux/BluetoothSerialPort.cc:13: ../node_modules/nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’: ../node_modules/nan/nan.h:2298:62: warning: cast between incompatible function types from ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} to ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type] , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete) ^ In file included from ../src/linux/BluetoothSerialPort.cc:12:../src/linux/BluetoothSerialPort.cc: At global scope: /home/iobroker/.node-gyp/10.16.0/include/node/node.h:573:43: warning: cast between incompatible function types from ‘void (*)(v8::Handle<v8::Object>)’ {aka ‘void (*)(v8::Local<v8::Object>)’} to ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type] (node::addon_register_func) (regfunc), \ ^ /home/iobroker/.node-gyp/10.16.0/include/node/node.h:607:3: note: in expansion of macro ‘NODE_MODULE_X’ NODE_MODULE_X(modname, regfunc, NULL, 0) // NOLINT (readability/null_usage) ^~~~~~~~~~~~~ ../src/linux/BluetoothSerialPort.cc:23:1: note: in expansion of macro ‘NODE_MODULE’ NODE_MODULE(BluetoothSerialPort, InitAll) ^~~~~~~~~~~ In file included from /home/iobroker/.node-gyp/10.16.0/include/node/node.h:63, from ../src/linux/BluetoothSerialPort.cc:12: /home/iobroker/.node-gyp/10.16.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = node::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)]’: /home/iobroker/.node-gyp/10.16.0/include/node/node_object_wrap.h:84:78: required from here /home/iobroker/.node-gyp/10.16.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<node::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<node::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] reinterpret_cast<Callback>(callback), type); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/iobroker/.node-gyp/10.16.0/include/node/v8.h: In instantiation of ‘void v8::PersistentBase<T>::SetWeak(P*, typename v8::WeakCallbackInfo<P>::Callback, v8::WeakCallbackType) [with P = Nan::ObjectWrap; T = v8::Object; typename v8::WeakCallbackInfo<P>::Callback = void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)]’:../node_modules/nan/nan_object_wrap.h:65:61: required from here /home/iobroker/.node-gyp/10.16.0/include/node/v8.h:9502:16: warning: cast between incompatible function types from ‘v8::WeakCallbackInfo<Nan::ObjectWrap>::Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<Nan::ObjectWrap>&)’} to ‘Callback’ {aka ‘void (*)(const v8::WeakCallbackInfo<void>&)’} [-Wcast-function-type] ../src/linux/DeviceINQ.cc:35:14: fatal error: bluetooth/bluetooth.h: Datei oder Verzeichnis nicht gefunden #include <bluetooth/bluetooth.h> ^~~~~~~~~~~~~~~~~~~~~~~ compilation terminated. make: *** [BluetoothSerialPort.target.mk:105: Release/obj.target/BluetoothSerialPort/src/linux/DeviceINQ.o] Fehler 1 gyp ERR! build error gyp ERR! stack Error: `make` failed with exit code: 2gyp ERR! stack at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:262: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.58-v7l+gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "build" gyp ERR! cwd /opt/iobroker/node_modules/node-bluetoothgyp ERR! node -v v10.16.0 gyp ERR! node-gyp -v v3.8.0 gyp ERR! not ok npm WARN optional SKIPPING OPTIONAL DEPENDENCY: osx-temperature-sensor@1.0.4 (node_modules/osx-temperature-sensor):npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for osx-temperature-sensor@1.0.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"arm"}) npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-bluetooth@1.2.6 (node_modules/node-bluetooth):npm WARN optional SKIPPING OPTIONAL DEPENDENCY: node-bluetooth@1.2.6 install: `node-gyp configure build` npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1 got /opt/iobroker/node_modules/iobroker.sonoff/admin upload [12] sonoff.admin /opt/iobroker/node_modules/iobroker.sonoff/admin/words.js words.js application/javascript upload [11] sonoff.admin /opt/iobroker/node_modules/iobroker.sonoff/admin/sonoff.png sonoff.png image/png upload [10] sonoff.admin /opt/iobroker/node_modules/iobroker.sonoff/admin/index_m.html index_m.html text/html upload [9] sonoff.admin /opt/iobroker/node_modules/iobroker.sonoff/admin/index.html index.html text/html upload [8] sonoff.admin /opt/iobroker/node_modules/iobroker.sonoff/admin/i18n/ru/translations.json i18n/ru/translations.json application/json upload [7] sonoff.admin /opt/iobroker/node_modules/iobroker.sonoff/admin/i18n/pt/translations.json i18n/pt/translations.json application/json upload [6] sonoff.admin /opt/iobroker/node_modules/iobroker.sonoff/admin/i18n/pl/translations.json i18n/pl/translations.json application/json upload [5] sonoff.admin /opt/iobroker/node_modules/iobroker.sonoff/admin/i18n/nl/translations.json i18n/nl/translations.json application/json upload [4] sonoff.admin /opt/iobroker/node_modules/iobroker.sonoff/admin/i18n/it/translations.json i18n/it/translations.json application/json upload [3] sonoff.admin /opt/iobroker/node_modules/iobroker.sonoff/admin/i18n/fr/translations.json i18n/fr/translations.json application/json upload [2] sonoff.admin /opt/iobroker/node_modules/iobroker.sonoff/admin/i18n/es/translations.json i18n/es/translations.json application/json upload [1] sonoff.admin /opt/iobroker/node_modules/iobroker.sonoff/admin/i18n/en/translations.json i18n/en/translations.json application/json upload [0] sonoff.admin /opt/iobroker/node_modules/iobroker.sonoff/admin/i18n/de/translations.json i18n/de/translations.json application/json process exited with code 0 -
@robson
Kann es sein, dass Du nicht weißt wie und wo man ein Adapter installiert und deinstalliert?
Für mich sieht das nach nem Upload eines vorhandenen Adapter aus.Was ich meine sollte so aussehen z.B.:

-
-
@robson
Kann es sein, dass Du nicht weißt wie und wo man ein Adapter installiert und deinstalliert?
Für mich sieht das nach nem Upload eines vorhandenen Adapter aus.Was ich meine sollte so aussehen z.B.:

-
@v522533
Das was er jetzt gepostet hat schon, das davor nicht.
Da steht auch nichts von Fehler bei der Installation. -
@v522533
Das was er jetzt gepostet hat schon, das davor nicht.
Da steht auch nichts von Fehler bei der Installation. -
@Jan1
Das kam aus dem System-Log. Das war nur Bottom-Up aber identisch mit dem eben geposteten Log. -
@Jan1
Danke. Habe jetzt 2.3.2 installiert, aber leider keine Besserung. Instanz steht weiterhin auf "gelb" und es sind keine Objekte aufgelistet.Im Log sind aber ein paar Punkte hinzugekommen:
sonoff.0 2019-10-30 13:33:41.046 debug system.adapter.admin.0: logging true sonoff.0 2019-10-30 13:33:33.795 debug system.adapter.admin.0: logging false sonoff.0 2019-10-30 13:33:13.503 debug system.adapter.admin.0: logging true sonoff.0 2019-10-30 13:33:03.500 debug stateChange sonoff.0.info.connection: {"val":"","ack":true,"ts":1572438783494,"q":0,"from":"system.adapter.sonoff.0","user":"system.user.admin","lc":1572434652804} sonoff.0 2019-10-30 13:33:03.492 info Starting MQTT authenticated server on port 1885 sonoff.0 2019-10-30 13:33:03.356 info starting. Version 2.3.2 in /opt/iobroker/node_modules/iobroker.sonoff, node: v10.16.0 sonoff.0 2019-10-30 13:33:03.240 debug statesDB connected sonoff.0 2019-10-30 13:33:03.205 debug objectDB connected host.ioBroker-RasPi4 2019-10-30 13:33:02.432 info instance system.adapter.sonoff.0 started with pid 5400 -
port wieder umgestellt nach neuinstallation? weil oben steht was von 1883 und auf dem letzten log steht wieder 1885
-
port wieder umgestellt nach neuinstallation? weil oben steht was von 1883 und auf dem letzten log steht wieder 1885
-
@v522533
Port (1885), Username und Passwort stimmen in Tasmota UND im Adapter überein.
Ich habe den Port jetzt noch mal auf 1883 zurückgestellt. Leider immer noch keine Besserung. -
@v522533
Port (1885), Username und Passwort stimmen in Tasmota UND im Adapter überein.
Ich habe den Port jetzt noch mal auf 1883 zurückgestellt. Leider immer noch keine Besserung. -
@robson
Dein Fehler:

und um gleich die nächste Frage zu beantworten, mach mal die Haken unten alle rein :-)
Dann verwendest noch ein sehr alte Tasmota Version, hat aber mit dem Problem nichts zu tun.
@Jan1
Danke für deine ganze Hilfe, aber das ist es leider auch nicht.
Habe es auf eth0 geändert, nachdem sich bei "Listen on all IPs" nichts getan hat.
Der Adapter steht weiterhin auf gelb.Gibt es irgendwelche Abhängigkeiten? Muss ich irgendwas vorher installieren, damit der Adapter läuft? Habe auf der Github-Seite zwar nichts gelesen, aber vllt. fehlt einfach was im System.
-
@Jan1
Danke für deine ganze Hilfe, aber das ist es leider auch nicht.
Habe es auf eth0 geändert, nachdem sich bei "Listen on all IPs" nichts getan hat.
Der Adapter steht weiterhin auf gelb.Gibt es irgendwelche Abhängigkeiten? Muss ich irgendwas vorher installieren, damit der Adapter läuft? Habe auf der Github-Seite zwar nichts gelesen, aber vllt. fehlt einfach was im System.
-
@Jan1
Danke für deine ganze Hilfe, aber das ist es leider auch nicht.
Habe es auf eth0 geändert, nachdem sich bei "Listen on all IPs" nichts getan hat.
Der Adapter steht weiterhin auf gelb.Gibt es irgendwelche Abhängigkeiten? Muss ich irgendwas vorher installieren, damit der Adapter läuft? Habe auf der Github-Seite zwar nichts gelesen, aber vllt. fehlt einfach was im System.
-
Hey! Du scheinst an dieser Unterhaltung interessiert zu sein, hast aber noch kein Konto.
Hast du es satt, bei jedem Besuch durch die gleichen Beiträge zu scrollen? Wenn du dich für ein Konto anmeldest, kommst du immer genau dorthin zurück, wo du zuvor warst, und kannst dich über neue Antworten benachrichtigen lassen (entweder per E-Mail oder Push-Benachrichtigung). Du kannst auch Lesezeichen speichern und Beiträge positiv bewerten, um anderen Community-Mitgliedern deine Wertschätzung zu zeigen.
Mit deinem Input könnte dieser Beitrag noch besser werden 💗
Registrieren Anmelden






