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?
Read the statement by Michael Teeuw here.
Posts
-
RE: MMM-xiaomi - Temperature and Humidity from your smarthome
-
RE: MMM-xiaomi - Temperature and Humidity from your smarthome
Hi, sorry I did not reply to your last comment, did you solve the issues there?
About the CSS: basically you are at the right spot, adjusting these values (e.g. font-size) should change font size. What did you edit exactly? Did you try restarting MM after the changes? -
RE: MMM-xiaomi - Temperature and Humidity from your smarthome
Ok got it :) Here you go, added max temperature setting with latest version.
Best regards,
Mirko -
RE: MMM-xiaomi - Temperature and Humidity from your smarthome
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 -
RE: MMM-xiaomi - Temperature and Humidity from your smarthome
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…
-
RE: MMM-xiaomi - Temperature and Humidity from your smarthome
Check the new config parameter ‘celcius’ from the latest commit, just put that to ‘false’ to show fahrenheit instead of celcius.
-
RE: 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/issues -
RE: MMM-xiaomi - Temperature and Humidity from your smarthome
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 -
RE: MMM-xiaomi - Temperature and Humidity from your smarthome
Did you try with the ‘miio --discover’ command line utility? Do the lights show up there?
-
RE: MMM-xiaomi - Temperature and Humidity from your smarthome
Yes the identification of the sensors is not really good, did not find a better solution so far.
As for the trend indicators: I pushed a new version where you can disable the trend icons (showTrend: false). -
RE: MMM-xiaomi - Temperature and Humidity from your smarthome
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.
-
RE: 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.
-
RE: MMM-xiaomi - Temperature and Humidity from your smarthome
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.
-
RE: MMM-xiaomi - Temperature and Humidity from your smarthome
Your first config is correct, I guess you might have made an error somewhere else in your config, I could run your config successfully.
-
RE: MMM-xiaomi - Temperature and Humidity from your smarthome
Can you post your configuration for the module? You now need to define your rooms, it looks like the module simply does not find any room to show.
And yes, you add all devices to your room configuration, the module can identify the type and handle it correspondingly.BTW: suggest tracking issues on the github issue tracker: https://github.com/mirko3000/MMM-xiaomi/issues
-
RE: MMM-xiaomi - Temperature and Humidity from your smarthome
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 }] } }, -
RE: MMM-xiaomi - Temperature and Humidity from your smarthome
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.
-
RE: MMM-xiaomi - Temperature and Humidity from your smarthome
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 :)
-
RE: MMM-xiaomi - Temperature and Humidity from your smarthome
@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!? :)
-
RE: MMM-xiaomi - Temperature and Humidity from your smarthome
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!