NEWS
Sonoff-Adapter
-
@robson
Das ist aber nicht der Install Log -
@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.:
-
-
@v522533
Das was er jetzt gepostet hat schon, das davor nicht.
Da steht auch nichts von Fehler bei der Installation. -
@Jan1
Genau aus dem Installationsfenster habe ich den Text rauskopiert und genau so sieht es bei mir aus:
-
@Jan1
doch das, was er davor gepostet hat, war das gleiche, man muss nur ein bisschen scrollen -
@Jan1
Das kam aus dem System-Log. Das war nur Bottom-Up aber identisch mit dem eben geposteten Log. -
-
port wieder umgestellt nach neuinstallation? weil oben steht was von 1883 und auf dem letzten log steht wieder 1885
-
@v522533
Ich denke auch, er hat entweder den Port nicht auf das eingestellt was bei Tasmota hinterlegt ist, oder schlicht User und Passwort stimmt nicht.
Alternativ ist MQTT bei den Gosund nicht aktiviert. -
@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
auch bei Tasmota geändert? -
MQTT hast du in den sonoffs auch aktiviert?
-
@robson
dann hätte ich gerne mal die zwei Bilder bei DIr gesehen:
-
Anbei die Screenshots. Für mich sieht alles sauber aus:
-
@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.
-
hast du tasmota upgedatet?
-
@robson
Ich hatte eben mal zum Spaß meinen Sonoff Adapter neu installiert und das Log sah wesentlich kürzer aus und bei Dir steht auch immer irgendwas von Bluetooth ERROR .Wenn ich die IP im Adapter ändere, wird er sofort gelb.