Navigation

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

    NEWS

    • [erledigt] 15. 05. Wartungsarbeiten am ioBroker Forum

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    IRobot Roomba Adapter

    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      lolax @CKMartens last edited by lolax

      @CKMartens
      Hat denn kein anderer dieses Problem, das das Webinterface bei loading states fest hängt.

      Weiterhin sendet der Adapter zwar per Telegram nach einer Mission mir die Map, aber der Text kommt nicht

      var _fs = require('fs');
      
      /*
       * MISSION END: Send map
       
       */
      var message = "%device.name% finished at %missions.current.endedDateTime% cleaning %missions.current.sqm% sqm in %missions.current.runtime% seconds (%missions.current.error% errors).";
      var ns = 'roomba.0';
      var imagePath = '/opt/iobroker/iobroker-data/files/vis.0/';
      
      on({id: ns + '.missions.current.ended', change: 'any'}, function(obj)
      {
          if (!obj.state || !obj.state.val) return;
          
          // replace variables with state values
          var pos, variable, state, value;
          while (message.indexOf('%') > -1)
          {
              pos = message.indexOf('%');
              variable = message.substring(pos, message.indexOf('%', pos+1)+1);
              state = getState(ns + '.' + variable.replace(/%/g, ''));
              
              if (state !== null && state.val !== null)
                  value = state.val
              else
              {
                  log('State ' + variable.replace(/%/g, '') + ' not found!', 'warn');
                  value =  '';
              }
      
              if (typeof value === "boolean") value = value === true ? 'with' : 'no';
              message = message.replace(RegExp(variable, 'gi'), value);
          }
          
          // console
          log(message);
          
          // get image
          var img = getState(ns + '.missions.current.mapImage').val;
      
          if (img !== null && img.indexOf('data:image/png;base64,') > -1)
          {
              _fs.writeFile(imagePath + 'image.png', img.replace(/^data:image\/png;base64,/, ''), 'base64', function(err)
              {
                  if (err !== null)
                      log(err.message, 'warn');
                  else
                      sendTo('telegram', {text: imagePath + 'image.png', message: message});
              });
          }
      });
      

      im log steht aber der text, der eigentlich per variable message versendet werden sollte.

      script.js.common.Roomba_Map: Kalle finished at 07.10.2020 09:31:46 cleaning 0.09 sqm in 122 seconds (no errors).
      

      Fehler gefunden: im Skript für den Text muss es caption anstatt message heissen. Die Anleitung des Adapters ist eben falsch.

      sendTo('telegram', {text: imagePath + 'image.png', caption: message});
      sendTo('telegram', {text: imagePath + 'image.png', message: message});
      

      Bildschirmfoto 2020-10-07 um 09.23.16.png

      CKMartens 1 Reply Last reply Reply Quote 1
      • CKMartens
        CKMartens @lolax last edited by

        @lolax genau das selbe Problem haben ich ja auch. Scheinbar sonst niemand

        L 1 Reply Last reply Reply Quote 0
        • L
          lolax @CKMartens last edited by

          @CKMartens
          wie gesagt, es hat irgendwas mit dem socket und dem web adapter zu tun.

          CKMartens 1 Reply Last reply Reply Quote 0
          • CKMartens
            CKMartens @lolax last edited by

            @lolax
            Den Soketio Adapter habe ich nicht installiert. Und im Web-Adapter ist es egal ob den integrierten Soketio an oder aus schalte. Ich habe aber gerade in der Entwickerkonsole von Chrom geschaut und dort wurde der Fehler ausgegeben:

            conn.js:140 Trying connect...
            index.js:83 GET http://192.168.178.3:8082/socket.io/?key=nokey&EIO=3&transport=polling&t=NK2fMSn 400 (Bad Request)
            conn.js:140 Trying connect...
            index.js:83 GET http://192.168.178.3:8082/socket.io/?key=nokey&EIO=3&transport=polling&t=NK2fOuc net::ERR_CONNECTION_REFUSED
            conn.js:140 Trying connect...
            conn.js:255 2020-10-07T10:40:15.592Z Connected => authenticate
            conn.js:264 2020-10-07T10:40:15.705Z Authenticated: true
            index.html:50 Socket connected!
            

            Vieleicht kann damit ja @Zefau was anfangen

            Zefau 1 Reply Last reply Reply Quote 0
            • Zefau
              Zefau @CKMartens last edited by

              @CKMartens kannst du mal Web Adapter Einstellungen screenshoten? Hast du irgendwo SSL aktiviert?

              CKMartens 1 Reply Last reply Reply Quote 0
              • CKMartens
                CKMartens @Zefau last edited by

                @Zefau
                f83a4f8e-a3e4-426f-926a-f438d11a33eb-image.png

                Und SSL ist überall aus.

                Zefau 1 Reply Last reply Reply Quote 0
                • Zefau
                  Zefau @CKMartens last edited by

                  @CKMartens hab kein Plan, woran es bei euch liegen könnte. Hatte ja schon letztens im Detail geschaut, aber nichts entdeckt 😞

                  CKMartens 1 Reply Last reply Reply Quote 1
                  • CKMartens
                    CKMartens @Zefau last edited by

                    @Zefau sagte in IRobot Roomba Adapter:

                    @CKMartens hab kein Plan, woran es bei euch liegen könnte. Hatte ja schon letztens im Detail geschaut, aber nichts entdeckt 😞

                    Ist nicht so schlimm, nur seltsam das es wirklich von einem Tag auf den anderen nicht mehr ging und es scheinbar nur bei wenigen der Fall ist.

                    L 1 Reply Last reply Reply Quote 0
                    • L
                      lolax @CKMartens last edited by

                      @CKMartens
                      Bei mir auf allen iOS Devices und auch auf Safari läuft es nicht

                      CKMartens 2 Replies Last reply Reply Quote 0
                      • CKMartens
                        CKMartens @lolax last edited by

                        @lolax
                        Muss irgendwie an der ioBroker Installation liegen und nicht an den Endgeräten.
                        Ich werde am Wochenende mal auf einer Testinstallation schauen.

                        1 Reply Last reply Reply Quote 0
                        • CKMartens
                          CKMartens @lolax last edited by

                          @lolax @Zefau
                          ich habe es gerade auf einer Testumgebung installiert. Nur die Adapter web und roomba habe ich zusätzlich installiert. Der Test-Server läuft auf Ubuntu 20.04.01 LTS, node und nodejs 12.18.3, js-controller 3.1.6, roomba 1.1.1 und web 3.0.13

                          Auch hier wenn ich die Seite vom Adapter zu offnen nur "Loading STates..."
                          5eb9c45a-b10a-4a12-9868-53d7864a1af1-image.png

                          In der Entwicklerkkonsole con Crome gibt es diese Fehlermeldungen:

                          Failed to load resource: the server responded with a status of 404 (Not Found)
                          :8082/socket.io/?key=nokey&EIO=3&transport=polling&t=NKCIiCy:1
                          Failed to load resource: the server responded with a status of 400 (Bad Request)
                          adapter.css:1
                          Failed to load resource: the server responded with a status of 404 (Not Found)
                          conn.js:140 Trying connect...
                          index.js:83 GET http://192.168.178.209:8082/socket.io/?key=nokey&EIO=3&transport=polling&t=NKCIkff 400 (Bad Request)
                          i.create @ index.js:83
                          i @ index.js:83
                          o.request @ index.js:83
                          o.doPoll @ index.js:83
                          r.poll @ index.js:83
                          r.doOpen @ index.js:83
                          r.open @ index.js:83
                          r.open @ index.js:83
                          r @ index.js:83
                          r @ index.js:83
                          r.open.r.connect @ index.js:83
                          r.open.r.connect @ index.js:83
                          (anonymous) @ conn.js:141
                          conn.js:140
                          

                          das roomba-Log gibt auch bei Debug keine wesentlichen Infos aus. Das Log vom web-Adapter gibt folgendes aus:

                          web.0	2020-10-09 09:30:25.668	debug	(47748) readFile will not read this file (adapter.css) in future versions: css is not an object of type "meta"
                          web.0	2020-10-09 09:30:15.796	debug	(47748) system.adapter.admin.0: logging true
                          web.0	2020-10-09 07:30:10.466	info	(47748) http server listening on port 8082
                          web.0	2020-10-09 07:30:10.465	info	(47748) socket.io server listening on port 8082
                          web.0	2020-10-09 07:30:09.616	info	(47748) starting. Version 3.0.13 in /opt/iobroker/node_modules/iobroker.web, node: v12.18.3, js-controller: 3.1.6
                          

                          Vielöeicht hilft Dir das weiter @Zefau

                          Zefau 1 Reply Last reply Reply Quote 0
                          • Zefau
                            Zefau @CKMartens last edited by

                            @CKMartens

                            Failed to load resource: the server responded with a status of 404 (Not Found)
                            

                            Die URL ist falsch bzw. der socket port inkorrekt. Der Adapter kann keine Verbindung zum socket aufbauen. Laut url ist der socket port (nicht Web port) 8082. Ist dem so? Schau mal in der Web Adapter Konfiguration.

                            JB_Sullivan CKMartens 2 Replies Last reply Reply Quote 0
                            • JB_Sullivan
                              JB_Sullivan @Zefau last edited by

                              @Zefau Es ist aber interessant, das das Phänomen beide Adapter von dir betrifft (NUKI & Roomba) - und beide Adapter laufen ja auch soweit (incl. Canavas Kartendarstellung (roomba) oder tabellarische json Datei der Tür Aktion (NUKI)) , nur das visualisierte Webinterface zickt bei beiden rum.

                              Wird da unter Umständen auf irgend etwas zurück gegriffen, was auf ioB Ebene ggf. auch im Hintergrund geändert wurde? Weil es ja mehr oder weniger "plötzlich" nicht mehr ging.

                              1 Reply Last reply Reply Quote 0
                              • CKMartens
                                CKMartens @Zefau last edited by

                                @Zefau ja laut Debug-Log liegt der Web und Soket Port auf 8082

                                Zefau 1 Reply Last reply Reply Quote 0
                                • Zefau
                                  Zefau @CKMartens last edited by

                                  @CKMartens Was passiert denn, wenn du die URL aus dem Log mal manuell öffnest? Also http://192.168.178.209:8082/socket.io/?key=nokey&EIO=3&transport=polling&t=NKCIkff ? (wobei der sicherlich abgelaufen ist, musst nochmal neu generieren)

                                  CKMartens JB_Sullivan 2 Replies Last reply Reply Quote 0
                                  • CKMartens
                                    CKMartens @Zefau last edited by

                                    @Zefau Dann erscheint die Meldung

                                    {"code":0,"message":"Transport unknown"}
                                    
                                    A 1 Reply Last reply Reply Quote 0
                                    • A
                                      Aushilfsarnie @CKMartens last edited by

                                      @CKMartens
                                      Ich habe das Problem auch....bin ebenfalls an einer Lösung interessiert.

                                      1 Reply Last reply Reply Quote 0
                                      • JB_Sullivan
                                        JB_Sullivan @Zefau last edited by

                                        @Aushilfsarnie Bei mir das gleiche - seihe Beitrag #495. Zefau ist wohl im Urlaub oder so - schon länger nix mehr von ihm gehört.

                                        Bei mir erscheint das hier_

                                        98:0{"sid":"MiRq4NEsTC5YcuLtAACf","upgrades":["websocket"],"pingInterval":120000,"pingTimeout":30000}2:40
                                        
                                        T 1 Reply Last reply Reply Quote 0
                                        • T
                                          thorstenreichelt @JB_Sullivan last edited by

                                          @Zefau erstmal danke für den Super Adapter. Habe allerdings den selben Fehler mit den Loading States.
                                          Die Developer Console im Chrome meldet allerdings nur:

                                          c17944dd-3fe1-4bad-8c93-49c61f338a30-image.png

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

                                            Hallo ioBroker Gemeinde,

                                            ich benötige mal Hilfestellung bei folgendem Problem:

                                            Ich habe den Roomba 9xx mit dem HomeKit auf einem Raspi verbunden. Der läuft dort auch anstandslos. Nun will ich aber in den ioBroker umziehen und eine automatische Verbindung, wie in der Anleitung beschrieben funktioniert nicht. Also alles händisch, im Plugin eingetragen. Den IP, Benutzer und das Passwort habe ich aus der HomeBridge übernommen. Nun lädt das Plugin im ioBroker aber keine States ein. Plugin ioBroker leuchtet grün, also gestartet.
                                            Warum ist das so bzw. was mache ich falsch.

                                            Vielen Dank für Eure Zeit und Hilfe

                                            1 Reply 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

                                            752
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            100
                                            829
                                            180054
                                            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