Read the statement by Michael Teeuw here.
MMM-xiaomi - Temperature and Humidity from your smarthome
-
Am sorry, it was my mistake. I did not checked my config.js. Out of nowhere there was again
devices:
instead of
rooms:
Thank you for your help!
I’ve tried to get the icon for the open state of the window sensors working this way:
The first ID is the temperature sensor, the second one the window sensors:{ module: 'MMM-xiaomi', position: 'bottom_left', header: 'Temperatur / Feuchtigkeit', // This is optional config: { gatewayIP: '192.168.2.160', gatewayToken: '6ebf9b84e5c615c09268166a99b95f0a', showWindow: true, rooms: [ { name: 'Wohnzimmer', sortOrder: 30, devices : ['158d00015736a8', '158d000119fcb2'] }, ] } },
and this way:
{ module: 'MMM-xiaomi', position: 'bottom_left', header: 'Temperatur / Feuchtigkeit', // This is optional config: { gatewayIP: '192.168.2.160', gatewayToken: '6ebf9b84e5c615c09268166a99b95f0a', rooms: [ { name: 'Wohnzimmer', sortOrder: 30, showWindow: true, devices : ['158d00015736a8', '158d000119fcb2'] }, ] } },
Both times MM did not started because of errors in the config. How is the right way to get this solved?
-
Your first config is correct, I guess you might have made an error somewhere else in your config, I could run your config successfully.
-
Hmm… I must have had a typo somewhere. Now the config is working for me as well but still no icon.
this is how it works so far:
{ module: 'MMM-xiaomi', position: 'bottom_left', header: 'Temperatur / Feuchtigkeit', // This is optional config: { gatewayIP: '192.168.2.160', gatewayToken: '6ebf9b84e5c615c09268166a99b95f0a', showWindow: true, rooms: [ { name: 'Wohnzimmer', sortOrder: 30, devices : ['158d00015736a8', '158d000119fcb2'] }, ] // See 'Configuration options' for more information. } },
This is what I get:
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-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-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. 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 15:55:41 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
No errors in the log
-
Note that the icon only appears on open windows - its a white star. If the window is closed you will not see any icon. Also I have noticed that the open state is not really reliable, need to check with miio why there are so many false states sent.
-
@mirko3000 said in MMM-xiaomi - Temperature and Humidity from your smarthome:
Note that the icon only appears on open windows - its a white star.
That was the point that i’ve missed! when I open the window, the white star appears impatiently! I love this module! Thank you for your work!
-
Don’t forget to update the npm packages (miio), there is a bugfix which caused wrong close events of the windows. Either ‘npm update’ in the MMM-xiaomi folder, or delete the “node_modules” folder and simply execute ‘npm install’ again.
-
@mirko3000 said in MMM-xiaomi - Temperature and Humidity from your smarthome:
Don’t forget to update the npm packages (miio), there is a bugfix which caused wrong close events of the windows. Either ‘npm update’ in the MMM-xiaomi folder, or delete the “node_modules” folder and simply execute ‘npm install’ again.
Now I did so. Thank you for the hint!
-
My new sensors are arrived… I love it! Great work!
Which lights are supported?
-
Check your devices here:
https://github.com/aholstenson/miio/blob/master/docs/devices/README.md#models-by-nameAs you see not all Yeelights are supported, others are untested. My module retrieves all devices of type ‘light’, so it might work for all of them.
-
hi,
finally my gateway arrived today. Great. it is working after a little struggeling to get the correct App to initally configure the stuff.
I added 4 temp/humidity sensors and i am wondering how to see in the miio discovery whick one is in which room?
Any chance to get that ?
I the app itself i sadly can’t see the IDs of the sensors?How did you figured this out?