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 217.6k 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.
    • M Offline
      mirko3000
      last edited by

      Check the new config parameter ‘celcius’ from the latest commit, just put that to ‘false’ to show fahrenheit instead of celcius.

      1 Reply Last reply Reply Quote 1
      • A Offline
        Albert2002
        last edited by

        For those who have problems with getting the Token from the Gateway, I found a tool which you can use with Windows and its a singe click solution.
        Keep in mind its only the Token of the Gateway (and other Xiaomi stuff), not the ID of the sensors!

        https://github.com/ultrara1n/MiToolkit/releases

        Direct download:
        https://github.com/ultrara1n/MiToolkit/releases/download/1.5/MiToolkit.1.5.zip

        Am not sure, is it translated already, so that are the steps:

        You need:
        Installed & working MiHome app on your Mobile
        Java on you PC
        USB debug enabled on your mobile
        Connect your mobile with your PC. Hit the “Token auslesen” button - its the only button…
        On your mobile you will be asked to create a backup. Agree, don’t use a password. After one, two minutes you will see all the Tokens in the Frame:

        alt text

        S 1 Reply Last reply Reply Quote 0
        • G Offline
          gauka12345
          last edited by

          Hi i got different problem am trying to install Miio to discover the sensors Numbers but i got error messages :

          pi@raspberrypi:~ $ npm install --save miio
          npm WARN saveError ENOENT: no such file or directory, open ‘/home/pi/package.json’
          /home/pi
          └── miio@0.14.0

          npm WARN enoent ENOENT: no such file or directory, open ‘/home/pi/package.json’
          npm WARN pi No description
          npm WARN pi No repository field.
          npm WARN pi No README data
          npm WARN pi No license field.

          1 Reply Last reply Reply Quote 0
          • G Offline
            gauka12345
            last edited by

            fix -

            sudo npm install -g miio

            1 Reply Last reply Reply Quote 0
            • B Offline
              barnosch
              last edited by

              I have now also the Yeelight Bulbs (Color) but i guess its not working to show the status in the mirror?
              or has @Albert2002 managed to get it working?
              I also only get a short id beginning with 56 or something wit the miio tool.
              I needed to install the Yeelight App in order to get the stuff discovered by the Amazon Echo . With the Mi Home app it was working to stear them, but not recognized in the Amazon App (took me a while to figure that out)

              1 Reply Last reply Reply Quote 0
              • A Offline
                Albert2002
                last edited by

                It’s still not working for me. I just think those are two different modules we need for. MMM-xiaomi is only for displaying the different Temperature readings and the state of the Windows sensors. And this does pretty well!

                I tried Openhub with the Yeelight binding. The idea was to get it on the mirror with mmm-openhabfloorplan
                I was only able to see my Yeelights in Openhab and the remote but whitout being able to switch them. Only to make them visible on the mirror its a bit to much effort I think. Maybe I did something wrong.

                As far as I understood the most important point is that you have to chose Singapore if you want to control your Yeelignts with Alexa. For Everything else there are a lot to tutorials around.

                1 Reply Last reply Reply Quote 0
                • M Offline
                  mirko3000
                  last edited by

                  Yes the Yeelights are still not supported, I will need to order one for myself to actually implement that. Should not be an issue, at least the miio library seems to support it. Hope to get it running within the next months…

                  1 Reply Last reply Reply Quote 1
                  • garblefluxG Offline
                    garbleflux Project Sponsor
                    last edited by

                    Hi mirko3000

                    I’m very happy, thank you for the work. Your modul runs excellent, it’s exactly what I want.
                    Thanks to your good dokumentation, my three xiaomi temperature sensors are working fine, I did order
                    additional twelfe temperature- und window sensors.
                    With the miio software, I’ ve got an token for the xiaomi smart hub. Any idea to use it? (chance LED color, etc.)

                    Is there also a way to set a maximum temperature for warning, so it could be used as an additional fire sensor?

                    It’s minimal: I’m trying to set the size of the charakters a few points up - with no success in the the css-file.
                    Can you give me a hint?

                    Thank you in advance
                    Mike

                    M 1 Reply Last reply Reply Quote 0
                    • M Offline
                      mirko3000 @garbleflux
                      last edited by

                      Hi garbleflux,

                      happy to hear you like the module! :)

                      The token for the hub is required for the whole module to work, so I guess you are already using it (directly or via auto-token). If you want to use features of the smart hub, currently I have not implemented anything here. Need to check what the miio lib provides, maybe setting the light colors?

                      Maximum temperature could be implemented, but I doubt you really want to use this as fire sensor! :) Not much help if your mirror warns you about a fire.

                      About the character size: I use the default css classes “small” and “xsmall”. You could simply override them for the xiaomi elements via:

                      .xm-xiaomi .small {
                        font-size: 24px;
                      }
                      

                      Best regards,
                      Mirko

                      S 1 Reply Last reply Reply Quote 0
                      • garblefluxG Offline
                        garbleflux Project Sponsor
                        last edited by

                        Hi mirko3000

                        thank you for your kind reply. No, I dont want to use the xiaomi-sensor as a fire sensor ;-)

                        But I have a fine storeroom for some goods, so the temperature should be in a range from 14 and 18
                        degrees celcius. Otherwise I must take the goods and move them in the summertime in the colder
                        basement. Thats my intention to wish a maximum temperature.

                        Thanks again for your great work and your support!
                        Best wishes from Mike

                        M 1 Reply Last reply Reply Quote 0
                        • M Offline
                          mirko3000 @garbleflux
                          last edited by

                          Ok got it :) Here you go, added max temperature setting with latest version.

                          Best regards,
                          Mirko

                          1 Reply Last reply Reply Quote 0
                          • A Offline
                            Albert2002
                            last edited by

                            Am still impressed by your speed and your skill! Thank you for sharing your work with us!

                            1 Reply Last reply Reply Quote 0
                            • garblefluxG Offline
                              garbleflux Project Sponsor
                              last edited by

                              Hi Mirko3000,
                              thank you! Great work.

                              1 Reply Last reply Reply Quote 0
                              • P Offline
                                pepebc
                                last edited by

                                Mirko3000,
                                excellent module, I am about to receive the gateway. Now I have several RGB yelight bulbs and two Wi-Fi sockets.
                                I hope you add someday the management of sockets and yeelight.
                                At the moment I am managing it with scripts.

                                1 Reply Last reply Reply Quote 0
                                • S Offline
                                  shgmongohh @Albert2002
                                  last edited by

                                  @Albert2002
                                  Hi,
                                  I have some problems to get the token. See my errors here.

                                  Can anybody help me with the token?

                                  Sebastian

                                  1 Reply Last reply Reply Quote 0
                                  • S Offline
                                    shgmongohh
                                    last edited by

                                    I like to change the colour and the font size of the values in the css. But nothing change.

                                    Can anybody please explain, how to change?

                                    .xm-xiaomi .small {
                                      font-size: 24px;
                                    }
                                    
                                    .xm-xiaomi {
                                        position: relative;
                                    }
                                    
                                    .xm-disabled {
                                      color: black;
                                    }
                                    
                                    .xm-icon {
                                      padding-left: 8px;
                                    }
                                    
                                    .xm-room-item {
                                      font-size: 22px;
                                      margin-bottom: -15px;
                                      z-index: 5;
                                    }
                                    
                                    .xm-room-title {
                                      display: inline-block;
                                      width: 40%;
                                      z-index: 5;
                                    }
                                    
                                    .xm-room-bars {
                                      display: inline-block;
                                      width: 60%;
                                      z-index: 5;
                                    }
                                    
                                    .xm-legend-temp {
                                      position: absolute;
                                      height: 100%;
                                      width: 3px;
                                      background-color: #FF1493;
                                      left: 9%;
                                      z-index: 0;
                                    }
                                    
                                    .xm-legend-humid {
                                      position: absolute;
                                      height: 100%;
                                      width: 3px;
                                      background-color: blue;
                                      left: 42%;
                                      z-index: 0;
                                    }
                                    
                                    
                                    .xm-room-container
                                    {
                                        height: 100%; 
                                        min-height: 100%;
                                        height: 200px;
                                    }
                                    
                                    .xm-room {
                                      
                                        width: 33.33%;
                                        height: 33.33%;
                                      background-color: #228B22;
                                    }
                                    .xm-room-header {
                                      border-bottom-style : solid;
                                      border-width: 1px;
                                     margin: 5px;
                                     //padding: 5px;
                                    }
                                    .xm-left {
                                      float: left;
                                    }
                                    .xm-right {
                                      float: right;
                                    }
                                    .xm-room-temp-humid {
                                       margin: 5px;
                                       
                                    }
                                    .xm-room-temp {
                                        float: left;
                                        width: 50%;
                                        padding-top:2px;
                                    }
                                    .xm-room-humid {
                                        float: right;
                                        width: 50%;
                                        text-align: right;
                                        padding-top:2px;
                                    }
                                    .xm-room-icons {
                                       margin: 5px;
                                       vertical-align: bottom;
                                      // height: 100%;
                                    }
                                    .xm-door-icon {
                                      float: left;
                                      width: 33%;
                                      padding-top:5px;
                                    }
                                    .xm-light-icon {
                                      float: left;
                                      width: 33%;
                                      text-align: center;
                                      padding-top:5px;
                                    }
                                    .xm-vent-icon {
                                      float: right;
                                      width: 33%;
                                      text-align: right;
                                      padding-top:5px;
                                    }
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • M Offline
                                      mirko3000
                                      last edited by

                                      Hi, sorry I did not reply to your last comment, did you solve the issues there?
                                      About the CSS: basically you are at the right spot, adjusting these values (e.g. font-size) should change font size. What did you edit exactly? Did you try restarting MM after the changes?

                                      S 1 Reply Last reply Reply Quote 0
                                      • B Offline
                                        blinky1989dk
                                        last edited by yawns

                                        This post is deleted!
                                        1 Reply Last reply Reply Quote 0
                                        • B Offline
                                          barnosch
                                          last edited by

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

                                          to my config file. that’s fine, but it can not connect to the gateway. but as soon as I add more then it will be the case
                                          so when i restart it does not start up :( what can i do? some have some bids

                                          sorry i have no idea, what you try to say with that sentence.

                                          B 1 Reply Last reply Reply Quote 0
                                          • B Offline
                                            blinky1989dk @barnosch
                                            last edited by

                                            @barnosch my config file works. but as soon as i add mmm.xiaomi to config. then my config file does not work anymore and my mirror does not start up

                                            1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 7
                                            • 8
                                            • 7 / 8
                                            • 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