Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Sonoff-Adapter

    NEWS

    • Wir empfehlen: Node.js 22.x

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker goes Matter ... Matter Adapter in Stable

    Sonoff-Adapter

    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      robson @Jan1 last edited by

      @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
      
      J 1 Reply Last reply Reply Quote 0
      • J
        Jan1 @robson last edited by

        @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.:
        0ae5f594-9fc9-410b-a541-7b061777eb14-grafik.png

        v522533 R 2 Replies Last reply Reply Quote 0
        • v522533
          v522533 @Jan1 last edited by

          @Jan1
          nach jeder installation kommt ein upload, das is ganz normal. Das was @robson gepostet hat ist ein ganz normaler install-log, aus welchem hervorgeht, dass die installation fehlerfrei durchgelaufen ist.

          J 1 Reply Last reply Reply Quote 0
          • J
            Jan1 @v522533 last edited by Jan1

            @v522533
            Das was er jetzt gepostet hat schon, das davor nicht.
            Da steht auch nichts von Fehler bei der Installation.

            v522533 R 2 Replies Last reply Reply Quote 0
            • R
              robson @Jan1 last edited by

              @Jan1
              Genau aus dem Installationsfenster habe ich den Text rauskopiert und genau so sieht es bei mir aus:
              Bildschirmfoto 2019-10-30 um 14.20.52.png

              1 Reply Last reply Reply Quote 0
              • v522533
                v522533 @Jan1 last edited by

                @Jan1
                doch das, was er davor gepostet hat, war das gleiche, man muss nur ein bisschen scrollen

                1 Reply Last reply Reply Quote 0
                • R
                  robson @Jan1 last edited by

                  @Jan1
                  Das kam aus dem System-Log. Das war nur Bottom-Up aber identisch mit dem eben geposteten Log.

                  J 1 Reply Last reply Reply Quote 0
                  • J
                    Jan1 @robson last edited by

                    @robson
                    Das steht doch aber auch

                    process exited with code 0
                    

                    Das heißt keine Fehler

                    1 Reply Last reply Reply Quote 0
                    • v522533
                      v522533 @robson last edited by

                      @robson

                      port wieder umgestellt nach neuinstallation? weil oben steht was von 1883 und auf dem letzten log steht wieder 1885

                      J R 2 Replies Last reply Reply Quote 0
                      • J
                        Jan1 @v522533 last edited by Jan1

                        @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.

                        1 Reply Last reply Reply Quote 0
                        • R
                          robson @v522533 last edited by

                          @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.

                          J 2 Replies Last reply Reply Quote 0
                          • J
                            Jan1 @robson last edited by

                            @robson
                            auch bei Tasmota geändert?

                            1 Reply Last reply Reply Quote 0
                            • v522533
                              v522533 last edited by

                              MQTT hast du in den sonoffs auch aktiviert?

                              1 Reply Last reply Reply Quote 0
                              • J
                                Jan1 @robson last edited by

                                @robson
                                dann hätte ich gerne mal die zwei Bilder bei DIr gesehen:
                                af814ee9-26b2-4c7c-9f49-20fcc94de9c0-grafik.png

                                af5d8f2f-86fe-41cf-aed6-11ea8338d1df-grafik.png

                                1 Reply Last reply Reply Quote 0
                                • R
                                  robson last edited by

                                  Anbei die Screenshots. Für mich sieht alles sauber aus:
                                  Bildschirmfoto 2019-10-30 um 14.34.43.png
                                  Bildschirmfoto 2019-10-30 um 14.35.01.png
                                  Bildschirmfoto 2019-10-30 um 14.35.38.png

                                  J 1 Reply Last reply Reply Quote 0
                                  • J
                                    Jan1 @robson last edited by Jan1

                                    @robson
                                    Dein Fehler:
                                    220cffa0-c91b-484b-8d23-9ebf2120373c-grafik.png

                                    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.

                                    R 1 Reply Last reply Reply Quote 0
                                    • R
                                      robson @Jan1 last edited by

                                      @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.

                                      v522533 J 2 Replies Last reply Reply Quote 0
                                      • v522533
                                        v522533 @robson last edited by

                                        @robson

                                        hast du tasmota upgedatet?

                                        R 1 Reply Last reply Reply Quote 0
                                        • J
                                          Jan1 @robson last edited by Jan1

                                          @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.

                                          1 Reply Last reply Reply Quote 0
                                          • R
                                            robson @v522533 last edited by

                                            @v522533
                                            Danke für den Hinweis. Gerade auf Version 6.7.1 upgedatet. Leider keine Besserung.

                                            @Jan1
                                            Danke. Dann muss ich mich wohl mal dahingehend umschauen...

                                            Vielen Dank euch Beiden für eure freundliche Hilfe 😀

                                            v522533 J 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            857
                                            Online

                                            32.0k
                                            Users

                                            80.5k
                                            Topics

                                            1.3m
                                            Posts

                                            sonoff-adapter
                                            8
                                            102
                                            7853
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo