Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Xiaomi Smart Plug Wifi mit mihome-plug adapter

    NEWS

    • Neues Video "KI im Smart Home" - ioBroker plus n8n

    • Neues Video über Aliase, virtuelle Geräte und Kategorien

    • Wir empfehlen: Node.js 22.x

    Xiaomi Smart Plug Wifi mit mihome-plug adapter

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

      @thomas-braun
      ergo keine Zeit verschwenden für die Steckdosen? Oder könnte ich schauen, wenn ich die neuen packages anziehe ob es klappt? Ist halt alles "relativ" neu für mich

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

        @super8film87

        Ich hab überhaupt keinen Überblick mit was genau du da unterwegs bist...

        iob diag
        

        sagt?

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

          @thomas-braun said in Xiaomi Smart Plug Wifi mit mihome-plug adapter:

          iob diag

          ======================= SUMMARY =======================
          		     v.2023-04-16
          
          
          Operatingsystem: 	Raspbian GNU/Linux 11 (bullseye)
          Kernel: 		6.1.21-v7+
          Installation: 		Native
          Timezone: 		Europe/Berlin (CEST, +0200)
          User-ID: 		1000
          X-Server: 		true
          Boot Target: 		graphical.target
          
          Pending OS-Updates: 	26
          Pending iob updates: 	2
          
          Nodejs-Installation: 	/usr/bin/nodejs 	v18.16.1
          			/usr/bin/node 		v18.16.1
          			/usr/bin/npm 		9.5.1
          			/usr/bin/npx 		9.5.1
          
          Recommended versions are nodejs 18.x.y and npm 9.x.y
          Your nodejs installation is correct
          
          MEMORY: 
                         total        used        free      shared  buff/cache   available
          Mem:            921M        701M         72M         21M        148M        145M
          Swap:            99M         99M        0.0K
          Total:          1.0G        801M         72M
          
          Active iob-Instances: 	15
          Active repo(s): stable
          
          ioBroker Core: 		js-controller 		4.0.24
          			admin 			6.3.5
          
          ioBroker Status: 	iobroker is running on this host.
          
          
          Objects type: jsonl
          States  type: jsonl
          
          Status admin and web instance:
          + system.adapter.admin.0                  : admin                 : homeraspi                                -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
          + system.adapter.web.0                    : web                   : homeraspi                                -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
          
          Objects: 		750
          States: 		611
          
          Size of iob-Database:
          
          8.6M	/opt/iobroker/iobroker-data/objects.jsonl
          132K	/opt/iobroker/iobroker-data/states.jsonl
          
          
          
          =================== END OF SUMMARY ====================
          
          Thomas Braun 2 Replies Last reply Reply Quote 0
          • Thomas Braun
            Thomas Braun Most Active @Super8film87 last edited by

            @super8film87

            Sachmal....

            Warum postest du da ein zwei Jahre altes LogFile von 'irgendwoher'???

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

              @super8film87 sagte in Xiaomi Smart Plug Wifi mit mihome-plug adapter:

              Zu deinem Problem:

              Desktop ausschalten und Kommandzeilenbetrieb!
              Insbesondere bei mageren 1GB RAM haste da kein Bit Arbeitsspeicher zu verschwenden.

              Pending OS-Updates: 26

              Pending iob updates: 2

              System durchpatchen.

              Active iob-Instances: 15

              Sind für 1GB zu viel im Dauerbetrieb.

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

                @thomas-braun said in Xiaomi Smart Plug Wifi mit mihome-plug adapter:

                @super8film87

                Sachmal....

                Warum postest du da ein zwei Jahre altes LogFile von 'irgendwoher'???

                Das war tatsächlich gerade kopiert. Uhrzeit passt aber der rest nicht nicht o0

                ======================= SUMMARY =======================
                                     v.2023-04-16
                
                
                Operatingsystem:        Raspbian GNU/Linux 11 (bullseye)
                Kernel:                 6.1.21-v7+
                Installation:           Native
                Timezone:               Europe/Berlin (CEST, +0200)
                User-ID:                1000
                X-Server:               true
                Boot Target:            graphical.target
                
                Pending OS-Updates:     0
                Pending iob updates:    0
                
                Nodejs-Installation:    /usr/bin/nodejs         v18.16.1
                                        /usr/bin/node           v18.16.1
                                        /usr/bin/npm            9.5.1
                                        /usr/bin/npx            9.5.1
                
                Recommended versions are nodejs 18.x.y and npm 9.x.y
                Your nodejs installation is correct
                
                MEMORY:
                               total        used        free      shared  buff/cache   available
                Mem:            921M        576M        112M         13M        233M        275M
                Swap:            99M         99M          0B
                Total:          1.0G        676M        112M
                
                Active iob-Instances:   11
                Active repo(s): stable
                
                ioBroker Core:          js-controller           4.0.24
                                        admin                   6.3.5
                
                ioBroker Status:        iobroker is running on this host.
                
                
                Objects type: jsonl
                States  type: jsonl
                
                Status admin and web instance:
                + system.adapter.admin.0                  : admin                 : homeraspi                                -  enabled, port: 8081, bind: 0.0.0.0, run as: admin
                + system.adapter.web.0                    : web                   : homeraspi                                -  enabled, port: 8082, bind: 0.0.0.0, run as: admin
                
                Objects:                750
                States:                 611
                
                Size of iob-Database:
                
                8.7M    /opt/iobroker/iobroker-data/objects.jsonl
                908K    /opt/iobroker/iobroker-data/states.jsonl
                
                
                
                =================== END OF SUMMARY ====================
                

                Werde sobald alles geht nochmal neu aufsetzen ohne UI für das image.

                Thomas Braun 2 Replies Last reply Reply Quote 0
                • Thomas Braun
                  Thomas Braun Most Active @Super8film87 last edited by

                  @super8film87

                  Wo passt denn da irgendwas in dem Log?

                  2021-05-13 22:41:55.016 - info: mihome-plug.0 (24422) starting. Version 0.2.1 in /opt/iobroker/node_modules/iobroker.mihome-plug, node: v12.19.1, js-controller: 3.1.6
                  

                  Passt hinten und vorne nicht zu deinem System.

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

                    @super8film87 sagte in Xiaomi Smart Plug Wifi mit mihome-plug adapter:

                    X-Server: true

                    Schalt das in

                    sudo raspi-config
                    

                    aus.

                    1 System Options
                    S5 Boot / Auto Login 
                    B1 Console           
                    
                    Super8film87 1 Reply Last reply Reply Quote 0
                    • Super8film87
                      Super8film87 @Thomas Braun last edited by Super8film87

                      @thomas-braun

                      habe ich gerade gemacht.

                      Zu: Passt hinten und vorne nicht zu deinem System.

                      -> ich verstehe es auch nicht. SD Karte diese Woche formatiert & IObroker installiert. Habe es aus meinem Linux system kopiert (log file direkt auf der SD Karte) als ich die SD Karte platt machen wollte gerade und einen anderen Weg einschlagen wollte.

                      
                      web.0
                      2023-07-01 15:07:04.095	warn	State "mihome-plug.1.power" has no existing object, this might lead to an error in future versions
                      
                      mihome-plug.0
                      2023-07-01 15:06:59.172	debug	21310070000000001884f55b0000370a1372957844a93d28b3e1598f98d8f951046db327778e6b09cd59503faf2db901d4213638ca5dfe6adf73a4c44c9d16e9522c09bb95c4d7ed4248e9ec8988c132d0fea328ef38fd1983ca19303eab660db39f0a7ce913a2fdb8fea5d00a074d3f
                      
                      mihome-plug.0
                      2023-07-01 15:06:59.171	debug	Send >>> {"id":400,"method":"get_prop","params":["power","temperature","wifi_led"]} >>> 21310070000000001884f55b0000370a1372957844a93d28b3e1598f98d8f951046db327778e6b09cd59503faf2db901d4213638ca5dfe6adf73a4c44c9d16e9522c09bb95c4d7ed4248e9ec8988c132d0fea328ef38fd1983ca19303eab660db39f0a7ce913a2fdb8fea5d00a074d3f
                      
                      mihome-plug.0
                      2023-07-01 15:06:59.169	debug	{"id":400,"method":"get_prop","params":["power","temperature","wifi_led"]}
                      
                      mihome-plug.0
                      2023-07-01 15:06:59.168	debug	check = ffffffffffffffffffffffffffffffff
                      
                      mihome-plug.0
                      2023-07-01 15:06:59.167	debug	data =
                      
                      mihome-plug.0
                      2023-07-01 15:06:59.166	debug	lenght = 0020
                      
                      mihome-plug.0
                      2023-07-01 15:06:59.166	debug	Token = 00000000000000000000000000000000
                      
                      mihome-plug.0
                      2023-07-01 15:06:59.164	debug	Receive <<< Helo <<< 21310020000000001884f55b0000370affffffffffffffffffffffffffffffff
                      
                      web.0
                      2023-07-01 15:06:55.071	warn	State "mihome-plug.1.power" has no existing object, this might lead to an error in future versions
                      
                      web.0
                      2023-07-01 15:06:49.902	info	==> Connected system.user.admin from ::ffff:192.168.178.54
                      
                      mihome-plug.0
                      2023-07-01 15:06:39.171	debug	21310070000000001884f55b000036f6f24095557f92e506c4d72bb559e8dfa9046db327778e6b09cd59503faf2db901d4213638ca5dfe6adf73a4c44c9d16e9522c09bb95c4d7ed4248e9ec8988c132d0fea328ef38fd1983ca19303eab660db39f0a7ce913a2fdb8fea5d00a074d3f
                      
                      mihome-plug.0
                      2023-07-01 15:06:39.170	debug	Send >>> {"id":400,"method":"get_prop","params":["power","temperature","wifi_led"]} >>> 21310070000000001884f55b000036f6f24095557f92e506c4d72bb559e8dfa9046db327778e6b09cd59503faf2db901d4213638ca5dfe6adf73a4c44c9d16e9522c09bb95c4d7ed4248e9ec8988c132d0fea328ef38fd1983ca19303eab660db39f0a7ce913a2fdb8fea5d00a074d3f
                      
                      mihome-plug.0
                      2023-07-01 15:06:39.168	debug	{"id":400,"method":"get_prop","params":["power","temperature","wifi_led"]}
                      
                      mihome-plug.0
                      2023-07-01 15:06:39.165	debug	check = ffffffffffffffffffffffffffffffff
                      
                      mihome-plug.0
                      2023-07-01 15:06:39.164	debug	data =
                      
                      mihome-plug.0
                      2023-07-01 15:06:39.163	debug	lenght = 0020
                      
                      mihome-plug.0
                      2023-07-01 15:06:39.161	debug	Token = 00000000000000000000000000000000
                      
                      mihome-plug.0
                      2023-07-01 15:06:39.159	debug	Receive <<< Helo <<< 21310020000000001884f55b000036f6ffffffffffffffffffffffffffffffff
                      
                      mihome-plug.0
                      2023-07-01 15:06:27.971	info	Loglevel changed from "info" to "silly"
                      
                      Thomas Braun 1 Reply Last reply Reply Quote 0
                      • Thomas Braun
                        Thomas Braun Most Active @Super8film87 last edited by

                        @super8film87

                        Da steht nix wildes drin, soweit ich sehe.

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

                          mit oder ohne token erhalte ich das

                          
                          mihome-plug.0
                          2023-07-01 15:37:19.372	info	Send >>> Helo >>> 21310020ffffffffffffffffffffffffffffffffffffffffffffffffffffffff
                          
                          web.0
                          2023-07-01 15:37:19.355	info	State value to set for "mihome-plug.0.power" has to be type "boolean" but received type "string"
                          
                          mihome-plug.0
                          2023-07-01 15:37:18.366	info	Send >>> Helo >>> 21310020ffffffffffffffffffffffffffffffffffffffffffffffffffffffff
                          

                          habe nun den mihome plug mal als rolle auf switch umgestellt. Aber keine Änderung

                          Unter der Annahme das ich das js skript richtig ausgeführt habe in der Oberfläche taucht zwar der Fehler nicht mehr auf, aber es findet keine Änderung statt. Vllt ist die Rolle falsch?

                          Habe switch.power noch probiert... kein Erfolg
                          Das Jave Skript ausprobiert:

                          // MiHome Plug ein- und ausschalten
                          setState('mihome-plug.0.power', true); // Ändere den Zustand des MiHome Plugs (ein -> aus oder aus -> ein)
                          setState('mihome-plug.0.wifi_led', true); // Ändere den Zustand des MiHome Plugs (ein -> aus oder aus -> ein)
                          // Zustand des MiHome Plugs abrufen
                          const mihomeState = getState('mihome-plug.0.power'); // Ersetze <DEIN_DEVICE_ID> durch die entsprechende ID deines MiHome Plugs
                          
                          if (mihomeState.val === true) {
                              console.log('MiHome Plug ist eingeschaltet.');
                          } else {
                              console.log('MiHome Plug ist ausgeschaltet.');
                          }
                          
                          
                          
                          21:26:09.297	silly	mihome-plug.0 (1038) States user redis pmessage mihome-plug.0.*/mihome-plug.0.power:{"val":true,"ack":false,"ts":1688239569239,"q":0,"c":"script.js.Ordner_1.Skript_1","from":"system.adapter.javascript.0","user":"system.user.admin","lc":1688239569239}
                          21:26:09.299	debug	mihome-plug.0 (1038) stateChange mihome-plug.0.power {"val":true,"ack":false,"ts":1688239569239,"q":0,"c":"script.js.Ordner_1.Skript_1","from":"system.adapter.javascript.0","user":"system.user.admin","lc":1688239569239}
                          21:26:09.304	silly	mihome-plug.0 (1038) States user redis pmessage mihome-plug.0.*/mihome-plug.0.wifi_led:{"val":true,"ack":false,"ts":1688239569241,"q":0,"c":"script.js.Ordner_1.Skript_1","from":"system.adapter.javascript.0","user":"system.user.admin","lc":1688239537334}
                          21:26:09.305	debug	mihome-plug.0 (1038) stateChange mihome-plug.0.wifi_led {"val":true,"ack":false,"ts":1688239569241,"q":0,"c":"script.js.Ordner_1.Skript_1","from":"system.adapter.javascript.0","user":"system.user.admin","lc":1688239537334}
                          
                          
                          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

                          631
                          Online

                          32.1k
                          Users

                          80.6k
                          Topics

                          1.3m
                          Posts

                          mihome-plug
                          5
                          20
                          1031
                          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