Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. Entwicklung
    4. Adapter mihome-vacuum anpassungen

    NEWS

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

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Adapter mihome-vacuum anpassungen

    This topic has been deleted. Only users with topic management privileges can see it.
    • Thomas Braun
      Thomas Braun Most Active @Siggi0904 last edited by

      @siggi0904

      Da stünde besser

      sudo -H -u iobroker npm install canvas
      

      dann wären die Rechte auch passend.

      1 Reply Last reply Reply Quote 0
      • B
        bob der 1. @dirkhe last edited by

        @dirkhe

        Ich habe den Adapter von Git installiert Version 4.1.0.
        Der Adapter bleibt Rot, fahre ich mit den gleichen Einstellungen den 4.0.0 drüber verbindet er sich mit dem Host.
        und hier wird mein DreameD9 auch angesprochen das ich wenigstens den Startbefehl in meinem Vis einbinden kann.

        Heisst Token,Ip,Port,Passwort und Mailadresse stimmen.

        Der Log sagt mir folgendes

        host.raspberrypi
        	2023-11-30 15:06:28.950	info	Restart adapter system.adapter.mihome-vacuum.0 because enabled
        host.raspberrypi
        	2023-11-30 15:06:28.949	error	instance system.adapter.mihome-vacuum.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
        host.raspberrypi
        	2023-11-30 15:06:28.949	error	Caught by controller[1]: at DreameManager.main (/opt/iobroker/node_modules/iobroker.mihome-vacuum/lib/dreame.js:406:3)
        host.raspberrypi
        	2023-11-30 15:06:28.948	error	Caught by controller[1]: at DreameManager.init (/opt/iobroker/node_modules/iobroker.mihome-vacuum/lib/dreame.js:372:45)
        host.raspberrypi
        	2023-11-30 15:06:28.948	error	Caught by controller[1]: TypeError: objects.stockConsumable.map is not a function
        host.raspberrypi
        	2023-11-30 15:06:28.947	error	Caught by controller[0]: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
        mihome-vacuum.0
        	2023-11-30 15:06:28.722	info	terminating
        mihome-vacuum.0
        	2023-11-30 15:06:28.225	warn	Terminated (UNCAUGHT_EXCEPTION): Without reason
        mihome-vacuum.0
        	2023-11-30 15:06:28.224	debug	Plugin sentry destroyed
        mihome-vacuum.0
        	2023-11-30 15:06:28.223	info	terminating
        mihome-vacuum.0
        	2023-11-30 15:06:28.223	error	Socket Close
        mihome-vacuum.0
        	2023-11-30 15:06:28.199	error	objects.stockConsumable.map is not a function
        mihome-vacuum.0
        	2023-11-30 15:06:28.198	error	TypeError: objects.stockConsumable.map is not a function at DreameManager.init (/opt/iobroker/node_modules/iobroker.mihome-vacuum/lib/dreame.js:372:45) at DreameManager.main (/opt/iobroker/node_modules/iobroker.mihome-vacuum/lib/dreame.js:406:3)
        mihome-vacuum.0
        	2023-11-30 15:06:28.193	error	unhandled promise rejection: objects.stockConsumable.map is not a function
        mihome-vacuum.0
        	2023-11-30 15:06:28.193	error	Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
        mihome-vacuum.0
        	2023-11-30 15:06:28.191	debug	Create State for settings: {"id":"mihome-vacuum.0.setting.water_grade"}
        mihome-vacuum.0
        	2023-11-30 15:06:28.146	debug	Create State for settings: {"id":"mihome-vacuum.0.setting.suction_grade"}
        mihome-vacuum.0
        	2023-11-30 15:06:28.135	debug	Create State for stockInfo: {"id":"mihome-vacuum.0.info.state"}
        mihome-vacuum.0
        	2023-11-30 15:06:28.101	debug	Create State for stockInfo: {"id":"mihome-vacuum.0.info.error"}
        mihome-vacuum.0
        	2023-11-30 15:06:28.098	debug	Create State for stockInfo: {"id":"mihome-vacuum.0.info.dnd"}
        mihome-vacuum.0
        	2023-11-30 15:06:28.097	debug	Create State for stockInfo: {"id":"mihome-vacuum.0.info.cleanedtime"}
        mihome-vacuum.0
        	2023-11-30 15:06:28.096	debug	Create State for stockInfo: {"id":"mihome-vacuum.0.info.cleanedarea"}
        mihome-vacuum.0
        	2023-11-30 15:06:28.095	debug	Create State for stockInfo: {"id":"mihome-vacuum.0.info.is_charging"}
        mihome-vacuum.0
        	2023-11-30 15:06:28.094	debug	Create State for stockInfo: {"id":"mihome-vacuum.0.info.battery"}
        mihome-vacuum.0
        	2023-11-30 15:06:28.064	debug	Create State for control: {"id":"mihome-vacuum.0.control.start"}
        mihome-vacuum.0
        	2023-11-30 15:06:28.064	debug	Create State for control: {"id":"mihome-vacuum.0.control.pause"}
        mihome-vacuum.0
        	2023-11-30 15:06:28.063	debug	Create State for control: {"id":"mihome-vacuum.0.control.home"}
        mihome-vacuum.0
        	2023-11-30 15:06:28.061	debug	Create State for control: {"id":"mihome-vacuum.0.control.find"}
        mihome-vacuum.0
        	2023-11-30 15:06:28.056	debug	No wash base found!
        mihome-vacuum.0
        	2023-11-30 15:06:28.055	debug	MIIO RECIVE: {"id":2,"result":[{"siid":4,"did":"","piid":25,"code":-1}],"exe_time":10}
        mihome-vacuum.0
        	2023-11-30 15:06:28.054	debug	MIIO MESSAGE TESTING: {"id":2,"result":[{"siid":4,"did":"","piid":25,"code":-1}],"exe_time":10}
        mihome-vacuum.0
        	2023-11-30 15:06:28.032	debug	Create State for control: {"id":"mihome-vacuum.0.control.sound_volume"}
        mihome-vacuum.0
        	2023-11-30 15:06:27.988	debug	Create State for control: {"id":"mihome-vacuum.0.control"}
        mihome-vacuum.0
        	2023-11-30 15:06:27.948	debug	Message= {"id":2,"method":"get_properties","params":[{"did":"","siid":4,"piid":25}]}
        mihome-vacuum.0
        	2023-11-30 15:06:27.948	debug	select dreame protocol...
        mihome-vacuum.0
        	2023-11-30 15:06:27.946	debug	DeviceModel selected to: dreame.vacuum.p2009
        mihome-vacuum.0
        	2023-11-30 15:06:27.744	debug	Get Device data from robot.. {"life":39399,"uid":6381024797,"model":"dreame.vacuum.p2009","token":"4c5430764cXXXXXX":[39398,39,25,39331]}
        mihome-vacuum.0
        	2023-11-30 15:06:27.744	debug	Get Device data..0
        mihome-vacuum.0
        	2023-11-30 15:06:27.743	debug	GETMODELFROMAPI:Data: {"id":1,"result":{"life":39399,"uid":6381024797,"model":"dreame.vacuum.p2009","token":"4c5430764cXXXXXX":1}
        mihome-vacuum.0
        	2023-11-30 15:06:27.742	debug	MIIO RECIVE: {"id":1,"result":{"life":39399,"uid":6381024797,"model":"dreame.vacuum.p2009","token":"4c5430764c78537978314566354d594c","ipflag":1,"miio_ver":"0.0.9","mac":"7C:25:DA:37:3A:65","fw_ver":"4.1.8_1132","hw_ver":"Linux","miio_client_ver":"4.1.8","VmPeak":49012,"VmRSS":1864,"MemFree":63240,"ap":{"ssid":"Rule23","bssid":"E0:28:6D:73:31:C6","rssi":"0","freq":0},"netif":{"localIp":"192.168.178.81","mask":"255.255.255.0","gw":"192.168.178.1"},"miio_times":[39398,39,25,39331]},"exe_time":1}
        mihome-vacuum.0
        	2023-11-30 15:06:27.741	debug	MIIO MESSAGE TESTING: {"id":1,"result":{"life":39399,"uid":6381024797,"model":"dreame.vacuum.p2009","token":"4c5430764c78537978314566354d594c","ipflag":1,"miio_ver":"0.0.9","mac":"7C:25:DA:37:3A:65","fw_ver":"4.1.8_1132","hw_ver":"Linux","miio_client_ver":"4.1.8","VmPeak":49012,"VmRSS":1864,"MemFree":63240,"ap":{"ssid":"Rule23","bssid":"E0:28:6D:73:31:C6","rssi":"0","freq":0},"netif":{"localIp":"192.168.178.81","mask":"255.255.255.0","gw":"192.168.178.1"},"miio_times":[39398,39,25,39331]},"exe_time":1}
        mihome-vacuum.0
        	2023-11-30 15:06:27.682	debug	Message= {"id":1,"method":"miIO.info"}
        mihome-vacuum.0
        	2023-11-30 15:06:27.680	debug	GETMODELFROMAPI: objModel: {"val":"dreame.vacuum.p2009","ack":true,"ts":1701353151022,"q":0,"from":"system.adapter.mihome-vacuum.0","user":"system.user.admin","lc":1701352265160}
        mihome-vacuum.0
        	2023-11-30 15:06:27.632	debug	Time difference between Mihome Vacuum and ioBroker: -1701313788 sec
        mihome-vacuum.0
        	2023-11-30 15:06:27.629	debug	MAIN: Connected to device, try to get model..
        mihome-vacuum.0
        	2023-11-30 15:06:27.627	debug	Receive <<< Helo <<< 2131002000000000175b8d4a000099e7ffffffffffffffffffffffffffffffff
        mihome-vacuum.0
        	2023-11-30 15:06:27.557	debug	server started on 0.0.0.0:53421
        mihome-vacuum.0
        	2023-11-30 15:06:27.552	info	IOT enabled, create state
        mihome-vacuum.0
        	2023-11-30 15:06:27.547	debug	MIIO: Config: ip:192.168.178.81 token: 4c5430764cXXXXXXXXX
        mihome-vacuum.0
        	2023-11-30 15:06:27.546	debug	Create State for deviceInfounsupported
        mihome-vacuum.0
        	2023-11-30 15:06:27.545	debug	Create State for deviceInfowifi_signal
        mihome-vacuum.0
        	2023-11-30 15:06:27.545	debug	Create State for deviceInfofw_ver
        mihome-vacuum.0
        	2023-11-30 15:06:27.544	debug	Create State for deviceInfomodel
        mihome-vacuum.0
        	2023-11-30 15:06:27.543	debug	Create State for deviceInfomac
        mihome-vacuum.0
        	2023-11-30 15:06:27.541	debug	Create State for deviceInfo
        mihome-vacuum.0
        	2023-11-30 15:06:27.454	info	starting. Version 4.1.0 (non-npm: iobroker-community-adapters/ioBroker.mihome-vacuum#e53d40c77475f94269879fb67ebf4e179e0f4ca9) in /opt/iobroker/node_modules/iobroker.mihome-vacuum, node: v18.19.0, js-controller: 5.0.16
        mihome-vacuum.0
        	2023-11-30 15:06:26.812	debug	Plugin sentry Initialize Plugin (enabled=true)
        host.raspberrypi
        	2023-11-30 15:06:23.128	info	instance system.adapter.mihome-vacuum.0 started with pid 24743
        

        Wirklich schlauer werde ich daraus nicht.

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

          @dirkhe said in Adapter mihome-vacuum anpassungen:

          get_room_mapping

          Hi Dirk, ich habe leider das selbe Problem, dass mir die Räume nicht angezeigt werden.

          Screenshot 2024-01-08 174552.png

          Habe es eben mit dem Befehl im "send_command" probiert. Jedoch bekomme ich keine Antwort im "get response".

          Screenshot 2024-01-08 173318.png

          die logs sehen folgendermaßen aus:

          Screenshot 2024-01-08 173931.png

          Hast du mir möglicherweiße einen Tipp wie ich das Problem beheben kann?
          Besten Dank dir

          Grüße
          Nico

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

            @bob-der-1 sollte mit der 4.1.1 behoben sein

            @socialbeat Ohne debug log bringt das nichts. welche version installiert? Welcher roboter?

            S B 2 Replies Last reply Reply Quote 1
            • S
              socialbeat @dirkhe last edited by

              @dirkhe

              Danke für deine schnelle Rückmeldung.

              Version: v4.0.0
              Roboter: dreame.vacuum.p2027 (ist der Dreame W10)

              Screenshot 2024-01-08 193758.png

              D 1 Reply Last reply Reply Quote 0
              • B
                bob der 1. @dirkhe last edited by bob der 1.

                @dirkhe

                Teste und melde mich

                Edit:bisher alles ok,beobachte aber das Log weiterhin und wenn was auffällt melde ich mich

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

                  @socialbeat zum dream kann ich leider nichts sagen, aber das debug log braucht jeder, der dir helfen soll

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

                    Hallo,

                    ich benutze den Adapter bereits seit 2017 und habe mich zuletzt mit ihm beschäftigt, als ich mir den S50 zugelegt hatte vor ca. drei Jahren.
                    Jetzt habe ich meine komplette ioBroker Umgebung neu augesetzt und einen weiteren Staubsauger gekauft, den S7.

                    Bei der Recherche bzgl. der Token Thematik bin ich auf einen weiteren Adapter gestoßen, den Roborock Adapter. Allerdings konnte ich noch nicht genau herausfinden, was beide Adapter unterscheidet.

                    • Verstehe ich es richtig, dass der Roborock Adapter den Staubsauger über die Cloud steuert und der Mihome-vacuum Adapter die Staubsauger lokal über die Tokens steuert?
                    • Verstehe ich es richtig, dass die Mihome Vacuum den Cloudzugang nur einmalig nutzt zum Auslesen des Token?
                    • Verstehe ich es richtig, dass der Cloudzugang nur benötigt wird wenn die Karte mit geladen werden sollen für die VIS?
                    • Ist die Information in der Dokumentation korrekt/aktuell, dass der Staubersauger (S7) sich im gleichen Subnetz befinden muss wie der ioBroker?
                    D 1 Reply Last reply Reply Quote 0
                    • D
                      dirkhe Developer @samsungfreak last edited by

                      @samsungfreak

                      • nein
                      • nein
                      • nein
                      • ja
                      1 Reply Last reply Reply Quote 0
                      • C
                        cheffe @chillbreak last edited by

                        @chillbreak sagte in Adapter mihome-vacuum anpassungen:

                        V

                        hallo..
                        ich habe gerade versucht unseren xiaomi s50 in iobroker einzubinden. klappt auch soweit... aber ich hab auch das problem mit den raumnamen. finde in der offiziellen app weiterhin keine möglichkeit den raum zu bennenen..

                        die von dir geschilderte app ist jedoch auf meinem aktellen samsung telefon im playstore nicht mehr freigegeben... gibt es eine alternative neue möglichkeit zur benennung der räume?

                        1 Reply Last reply Reply Quote 0
                        • J
                          jwerlsdf last edited by

                          Hallo,
                          Bei mir läuft der Adapter seit einigerzeit und auch sehr stabil. Vielen Dank erst einmal dafür! Ich habe einen S7 Max Ultra.

                          Ich würde gerne nun die Karte angezeigt bekommen. Leider bekomme ich nur beim Datenpunkt "mihome-vacuum.0.cleanmap.mapURL" ein "NULL"

                          Canvas:

                          pi@iobroker-master:/opt/iobroker $ npm list canvas
                          iobroker.inst@3.0.0 /opt/iobroker
                          ├── canvas@2.11.2
                          ├─┬ iobroker.mihome-vacuum@4.2.0
                          │ └── canvas@2.11.2 deduped
                          └─┬ iobroker.roborock@0.6.4
                            └── canvas@2.11.2 deduped
                          
                          

                          zeigt das an.

                          Haken bei "enable map" im Adapter ist gesetzt.

                          Woran könnte es liegen?

                          Thomas Braun 1 Reply Last reply Reply Quote 0
                          • Thomas Braun
                            Thomas Braun Most Active @jwerlsdf last edited by

                            @jwerlsdf sagte in Adapter mihome-vacuum anpassungen:

                            Schmeiß das mal aus der ersten Ebene raus.

                            cd /opt/iobroker
                            npm uninstall canvas
                            
                            J 1 Reply Last reply Reply Quote 0
                            • J
                              jwerlsdf @Thomas Braun last edited by jwerlsdf

                              @thomas-braun

                              pi@iobroker-master:/opt/iobroker $ npm list canvas
                              iobroker.inst@3.0.0 /opt/iobroker
                              ├─┬ iobroker.mihome-vacuum@4.2.0
                              │ └── canvas@2.11.2
                              └─┬ iobroker.roborock@0.6.4
                                └── canvas@2.11.2 deduped
                              
                              

                              Adapter neugestartet aber gleicher Fehler "NULL"

                              Thomas Braun 1 Reply Last reply Reply Quote 0
                              • Thomas Braun
                                Thomas Braun Most Active @jwerlsdf last edited by

                                @jwerlsdf

                                Ja, sieht besser aus.

                                J 1 Reply Last reply Reply Quote 0
                                • J
                                  jwerlsdf @Thomas Braun last edited by

                                  @thomas-braun
                                  Datenpunkt wird immer noch nicht ausgefüllt...

                                  Thomas Braun 1 Reply Last reply Reply Quote 0
                                  • Thomas Braun
                                    Thomas Braun Most Active @jwerlsdf last edited by

                                    @jwerlsdf
                                    Mag sein. Aber das Modul hatte trotzdem in der obersten Ebene nix verloren.

                                    J 1 Reply Last reply Reply Quote 0
                                    • J
                                      jwerlsdf @Thomas Braun last edited by jwerlsdf

                                      @thomas-braun

                                      Könnte es dann an fehlenden Schreibrechten liegen?

                                      bzw. beim restart des Adapters bekomme ich folgenden Fehler:

                                      mihome-vacuum.0
                                      2024-06-26 11:07:24.302	warn	can not set map64
                                      
                                      admin.0
                                      2024-06-26 11:07:24.299	warn	Read-only state "mihome-vacuum.0.cleanmap.map64" has been written without ack-flag with value ""
                                      
                                      mihome-vacuum.0
                                      2024-06-26 10:40:21.693	warn	HTTP error when getting token cookie
                                      
                                      mihome-vacuum.0
                                      2024-06-26 10:40:21.693	error	HTTP error when getting token cookie{}
                                      
                                      mihome-vacuum.0
                                      2024-06-26 10:40:21.374	warn	Model roborock.vacuum.a65 not supported! Please open issue on git: https://github.com/iobroker-community-adapters/ioBroker.mihome-vacuum/issues
                                      
                                      mihome-vacuum.0
                                      2024-06-26 10:40:16.220	error	Socket Close
                                      

                                      Adapter ist grün und ich kann alle Befehle absetzen und den S7 steuern.

                                      Neuschwansteini 1 Reply Last reply Reply Quote 0
                                      • Neuschwansteini
                                        Neuschwansteini @jwerlsdf last edited by

                                        @jwerlsdf sagte in Adapter mihome-vacuum anpassungen:

                                        Model roborock.vacuum.a65 not supported! Please open issue on git: https://github.com/iobroker-community-adapters/ioBroker.mihome-vacuum/issues mihome-vacuum.0 2024-06-26 10:40:16.220 error Socket Close

                                        Hi,
                                        das hat nix mit den Schreibrechten zu tun, sondern daran, dass dein Model lt. Fehlermeldung nicht supported ist..

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

                                          @ilovegym nein, das mit dem support steht da nur, weil es noch nicht getestet wurde. Im defsult wird die mihome lib geladen. Wenn soweit alles funktioniert, ist er quasi supported. Das mit der Karte müsdte man sich dann genauer anschauen. Da steht ja read-only state, hat also auf jeden fall was mit rechten zu tun

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

                                            @dirkhe
                                            Die Rechte kann ich ja aber nicht verändern, da diese ja vom adapter geschrieben werden?!

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

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate

                                            843
                                            Online

                                            31.7k
                                            Users

                                            79.8k
                                            Topics

                                            1.3m
                                            Posts

                                            adapter entwicklung raumreinigung roborock test vacuum zeitplan
                                            67
                                            511
                                            94316
                                            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