Read the statement by Michael Teeuw here.
MMM-xiaomi - Temperature and Humidity from your smarthome
-
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. -
I gave found new token on Mi home app android, it worked a few days, and then again it does not work anymore, it tells me ‘time out’ and in mioo discover there is nothing at all
{ Error: Call to device timed out
at retry (/home/pi/MagicMirror/modules/MMM-xiaomi/node_modules/miio/lib/device.js:225:18)
at _ensureToken.catch.err (/home/pi/MagicMirror/modules/MMM-xiaomi/node_modules/miio/lib/device.js:238:8)
at code: ‘timeout’ -
@smotx said in MMM-xiaomi - Temperature and Humidity from your smarthome:
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 ? :(.
I had the same problem. Meanwhile, I have found the solution. An update from Xiaomi changed the token in the gateway. This must now be read out via the smartphone. In my case the miio discovery command did not work any more. I followed this instruktion to get the new token
… and now all works fine again - I have all my sensors back on the mirror.
regards
Mike -
after this command :
miio tokens update 567xxxxx --token 6xxxxxxxxxxxxxxxxxxxxxxxxxxx
mine to work again a few days, and now is KO again… for the third time… :face_with_steam_from_nose: Token has not changed, ip has not changed…
-
I can’t find what needs to be changed in CSS to change the font color of the temperature and humidity numbers.
-
Hi guys,
I have two temperature sensors. Each sensor registers with a gateway. Could anyone tell me how to add the two gateways in config.js file?
I try to add the following codes in config.js:
{
module: ‘MMM-xiaomi’,
position: ‘top_right’,
header: ‘Temperature / Humidity’,
config: {
gatewayIP: ‘192.168.186.181’,
gatewayToken: ‘xxxxxxxx-ceec093b30b1775dc741a7’,
showWindow: true,
showVentilation: true,
showLights: false,
audioNotifications: true,
rooms: [
{
name: ‘Bedroom’,
sortOrder: 20,
devices : [‘158d000xxxx9f’]
}
],
gatewayIP: ‘192.168.186.166’,
gatewayToken: ‘xxxxxxxx–927e2d20b22c22b007194c’,
rooms: [
{
name: ‘Childroom’,
sortOrder: 30,
devices : [‘158d000xxxx4f6’]
}
]
}
}but MagicMirror always display the last sensor, which registers with the secondary gateway in config.js file.
Could anyone give me some suggestions? Thanks in advance!
-
@lovesicker Hi,
I think you are on the wrong way: You use gatewayIP and gatewayToken twice. Thats not necessary.
Look to my configuration - this works fine:
{
module: ‘MMM-xiaomi’,
position: ‘bottom_left’,
colored: true,
header: ‘Temperatur / Luftfeuchtigkeit’, // This is optional
config: {
gatewayIP: ‘192.168.160.xx’,
outsideSensorId: ‘15xxx0201dxxx’,
gatewayToken: ‘cd857eee1fc760d029767709cd50xxxx’,
showWindow: true,
showVentilation: true,
showLights: false,
showTend: false,
showNotifications: false,
audioNotifications: false,rooms: [ { name: 'Büro', minTemperature : 15, maxTemperature : 35, sortOrder: 1, devices : ['158d0001c2cxxx'] }, { name: 'Aussentemperatur ', sortOrder: 20, devices : ['15xxx00201d4xxx'] }, { name: 'Wohnzimmer ', minTemperature : 15, maxTemperature : 35, sortOrder: 2, devices : ['158d0001c2cxxx'] }, { name: 'Schlafzimmer ', sortOrder: 3, minTemperature : 15, maxTemperature : 30, devices : ['1xxx000201dxxx', '15xxx001f49xxx'] }, { name: 'Philipp', minTemperature : 15, maxTemperature : 35, sortOrder: 4, devices : ['1xxd0001c14xxx'] }, { name: 'Marco', minTemperature : 15, maxTemperature : 35, sortOrder: 5, devices : ['15xxx01f54xxx'] }, { name: 'HW-Raum', minTemperature : 10, maxTemperature : 35, sortOrder: 7, devices : ['15xxx002029xxx'] }, { name: 'Garage', minTemperature : 15, maxTemperature : 35, sortOrder: 10, devices : ['15xxx001c1xxx'] }, { name: 'Keller', minTemperature : 15, maxTemperature : 35, sortOrder: 9, devices : ['15xxx001c2axxx'] }, { name: 'WC', minTemperature : 15, maxTemperature : 35, sortOrder: 8, devices : ['15xxx001c1axxx'] }, { name: 'Bad', minTemperature : 18, maxTemperature : 35, sortOrder: 6, devices : ['15xxx001c2cxxx'] },
]