• 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 183.7k 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.
  • A Offline
    Albert2002
    last edited by Nov 24, 2017, 11:03 PM

    Just want to say that there is no different between the Xiaomi and Aqara Temperature sensor. Both are working like a charm. The only different is that the Aqara shows the Air pressure (in the MiHome app) as well.

    @Mirko3000 Thank you for your hard work! You are always improving the module in light-speed!

    I was playing around with my Yeelights colorbulbs but I didn’t get it working on MM. Guessing its because of they have they own ID, IP and token. However, thats why am still using the app. :-)

    1 Reply Last reply Reply Quote 0
    • M Offline
      mirko3000
      last edited by Nov 25, 2017, 10:52 AM

      Did you try with the ‘miio --discover’ command line utility? Do the lights show up there?

      A 1 Reply Last reply Nov 26, 2017, 1:16 AM Reply Quote 0
      • A Offline
        Albert2002 @mirko3000
        last edited by Nov 26, 2017, 1:16 AM

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

        Did you try with the ‘miio --discover’ command line utility? Do the lights show up there?

        Yes I did so with success. I got the ID, IP and token. I had tried to add it like a sensor this way:

        config: {
        			gatewayIP: '192.168.2.160',
        			gatewayToken: '6ebf9b84e5c615c09268166a99b95f0a',
        			showWindow: true,
        			showVentilation: false,
        			minTemperature: false,
        			maxHumidity: false,
                                showLights: true
        			rooms: [
        			{ name: 'Wohnzimmer', sortOrder: 30, devices : ['158d00015736a8', '158d000119fcb2'] },
        			{ name: 'Bad', sortOrder: 30, devices : ['158d0001b911b9'] },
        			{ name: 'Schlafzimmer', sortOrder: 30, devices : ['158d0001b91177', '158d00011919a3', '56234267'] }, //Bulp ID
        			{ name: 'Arbeitszimmer', sortOrder: 30, devices : ['158d0001b9035b'] },
        			{ name: 'Draußen', sortOrder: 30, devices : ['158d0001b920bd'] },
        					],
        				}
        		},
        

        and this way:

        config: {
        			gatewayIP: '192.168.2.160',
        			gatewayToken: '6ebf9b84e5c615c09268166a99b95f0a',
        			showWindow: true,
        			showVentilation: false,
        			minTemperature: false,
        			maxHumidity: false,
                                showLights: true
        			{ name: 'Bad', sortOrder: 30, devices : ['158d0001b911b9'] },
        			{ name: 'Schlafzimmer', sortOrder: 30, devices : ['158d0001b91177', '158d00011919a3', ] },
        			{ name: 'Arbeitszimmer', sortOrder: 30, devices : ['158d0001b9035b'] },
        			{ name: 'Draußen', sortOrder: 30, devices : ['158d0001b920bd'] },
        					],
                               gatewayIP: '192.168.2.101', // IP of the bulp
        			gatewayToken: 'fd1d31c907fc5506fc379445eb6bd146', // token of the bulp
        rooms: [
        { name: 'Flur', sortOrder: 30, devices : ['56234267'] }, // ID of the bulp
                       ]
        
        
        				}
        		},
        

        Btw I noticed some behaver am not sure about.
        How to get rid of the notification about Humidity?
        alt text

        Its Full screen and always on the top. Even when the pages changing using MMM-Carousel its still on top.

        Using stars as notification for open windows:
        When I was gone to bed at night with open window there was a star shown. In the morning still with open window the star was gone. What happens there?

        Are there no more indicators for the trent?

        alt text

        1 Reply Last reply Reply Quote 0
        • M Offline
          mirko3000
          last edited by Nov 26, 2017, 8:10 AM

          Hmm those Yeelights seem to be quite different, guess it will be hard to implement without having at least one piece on my own…

          For the notifications: this is a magic mirror default, so I can’t change the behaviour. In your case you should configure your outside sensor (parameter outsideSensorId), then this will not show any notification. It is mainly used for indoor rooms. I can of course add a config to disable notifications at all.

          The window states are not 100% reliable. It seems that sometimes the sensors send wrong values, I need to investigate why this is the case.

          To your last question: I disabled the trend indicators by default, but you can re-enable them by setting the config: showTrend: true

          1 Reply Last reply Reply Quote 0
          • M Offline
            mirko3000
            last edited by Nov 26, 2017, 8:56 AM

            Oh and I just fixed an issue with the notifications, they should disappear after 10 seconds, now they do again :)

            BTW: please use the issue tracker on github to track issues, this helps other find similar problems:
            https://github.com/mirko3000/MMM-xiaomi/issues

            1 Reply Last reply Reply Quote 0
            • A Offline
              Albert2002
              last edited by Nov 26, 2017, 10:02 AM

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

              Oh and I just fixed an issue with the notifications, they should disappear after 10 seconds, now they do again :)

              BTW: please use the issue tracker on github to track issues, this helps other find similar problems:
              https://github.com/mirko3000/MMM-xiaomi/issues

              Thank you for this! :)
              In the future I’ll use the issue tracker.

              1 Reply Last reply Reply Quote 0
              • C Offline
                cowboysdude Module Developer
                last edited by cowboysdude Nov 30, 2017, 3:30 AM Nov 30, 2017, 1:09 AM

                Excellent!!! All working.

                1 Reply Last reply Reply Quote 0
                • M Offline
                  mirko3000
                  last edited by Dec 2, 2017, 10:57 AM

                  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 Dec 6, 2017, 5:05 PM

                    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 Feb 11, 2018, 5:09 PM Reply Quote 0
                    • G Offline
                      gauka12345
                      last edited by Dec 20, 2017, 7:05 PM

                      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
                      • 1
                      • 2
                      • 6
                      • 7
                      • 8
                      • 9
                      • 10
                      • 14
                      • 15
                      • 8 / 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