Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Tester
    4. Test Adapter mihome-vacuum v2.0.x

    NEWS

    • Neuer Blog: Fotos und Eindrücke aus Solingen

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    Test Adapter mihome-vacuum v2.0.x

    This topic has been deleted. Only users with topic management privileges can see it.
    • Dutchman
      Dutchman Developer Most Active Administrators last edited by

      @Meistertr Yes raeume gehen jetzt mit meinem S55 GEIL !!!!

      1 Reply Last reply Reply Quote 0
      • Diginix
        Diginix @blackeagle998 last edited by

        @blackeagle998 sagte in Test Adapter mihome-vacuum v2.0.x:

        Guten Morgen,

        Testfahrt läuft bisher sehr gut, einen kleinen Fehler habe ich:

        2020-02-20 08:06:38.685 - warn: javascript.0 (6095) You are assigning a boolean to the state "mihome-vacuum.0.control.carpet_mode" which expects a switch. Please fix your code to use a switch or change the state type to boolean. This warning might become an error in future versions.
        

        Gesetzt wird der Wert per Befehl:
        setState('mihome-vacuum.0.control.carpet_mode', true);

        @Meistertr & @dirkhe
        Das ist ein Fehler im Datenpunkt "carpet_mode". Dieser ist vom type=switch. Switch ist aber eine Rolle und der type muss boolean sein.
        Also so gehört es in der main.js ab Zeile 279:

        "type": "boolean",
        "role": "switch"
        
        1 Reply Last reply Reply Quote 0
        • D
          dirkhe Developer last edited by

          is gefixt und im git

          Patchwork 3001 Diginix 2 Replies Last reply Reply Quote 0
          • D
            dirkhe Developer last edited by dirkhe

            @Meistertr Beim JSON.parse wird ein Fehler geworfen, wenn der String leer ist. Das bekommt man bespielsweise bei miIo_info zurück, wenn der robo nicht mit dem inet verbunden ist. Ich habe daher das mal wieder zurückgebaut und habe den loglevel da auf silly gesetzt

            Meistertr 1 Reply Last reply Reply Quote 0
            • Patchwork 3001
              Patchwork 3001 @dirkhe last edited by

              @dirkhe danke alles top

              1 Reply Last reply Reply Quote 0
              • Meistertr
                Meistertr Developer @dirkhe last edited by

                @dirkhe top. War auch nur zum testen gedacht.

                Patchwork 3001 1 Reply Last reply Reply Quote 0
                • Patchwork 3001
                  Patchwork 3001 @Meistertr last edited by Patchwork 3001

                  @Meistertr so habe getestet. Alles läuft mit dem s5.
                  Nur eins verstehe ich nicht alles ist da sogar die räume mit Nummern und alles geht .
                  aber im log steht

                  " mihome-vacuum.0 2020-02-20 10:02:31.053 error (9276) TypeError: Cannot read property '0' of undefined "

                  aber alles läuft so wie gedacht.???

                  D 1 Reply Last reply Reply Quote 0
                  • D
                    dirkhe Developer @Patchwork 3001 last edited by

                    @Patchwork-3001 sagte in Test Adapter mihome-vacuum v2.0.x:

                    property

                    kannst du bitte mal das debug schicken?

                    Patchwork 3001 B 2 Replies Last reply Reply Quote 0
                    • Patchwork 3001
                      Patchwork 3001 @dirkhe last edited by

                      @dirkhe gerne wenn du mir sagst wie das geht

                      1 Reply Last reply Reply Quote 0
                      • Diginix
                        Diginix @dirkhe last edited by

                        @dirkhe sagte in Test Adapter mihome-vacuum v2.0.x:

                        is gefixt und im git

                        Das ist aber auch nicht korrekt. Button braucht read=false 😉
                        Meiner hat diese Funktion nicht, aber Switch ist sicher eindeutiger zu erkennen vom Zustand.

                        adapter.setObjectNotExists('control.carpet_mode', {
                            type: 'state',
                            common: {
                                name: 'Carpet mode',
                                type: 'boolean',
                                role: 'button',
                                read: true,
                                write: true,
                                desc: 'Fanspeed is Max on carpets',
                            },
                            native: {}
                        });
                        
                        1 Reply Last reply Reply Quote 0
                        • B
                          blackeagle998 @dirkhe last edited by

                          @dirkhe sagte in Test Adapter mihome-vacuum v2.0.x:

                          @Patchwork-3001 sagte in Test Adapter mihome-vacuum v2.0.x:

                          property

                          kannst du bitte mal das debug schicken?

                          Habe das gleiche Thema, hier der DEBUG Auszug:

                          mihome-vacuum.0	2020-02-20 11:54:12.943	error	(17390) TypeError: Cannot read property '0' of undefined
                          mihome-vacuum.0	2020-02-20 11:54:12.430	debug	(17390) update_Map use old mapurl
                          mihome-vacuum.0	2020-02-20 11:54:12.430	debug	(17390) update_Map Mimap enabled
                          mihome-vacuum.0	2020-02-20 11:54:10.428	error	(17390) TypeError: Cannot read property '0' of undefined
                          mihome-vacuum.0	2020-02-20 11:54:09.973	debug	(17390) update_Map got new time:1582196049
                          mihome-vacuum.0	2020-02-20 11:54:09.973	debug	(17390) update_Map got new expires:1582197849
                          mihome-vacuum.0	2020-02-20 11:54:09.972	debug	(17390) update_Map got new url:https://awsde0.fds.api.xiaomi.com/robomap/robomap/74488275/7?Expires=xxxxxxxxx&GalaxyAccessKeyId=xxxxxxxxx&Signature=xxxxxxxxxx=
                          mihome-vacuum.0	2020-02-20 11:54:09.906	debug	(17390) update_Map need new mapurl
                          mihome-vacuum.0	2020-02-20 11:54:09.905	debug	(17390) update_Map Mimap enabled
                          mihome-vacuum.0	2020-02-20 11:54:07.903	error	(17390) TypeError: Cannot read property '0' of undefined
                          mihome-vacuum.0	2020-02-20 11:54:07.388	debug	(17390) update_Map got new time:1582196047
                          mihome-vacuum.0	2020-02-20 11:54:07.388	debug	(17390) update_Map got new expires:1582197847
                          
                          Meistertr 1 Reply Last reply Reply Quote 0
                          • D
                            dirkhe Developer last edited by

                            Ich habe den Fehler jetzt abgefangen, aber warum es keine Kartendaten gibt, sollte sich @Meistertr anschauen, der ist da tiefer drin

                            Den button habe ich jetzt auch auf read gesetzt. Ich habe button genommen, weil alle button sind und nicht switch, wollte das einheitlich lassen

                            Patchwork 3001 1 Reply Last reply Reply Quote 1
                            • Patchwork 3001
                              Patchwork 3001 @dirkhe last edited by

                              @dirkhe karte und alles sind ja da und laufen perfekt . aber das trotzdem der Fehler im log steht ist halt komisch

                              1 Reply Last reply Reply Quote 0
                              • S
                                smarti2015 last edited by

                                Hi, wollte update Installieren von 1.1.5 auf Version 2.x aber es kommt immer eine Fehlermeldung:

                                host.All-In-One-Tinker	2020-02-20 12:50:29.060	info	iobroker exit 25
                                host.All-In-One-Tinker	2020-02-20 12:50:28.043	error	iobroker host.All-In-One-Tinker Cannot install https://github.com/iobroker-community-adapters/ioBroker.mihome-vacuum/tarball/master: 1
                                host.All-In-One-Tinker	2020-02-20 12:50:28.006	info	iobroker npm ERR! A complete log of this run can be found in:npm ERR! /home/iobroker/.npm/_logs/2020-02-20T11_50_27_975Z-debug.log
                                host.All-In-One-Tinker	2020-02-20 12:50:27.955	info	iobroker This is probably not a problem with npm. There is likely additional logging output above.
                                host.All-In-One-Tinker	2020-02-20 12:50:27.954	info	iobroker npm ERR! Exit status 1npm ERR! npm ERR! Failed at the canvas@2.6.1 install script.npm ERR!
                                host.All-In-One-Tinker	2020-02-20 12:50:27.953	info	iobroker errno 1npm ERR! canvas@2.6.1 install: `node-pre-gyp install --fallback-to-build`
                                host.All-In-One-Tinker	2020-02-20 12:50:27.951	info	iobroker code ELIFECYCLEnpm ERR!
                                host.All-In-One-Tinker	2020-02-20 12:50:27.950	info	iobroker ERR!
                                host.All-In-One-Tinker	2020-02-20 12:50:27.949	info	iobroker npm
                                host.All-In-One-Tinker	2020-02-20 12:50:25.594	info	iobroker /opt/iobroker/node_modules/canvasnode-pre-gyp ERR! node -v v10.18.1node-pre-gyp ERR! node-pre-gyp -v v0.11.0node-pre-gyp ERR! not ok
                                host.All-In-One-Tinker	2020-02-20 12:50:25.593	info	iobroker ERR! System Linux 4.19.69-rockchipnode-pre-gyp ERR! command "/usr/bin/node" "/opt/iobroker/node_modules/canvas/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"node-pre-gyp ER
                                host.All-In-One-Tinker	2020-02-20 12:50:25.591	info	iobroker node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js configure --fallback-to-build --module=/opt/iobroker/node_modu
                                host.All-In-One-Tinker	2020-02-20 12:50:25.587	info	iobroker node-pre-gyp ERR! build error
                                host.All-In-One-Tinker	2020-02-20 12:50:25.571	info	iobroker /opt/iobroker/node_modules/canvasgyp ERR! node -v v10.18.1gyp ERR! node-gyp -v v5.0.5gyp ERR! not ok
                                host.All-In-One-Tinker	2020-02-20 12:50:25.569	info	iobroker ERR! System Linux 4.19.69-rockchipgyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "configure" "--fallback-to-build" "--module=/opt/iobroke
                                host.All-In-One-Tinker	2020-02-20 12:50:25.568	info	iobroker stack at ChildProcess.onCpExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:351:16)gyp ERR! stack at ChildProcess.emit (events.js:198:13)gyp ERR! stack at Pr
                                host.All-In-One-Tinker	2020-02-20 12:50:25.567	info	iobroker gyp ERR! stack Error: `gyp` failed with exit code: 1gyp ERR!
                                host.All-In-One-Tinker	2020-02-20 12:50:25.565	info	iobroker ERR! configure error
                                host.All-In-One-Tinker	2020-02-20 12:50:25.564	info	iobroker gyp
                                host.All-In-One-Tinker	2020-02-20 12:50:25.529	info	iobroker gyp: Call to 'pkg-config pixman-1 --libs' returned exit status 1 while in binding.gyp. while trying to load binding.gyp
                                host.All-In-One-Tinker	2020-02-20 12:50:25.528	info	iobroker Package pixman-1 was not found in the pkg-config search path.Perhaps you should add the directory containing `pixman-1.pc'to the PKG_CONFIG_PATH environment variableNo package 'pixman-1' fou
                                host.All-In-One-Tinker	2020-02-20 12:50:22.082	info	iobroker node-aead-crypto not needed on this system, since all ciphers are natively supported
                                

                                Bild Text

                                Patchwork 3001 D 2 Replies Last reply Reply Quote 0
                                • Patchwork 3001
                                  Patchwork 3001 @smarti2015 last edited by Patchwork 3001

                                  @smarti2015 Wenn der Adapter nicht installiert werden kann, kann Canvas nicht installiert werden

                                  npm ERR! canvas@2.6.1 install: node-pre-gyp install --fallback-to-build npm ERR! Exit status 1

                                  Dann müssen folgende Packete und Bibliotheken selber installiert werden:

                                  " sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev "

                                  " sudo npm install canvas --unsafe-perm=true "

                                  über putty ohne "

                                  K S 2 Replies Last reply Reply Quote 0
                                  • Meistertr
                                    Meistertr Developer @blackeagle998 last edited by

                                    @blackeagle998 dann bräuchte uch einen etwas größeren logauszug

                                    B 1 Reply Last reply Reply Quote 0
                                    • K
                                      K_o_bold @Patchwork 3001 last edited by

                                      @Patchwork-3001, @Meistertr ,

                                      bei mir läuft Iobroker in einem Docker-Container.
                                      Wenn Canvas z.T. manuell installiert werden muss, bedeutet das, dass ich es bei jedem Container Neustart wieder manuell installieren muss. ( Oder ich ändere das Docker-Container Image ).

                                      Wird das bis zur Stable Version so bleiben, dass man ggf. manuell etwas nachinstallieren muss?
                                      --> Ich bin am überlegen, ob ich jetzt schon umsteige auf die neue Version.

                                      Bisher was ich so gelesen habe ist sehr vielversprechend, tolle Arbeit an alle Beteiligten.. 👍

                                      1 Reply Last reply Reply Quote 0
                                      • D
                                        dirkhe Developer @smarti2015 last edited by dirkhe

                                        @K_o_bold Das Problem ist, dass dies eine Abhängigkeit beim Installieren ist, hat mit dem Adapter selber nichts zu tun. Ich weiss nicht, ob man das optional machen kann, ich vermute mal eher nicht.

                                        K 1 Reply Last reply Reply Quote 0
                                        • K
                                          K_o_bold @dirkhe last edited by

                                          @Meistertr ,

                                          noch eine andere Frage:

                                          Mit IOS war die Tokenauslesung ein echter Krampf.
                                          Außerdem habe ich bei mir die Besonderheit, dass der Roboter in der App nur halblebig integriert ist, da ich das EU Modell gekauft habe aber alle anderen Geräte aus China kommen, habe ich Mainland China im Gateway eingestellt. Dadurch lässt sich der Roboter nicht sauber integrieren, funktioniert aber trotzdem einwandfrei mit dem Iobroker Adapter. Nur die Karte und Zonenreinigung konnte ich nie machen.
                                          Es wäre also ein echter Mehrwert die neue Version des Adapters. 😀
                                          Nun zur Frage:
                                          Die Token Gewinnung geht jetzt wirklich so einfach wie im ersten Post beschrieben?
                                          Gibt es für das Update aus der Adapterversion 1.1.5 noch Dinge worauf man achten muss?

                                          D 1 Reply Last reply Reply Quote 0
                                          • D
                                            dirkhe Developer @K_o_bold last edited by

                                            @K_o_bold Einfach machen, soviel kannst du ja nicht einstellen, was du verlieren könntest.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            862
                                            Online

                                            31.8k
                                            Users

                                            80.0k
                                            Topics

                                            1.3m
                                            Posts

                                            map mihome-vacuum roborock xiaomi
                                            144
                                            1474
                                            439241
                                            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