• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

MMM-xiaomi - Temperature and Humidity from your smarthome

Scheduled Pinned Locked Moved Utilities
141 Posts 27 Posters 171.0k Views 27 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    Smotx
    last edited by Smotx Sep 24, 2018, 7:37 PM Sep 24, 2018, 7:37 PM

    Thanks to owner of module : @mirko3000 for update to see this sensor !

    Now that’s work

    1 Reply Last reply Reply Quote 0
    • V Offline
      VagelisAn
      last edited by VagelisAn Oct 4, 2018, 11:14 AM Oct 3, 2018, 10:32 AM

      Dear @mirko3000 i have follow your instraction and i install the MMM-Xiaomi, i install and the miio to get the access token but the scan of miio is not find the getaway accesstoken

      pi@raspberrypi:~ $ miio discover
       INFO  Discovering devices. Press Ctrl+C to stop.
      
      Device ID: 631XXXXX
      Model info: Unknown
      Address: XXX.XXX.X.XXX
      Token: ???
      Support: Unknown
      
      

      I use the MI application and get the ip and accessToken and the id from temperature sensor.
      The name is lumi.158xxxxxxxxxxx
      this is the code of config

      module: 'MMM-xiaomi',
      		position: 'top_right',
      		header: 'Temperature / Humidity',  // This is optional
      		config: {
      			config: {
      			gatewayIP: 'IP getaway from MI home',
      			gatewayToken: 'accese getaway from MI home',
      			showWindow: true,
      			showVentilation: true,
      			showLights: false,
      			audioNotifications: true,
      			rooms:  [
      				{
      					name: 'Bedroom-Mi Temp',
      					sortOrder: 10,
      					devices : ['lumi.158xxxxxxxxxxx']
      				},
      					]
      					}
      		}
      

      I execute and i have this error in terminal andthe xiaomi modules say connecting to xiaommi getaway.

      { Error: Call to device timed out
          at retry (/home/pi/MagicMirror/modules/MMM-xiaomi/node_modules/miio/lib/devi             ce.js:225:18)
          at _ensureToken.catch.err (/home/pi/MagicMirror/modules/MMM-xiaomi/node_modu             les/miio/lib/device.js:238:8)
          at <anonymous> code: 'timeout' }
      
      

      Sorry if my English is bad

      1 Reply Last reply Reply Quote 0
      • G Offline
        gh057
        last edited by gh057 Oct 18, 2018, 12:55 PM Oct 18, 2018, 12:53 PM

        Has anyone tried to get the module to work with a Gateway AND a Yeelight bed lamp ??

        I mean i have the module working with my gateway (manually added the token, and then the sensors appeard in miio discovery) but i havent managed to get it to work with the yeelight lamp (that also acts as a bluetooth gateway for my other sensors).

        When i reseted the lamp, and connected to its wifi, i discovered it with miio and extracted the token, but later when i registered the lamp with the mi app, and connected my pi to my wifi, while the lamp is pingable by the pi, now miio doesn’t discover it!!

        But, besides that, even if i manage to discover the lamp again with miio, i’m not aware if its even possible to add a second gateway to the module.

        Does anyone know??

        1 Reply Last reply Reply Quote 0
        • G Offline
          gauka12345
          last edited by Nov 8, 2018, 9:27 PM

          HI there i have got same problem the gateway was turned off
          then i have tried to reconnect all the temperature sensors and tokens shows with ??? question marks… can some one help please!

          1 Reply Last reply Reply Quote 0
          • G Offline
            gauka12345
            last edited by Nov 8, 2018, 9:31 PM

            pi@raspberrypi:~/miio $ miio discover
            INFO Discovering devices. Press Ctrl+C to stop.

            Device ID: 72558327
            Model info: lumi.gateway.v3
            Address: 192.168.0.9
            Token: ???
            Support: At least generic

            1 Reply Last reply Reply Quote 0
            • S Offline
              Smotx
              last edited by Nov 11, 2018, 12:47 PM

              hi,

              Same problem here too

              I have changed my router, so i have change wifi of Xiaomi hub

              On magicmirror config i have set new ip 192.168.2.xxx (before 192.168.1.xxx).

              But always nothing on MagicMirror after reboot.

              perhaps token has changed with new router… So, on the rasp i launch command ```
              miio discover

              
              ` $ sudo miio discover
               INFO  Discovering devices. Press Ctrl+C to stop.
              
              Device ID: 567xxxx54
              Model info: Unknown
              Address: 192.168.2.xxx
              Token: ???
              Support: Unknown
              `
              
              Anybody know why ? :(.
              G 1 Reply Last reply Dec 5, 2018, 4:17 PM Reply Quote 0
              • G Offline
                gauka12345
                last edited by Nov 17, 2018, 2:15 PM

                Hi
                You can get token by installing older version of mi home app on you mobile
                https://www.apkmirror.com/apk/xiaomi-inc/mihome/mihome-5-0-19-release/mihome-5-0-19-android-apk-download/
                Then you will need to follow this tutorial to obtain the token
                https://www.youtube.com/watch?v=Q4QV8tMI8H4
                however so far i have swap the tokens but with no luck. i think the device need to be discovered by MIiio.

                S 1 Reply Last reply Nov 18, 2018, 1:35 PM Reply Quote 0
                • S Offline
                  Smotx @gauka12345
                  last edited by Smotx Nov 18, 2018, 1:36 PM Nov 18, 2018, 1:35 PM

                  @gauka12345

                  I gave found new token on Mi home app android, it worked a few days, and then again it does not work anymore, it tells me ‘time out’ and in mioo discover there is nothing at all

                  { Error: Call to device timed out
                  at retry (/home/pi/MagicMirror/modules/MMM-xiaomi/node_modules/miio/lib/device.js:225:18)
                  at _ensureToken.catch.err (/home/pi/MagicMirror/modules/MMM-xiaomi/node_modules/miio/lib/device.js:238:8)
                  at code: ‘timeout’

                  1 Reply Last reply Reply Quote 0
                  • G Offline
                    garbleflux Project Sponsor @Smotx
                    last edited by Dec 5, 2018, 4:17 PM

                    @smotx said in MMM-xiaomi - Temperature and Humidity from your smarthome:

                    hi,

                    Same problem here too

                    I have changed my router, so i have change wifi of Xiaomi hub

                    On magicmirror config i have set new ip 192.168.2.xxx (before 192.168.1.xxx).

                    But always nothing on MagicMirror after reboot.

                    perhaps token has changed with new router… So, on the rasp i launch command ```
                    miio discover

                    
                    ` $ sudo miio discover
                     INFO  Discovering devices. Press Ctrl+C to stop.
                    
                    Device ID: 567xxxx54
                    Model info: Unknown
                    Address: 192.168.2.xxx
                    Token: ???
                    Support: Unknown
                    `
                    
                    Anybody know why ? :(.
                    

                    I had the same problem. Meanwhile, I have found the solution. An update from Xiaomi changed the token in the gateway. This must now be read out via the smartphone. In my case the miio discovery command did not work any more. I followed this instruktion to get the new token

                    https://forum.smartapfel.de/forum/thread/1219-xiaomi-mi-gateway-homebridge-mi-aqara/?postID=31779#post31779

                    … and now all works fine again - I have all my sensors back on the mirror.

                    regards
                    Mike

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      Smotx
                      last edited by Dec 10, 2018, 4:41 PM

                      after this command :

                      miio tokens update 567xxxxx --token 6xxxxxxxxxxxxxxxxxxxxxxxxxxx
                      

                      mine to work again a few days, and now is KO again… for the third time… :face_with_steam_from_nose: Token has not changed, ip has not changed…

                      1 Reply Last reply Reply Quote 0
                      • 1
                      • 2
                      • 10
                      • 11
                      • 12
                      • 13
                      • 14
                      • 15
                      • 12 / 15
                      • First post
                        Last post
                      Enjoying MagicMirror? Please consider a donation!
                      MagicMirror created by Michael Teeuw.
                      Forum managed by Sam, technical setup by Karsten.
                      This forum is using NodeBB as its core | Contributors
                      Contact | Privacy Policy