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.9k 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

      This looks great! As far as I understand there is for every room a thermometer & humidity with trent, light indicator (Yeelight?) and Windows sensors? Pretty nice!

      Are you going to release this as a new module, or as a change of the old one? I would prefer a new module, because this one takes a lot of space and is hardly to integrate in a single screen. I

      But I really think they will shut this down soon, guess they (gearbest) are not paying any taxes at all…
      

      I think the same. It already took more time to receive and it’s getting less products you can order with „Standard Shipping > Germany Express“

      1 Reply Last reply Reply Quote 0
      • cowboysdudeC Offline
        cowboysdude Module Developer
        last edited by cowboysdude

        I’m in the US and I ordered from Gearbest and did not will not again… I put in my order and it I never got what I ordered so I put a claim in against them … they told me ‘well we now have the items in stock so if you drop your claim…’

        According to their site the stuff I ordered was already in stock… when I ordered them.

        I said uhhhhhh no. So they refunded me…and I ordered them from another company and hopefully they’ll be here next week :) They shipped them right out and gave me a tracking number… Gearbest… I don’t trust them.

        1 Reply Last reply Reply Quote 0
        • cowboysdudeC Offline
          cowboysdude Module Developer @mirko3000
          last edited by

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

          window sensors

          What is the module your door/window sensors? I find two but not sure which ones to use here.

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

            I have the Xiaomi. I don’t think there is a difference apart from the design:
            Xiaomi vs Aqara door/window sensors

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

              So.
              At least 4 Temperature sensors arrived today. Waiting for the gateway which comes another way.

              looks great @mirko3000
              Really looking forward for it.

              I hate waiting for stuff…

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

                Ok, get ready to test the latest version! I kept the current table view for now, still planning to also support a grid view soon.
                New features:

                • Listens to update events of the sensors instead of refreshing the whole list all x seconds
                • Reorganized your smart home structure, introducing rooms with sensors
                • Shows ventilation recommendation, window open state and light on state per rooms

                Looking forward to get some feedback. As I do not have any lights at the moment this is untested.

                Not for the update: you will need to execute “npm install” again as I had to fork the miio library to support the events (maybe even delete the node_modules folder in your modules directory). Also you need to update your module configuration!

                K 1 Reply Last reply Reply Quote 1
                • cowboysdudeC Offline
                  cowboysdude Module Developer
                  last edited by

                  WOW this is really awesome! Thank you for your hard work. Looking forward to getting my sensors… should be here next week I hope

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

                    Its working for me. No errors in the logs or the brower debug. Well done & thank you for your work!
                    I can test it whit only one sensor so far. Waiting for the others.

                    1 Reply Last reply Reply Quote 0
                    • K Offline
                      kasperb @mirko3000
                      last edited by

                      @mirko3000 This looks like a great module, and can’t wait to try it! Just ordered the gateway, and will be ordering some temperature sensors soon.

                      Will the Smart Air Pressure Temperature Humidity Environment Sensor work with this module as well? Like this one on: Aliexpress

                      Thanks!

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

                        Haven’t seen, that the Aqara sensor has pressure as well! They both has been on sale last week for less than 6€ on GB.
                        I have taken the Xiaomi…

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

                          @kasperb Yes I am pretty sure they work as well. Did not see those before, looks interesting though I am not sure what to use the air pressure values for!? :)

                          K 1 Reply Last reply Reply Quote 0
                          • K Offline
                            kasperb @mirko3000
                            last edited by

                            @mirko3000 Thanks! And agreed, I’ve opted for the regular temperature sensor instead.

                            1 Reply Last reply Reply Quote 0
                            • T Offline
                              trividar
                              last edited by

                              could someone help me? I installed it how described but it didn’t show any informations on the MM just temperature/humidity. At the beginning i see connecting to xiaomi getway and after that nothing. In the MM out i get this:

                              Found device with ID 158.... of type sensor
                              

                              but no errors.

                              Once I saw this, but just once (but nothing on the mirror):
                              0_1510773880846_Bildschirmfoto 2017-11-15 um 20.15.24.png

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

                                So technically your gateway and sensors seem to be working properly. What exactly is the problem? Did you configure your rooms and devices as described? Do you see anything on the MM? “just temperature/humidity” - that is actually the main feature :)

                                1 Reply Last reply Reply Quote 0
                                • T Offline
                                  trividar
                                  last edited by trividar

                                  Hi mirko,
                                  the problem is, that i did’t see any values on the MM:

                                  0_1510776950809_Bildschirmfoto 2017-11-15 um 21.14.44.png

                                  and also something strange, if i start this module my WunderGround module change the top of it:
                                  0_1510776994441_Bildschirmfoto 2017-11-15 um 21.11.45.png

                                  if I disable this module it looks like usual, i changed in other positions but the same things.
                                  0_1510777137355_Bildschirmfoto 2017-11-15 um 21.12.40.png
                                  Why is this happen?
                                  What you mean with: “Did you configure your rooms and devices as described?” I did exactly what was on github.

                                  THX a lot for your help

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

                                    Can you post the configuration for the Xiaomi module? You need to provide a list of rooms, each of one with the assigned device IDs:

                                    	            rooms:  [
                                    	            	{
                                    		            	name: 'Room 1',
                                    		            	sortOrder: 40,
                                    		            	devices : ['158d010171840d', '158d00016cddae']
                                    	            	},
                                    	            	{
                                    		            	name: 'Room2',
                                    		            	sortOrder: 70,
                                    		            	devices : ['158d0001735ac2']
                                    	            	}]
                                    
                                    

                                    Also please check that you use the latest version.

                                    About that WunderGround module: I need to test that myself, not sure why there are such kind of interferences.

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      trividar
                                      last edited by

                                      I have the latest version and thats my config:

                                      {
                                      		module: 'MMM-xiaomi',
                                      		position: 'bottom_left',
                                      		header: 'Temperature / Humidity',  // This is optional
                                      		config: {
                                      			interval: 30,
                                      			gatewayIP: '192.168.1.128',
                                      			gatewayToken: '65764848557cccc2170d1fd8c06b32cb',
                                      			devices: [{ 
                                      			id: '158d0001dfdb14', 
                                      			name: 'Schlafzimmer temp' 
                                      			}]
                                      			// See 'Configuration options' for more information.
                                      		}
                                      	},
                                      
                                      1 Reply Last reply Reply Quote 0
                                      • M Offline
                                        mirko3000
                                        last edited by

                                        That is the config for the old version. Please check the README carefully:
                                        https://github.com/mirko3000/MMM-xiaomi#configuration-options

                                        {
                                        		module: 'MMM-xiaomi',
                                        		position: 'bottom_left',
                                        		header: 'Temperature / Humidity',  // This is optional
                                        		config: {
                                        			interval: 30,
                                        			gatewayIP: '192.168.1.128',
                                        			gatewayToken: '65764848557cccc2170d1fd8c06b32cb',
                                        			rooms: [{ 
                                        			       name: 'Schlafzimmer temp' ,
                                                                       devices:[ '158d0001dfdb14'],
                                                                       sortOrder: 1
                                        			}]
                                        		}
                                        	},
                                        
                                        1 Reply Last reply Reply Quote 0
                                        • T Offline
                                          trividar
                                          last edited by

                                          oooo shit…my mistake! It works now… thank’s a lot for your help…your a hero.
                                          please chack this with WunderGround it would be really nice…

                                          THANKS A LOT!

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

                                            I’ve pulled the latest update today. Since this i don’t see the temperature / humidity any more. I don’t have any errors in my logs depending MMM-xiaomi. The config.js is the same as well. Browser debug without errors. The only error which is new in my log is about the module nerwork scanner.

                                            By the way: Do I add the window sensors the same way as the Temperature sensor? Which lights are supported?

                                            empty

                                            mm error:

                                            TypeError: Cannot read property 'network' of undefined
                                                at Class.scanNetworkMAC (/home/pi/MagicMirror/modules/MMM-NetworkScanner/node_helper.js:42:36)
                                                at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-NetworkScanner/node_helper.js:30:18)
                                                at Socket. (/home/pi/MagicMirror/modules/node_modules/node_helper/index.js:103:11)
                                                at emitTwo (events.js:106:13)
                                                at Socket.emit (events.js:194:7)
                                                at /home/pi/MagicMirror/node_modules/socket.io/lib/socket.js:514:12
                                                at _combinedTickCallback (internal/process/next_tick.js:73:7)
                                                at process._tickCallback (internal/process/next_tick.js:104:9)
                                            
                                            

                                            mm out:

                                            
                                            > magicmirror@2.1.3 start /home/pi/MagicMirror
                                            > sh run-start.sh
                                            
                                            Starting MagicMirror: v2.1.3
                                            Loading config ...
                                            Loading module helpers ...
                                            No helper found for module: alert.
                                            No helper found for module: clock.
                                            Initializing new module helper ...
                                            Module helper loaded: calendar
                                            No helper found for module: currentweather.
                                            No helper found for module: weatherforecast.
                                            Initializing new module helper ...
                                            Module helper loaded: MMM-Remote-Control
                                            Initializing new module helper ...
                                            Module helper loaded: MMM-DWD-WarnWeather
                                            Initializing new module helper ...
                                            Module helper loaded: MMM-PNews
                                            Initializing new module helper ...
                                            Module helper loaded: newsfeed
                                            Initializing new module helper ...
                                            Module helper loaded: internet-monitor
                                            Initializing new module helper ...
                                            Module helper loaded: MMM-MovieListings
                                            Initializing new module helper ...
                                            Module helper loaded: MMM-Fuel
                                            Initializing new module helper ...
                                            Module helper loaded: MMM-NetworkScanner
                                            Initializing new module helper ...
                                            Module helper loaded: MMM-nasaastropic
                                            Initializing new module helper ...
                                            Module helper loaded: MMM-SystemStats
                                            No helper found for module: MMM-Carousel.
                                            Initializing new module helper ...
                                            Module helper loaded: MMM-Events
                                            Initializing new module helper ...
                                            Module helper loaded: MMM-xiaomi
                                            All module helpers loaded.
                                            Starting server on port 8080 ... 
                                            You're using a full whitelist configuration to allow for all IPs
                                            Server started ...
                                            Connecting socket for: calendar
                                            Starting node helper for: calendar
                                            Connecting socket for: MMM-Remote-Control
                                            Starting node helper for: MMM-Remote-Control
                                            Connecting socket for: MMM-DWD-WarnWeather
                                            MMM-DWD-WarnWeather helper started...
                                            Connecting socket for: MMM-PNews
                                            Starting module: MMM-PNews
                                            Connecting socket for: newsfeed
                                            Starting module: newsfeed
                                            Connecting socket for: internet-monitor
                                            internet-monitor helper started ...
                                            Connecting socket for: MMM-MovieListings
                                            MMM-MovieListing helper started...
                                            Connecting socket for: MMM-Fuel
                                            Starting module helper: MMM-Fuel
                                            Connecting socket for: MMM-NetworkScanner
                                            Starting module: MMM-NetworkScanner
                                            Connecting socket for: MMM-nasaastropic
                                            Starting node helper: MMM-nasaastropic
                                            Connecting socket for: MMM-SystemStats
                                            Connecting socket for: MMM-Events
                                            Starting node_helper for: MMM-Events
                                            Connecting socket for: MMM-xiaomi
                                            Starting xiaomi helper
                                            Sockets connected & modules started ...
                                            Launching application.
                                            MMM-NetworkScanner received SCAN_NETWORK
                                            MMM-NetworkScanner is performing arp-scan
                                            Whoops! There was an uncaught exception...
                                            MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                                            If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                                            Create new calendar fetcher for url: https://calendar.google.com/calendar/ical/basic.ics - Interval: 300000
                                            Create new news fetcher for url: http://www.haz.de/rss/feed/haz_schlagzeilen - Interval: 300000
                                            Create new news fetcher for url: http://www.spiegel.de/schlagzeilen/index.rss - Interval: 300000
                                            starting internet monitor node helper
                                            MMM-NetworkScanner received CONFIG
                                            astro helper: config received
                                            retrieveAndUpdate()
                                            Sat Nov 18 2017 10:10:53 GMT+0100 (CET): Triggering Xiaomi Gateway connect
                                            NASA Astro Pic of the Day URL: https://apod.nasa.gov/apod/image/1711/20171117dawnTezel1200c.jpg
                                            Found device with ID 158d000119fcb2 of type magnet
                                            Found device with ID 158d00015aa973 of type controller
                                            Found device with ID 158d00015736a8 of type sensor
                                            
                                            
                                            M 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
                                            • 3 / 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