Read the statement by Michael Teeuw here.
MMM-xiaomi - Temperature and Humidity from your smarthome
-
Your config looks a bit misconfigured. Please remove these lines.
config: { // See 'Configuration options' for more information. } },If this is still not working, then please paste your entire config.
-
@yawns is dot work. so i had try to send config fil to you on pb
-
/* Magic Mirror Config Sample By Michael Teeuw http://michaelteeuw.nl MIT Licensed. */ var config = { zoom: 0.6, port: 8080, ipWhitelist: ["127.0.0.1", "::ffff:127.0.0.1", "::1"], // Set [] to allow all IP addresses. language: "da", timeFormat: 24, units: "metric", modules: [ { module: "alert", }, { module: "clock", position: "top_left" }, { module: 'MMM-WunderGround', position: 'top_right', config: { apikey: 'xxxxxxxxxxxxxxxxxxxxxx', // private; don't share! pws: 'pws:IVEJLE2', //culemborg hourly: '1', fctext: '1', fcdaycount: "5", fcdaystart: "0", hourlyinterval: "3", hourlycount: "2", alerttime: 10000, alerttruncatestring: "english:", roundTmpDecs: 1, UseCardinals: 0, layout: "vertical", iconset: "novaco", sysstat: 0 } }, { module: "MMM-xiaomi", position: "bottom_left", header: "Temperature / Humidity", // This is optional config: { gatewayIP: "192.168.10.170", gatewayToken: "xxxxxxxxxxxxxxxxxxx", showwindow: true, showVentilation: false, minTemperature: true, maxHumidity: true, showlights: true, rooms: [ { name: "test", sortOrder: 30, devices: ["158d0001b911b9"] }, ], } }, ], }; /*************** DO NOT EDIT THE LINE BELOW ***************/ if (typeof module !== "undefined") {module.exports = config;}Please try again. I don’t know which text editor you used, but it is very important to only use these around strings:
- "
- ’
Do not use
- ‘
- “
- ”
-
@mirko3000
Yes, i solved the problem with the token.to my css:
I add.xm-xiaomi .small { font-size: 24px; }to get a bigger fonts.
I try to change the default colours e.g.
.xm-legend-temp { position: absolute; height: 100%; width: 3px; background-color: #FF1493; left: 9%; z-index: 0;And I want to have bigger figueres for temperature and humidity
.xm-room-temp-humid { margin: 10px; } -
@yawns okay THX. I Will try
-
This post is deleted! -
Hi… We have an error with door sensor. Not show icons on MM. I think that the config is ok
{ module: 'MMM-xiaomi', position: 'bottom_left', header: 'Temperatura / Humedad', config: { gatewayIP: '192.168.1.103', gatewayToken: 'xxxxxxxxxxxx872e8bc25e415a7005a2', showWindow: true, showVentilation: true, showLights: false, audioNotifications: true, rooms: [ { name: 'Salon', sortOrder: 10, devices: ['158d0001f531bf', '158d00020258f4'] } ] } },any idea???
Thanks… -
Hmm your config seems to be fine, make sure the IDs are ok, else it should work. Be aware that the icon only shows open window/doors, so if the door is closed you won’t see an icon.
I suppose the temperature sensor is working fine? -
@mirko3000 Now Work… I don´t know why…
simply copy again the id (the same) and change showVentilation: false (don´t have outdoor sensor) and work…sorry and thanks…
-
HI,
Anyone know why MMM Xiaomi need aplay ?
Error: Cannot find module 'node-aplay' at Module._resolveFilename (module.js:543:15) at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/common/reset-search-paths.js:35:12) at Function.Module._load (module.js:473:25) at Module.require (module.js:586:17) at require (internal/module.js:11:18) at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-xiaomi/node_helper.js:11:20) at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-xiaomi/node_helper.js:140:3) at Module._compile (module.js:642:30) at Object.Module._extensions..js (module.js:653:10) at Module.load (module.js:561:32) Whoops! There was an uncaught exception...Thanks
-
@mirko3000 said in MMM-xiaomi - Temperature and Humidity from your smarthome:
I just recieved my order of another 6 window sensors yesterday :) But I really think they will shut this down soon, guess they (gearbest) are not paying any taxes at all…
Working on the new version, this is what I have in mind:

How to have this screen ?
-
This post is deleted! -
it seems that these window sensors are not compatible.
Xiaomi Aqara Window Door Sensor
I added them to the config module and no return on MM.
When i launch
miio discoverit found
Device ID: 158d0001ab1f9c Model info: lumi.magnet.aq2but when i launch npm start, MMM-xiaomi say
Found device with ID 158d0001ab1f9c of type genericand no
Found device with ID 158d0001ab1f9c of type magnet -
Thanks to owner of module : @mirko3000 for update to see this sensor !
Now that’s work
-
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: UnknownI 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 configmodule: '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
-
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??
-
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! -
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 -
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 ? :(. -
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.
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