MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    1. Home
    2. mirko3000
    M
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 34
    • Best 10
    • Controversial 0
    • Groups 0

    mirko3000

    @mirko3000

    11
    Reputation
    1450
    Profile views
    34
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    mirko3000 Unfollow Follow

    Best posts made by mirko3000

    • MMM-xiaomi - Temperature and Humidity from your smarthome

      Description

      Hi guys,

      just made a small module to display temperature and humidity from your Xiaomi smarthome sensors. Pretty basic so far, but hugely helpful to me to monitor heating and ventilation (humidity!).

      Screenshots

      Sensors look like this and cost around 8 €:
      alt text

      Here a sample from the module:
      alt text

      Download

      posted in Utilities
      M
      mirko3000
    • RE: MMM-xiaomi - Temperature and Humidity from your smarthome

      Sorry, forgot about the link:
      https://github.com/mirko3000/MMM-xiaomi

      @barnosch, @cxlwill: Did you check the logs? Anything showing up there?

      posted in Utilities
      M
      mirko3000
    • RE: MMM-xiaomi - Temperature and Humidity from your smarthome

      Hey Albert,

      I think I have solved your issue: not all gateways seem to allow auto-discovery without authentification via a security token. I have added an additional configuration parameter now where you can provide your token:
      https://github.com/mirko3000/MMM-xiaomi

      Update the module and follow the description at the bottom:
      https://github.com/mirko3000/MMM-xiaomi#authentification

      Hope that works.

      Best regards.

      posted in Utilities
      M
      mirko3000
    • RE: MMM-xiaomi - Temperature and Humidity from your smarthome

      Ok, now another try 🙂 Forgot to add utility class which was already present from other modules on my instance. Please update from GIT.

      posted in Utilities
      M
      mirko3000
    • RE: MMM-xiaomi - Temperature and Humidity from your smarthome

      Good to hear! 🙂

      Suggestions welcome, I have just added ventilation recommendation(see latest update), will also add window sensors - but still unsure how to visualize all that information. Suggestions welcome!

      posted in Utilities
      M
      mirko3000
    • RE: 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:
      0_1510134269455_Bildschirmfoto 2017-11-08 um 10.42.55.png

      posted in Utilities
      M
      mirko3000
    • 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!

      posted in Utilities
      M
      mirko3000
    • 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).

      posted in Utilities
      M
      mirko3000
    • 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.

      posted in Utilities
      M
      mirko3000
    • 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…

      posted in Utilities
      M
      mirko3000

    Latest posts made by mirko3000

    • RE: MMM-xiaomi - Temperature and Humidity from your smarthome

      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?

      posted in Utilities
      M
      mirko3000
    • 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?

      posted in Utilities
      M
      mirko3000
    • 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

      posted in Utilities
      M
      mirko3000
    • 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

      posted in Utilities
      M
      mirko3000
    • 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…

      posted in Utilities
      M
      mirko3000
    • 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.

      posted in Utilities
      M
      mirko3000
    • 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

      posted in Utilities
      M
      mirko3000
    • 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

      posted in Utilities
      M
      mirko3000
    • 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?

      posted in Utilities
      M
      mirko3000
    • 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).

      posted in Utilities
      M
      mirko3000