Read the statement by Michael Teeuw here.
MMM-xiaomi - Temperature and Humidity from your smarthome
-
Did you try with the ‘miio --discover’ command line utility? Do the lights show up there?
-
@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?

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?

-
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 -
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 -
@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/issuesThank you for this! :)
In the future I’ll use the issue tracker. -
Excellent!!! All working.
-
Check the new config parameter ‘celcius’ from the latest commit, just put that to ‘false’ to show fahrenheit instead of celcius.
-
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.zipAm 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:
-
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.0npm 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. -
fix -
sudo npm install -g miio
-
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) -
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.
-
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…
-
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 -
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 -
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 -
Ok got it :) Here you go, added max temperature setting with latest version.
Best regards,
Mirko -
Am still impressed by your speed and your skill! Thank you for sharing your work with us!
-
Hi Mirko3000,
thank you! Great work. -
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.
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