MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. mirko3000
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    M
    Offline
    • Profile
    • Following 0
    • Followers 0
    • Topics 2
    • Posts 34
    • Groups 0

    Posts

    Recent Best Controversial
    • 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

      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

      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

      Try the latest update (git pull), I just checked for null items - even i that should not happen.

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

      Hmm not sure about miio details, I just know that you can sync the tokens via

      miio --discover --sync
      

      Else I would try manually setting to the correct (new) token.
      For the MM: try to uncomment line 51 in node_helper.js, this logs all found devices. You could also add some more logs here to see where the program fails.

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

      Ok at least some progress. So first to enable your manual token just update the configuration:

      config: {
      	 interval: 30,
      	 gatewayIP: '192.168.13.1',
      	 gatewayToken: '6eea5ac1eb475bfedbfff98aab7c2bc7',
      	 devices : [{
      	     id: '158d00015736a8',
      	     name: 'MyRoom1'
      	 }]
      }
      

      You only need the IDs from your sensors, not the gateway.

      About the Mi Home App and your lost token, I would try once this works to reconfigure your gateway with the Mi Home app, and then try to fetch the auto-token again (in your first sample it seems to provide auto-token).

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

      When I run the discover tool I get the following:

      Device ID: 56804143
      Model info: Unknown 
      Address: 192.168.0.9 (xiaomi-gateway.fritz.box)
      Token: cfbdb315c0825ccc971918e36923febe via auto-token
      Support: Unknown
      
      Device ID: 158d0001635bb3
      Model info: lumi.sensor_ht (sensor)
      Address: Owned by 56804143
      Token: Automatic via parent device
      Support: At least basic
      
      posted in Utilities
      M
      mirko3000
    • RE: MMM-xiaomi - Temperature and Humidity from your smarthome

      So I just read through the documentation of miio and found this:
      https://github.com/aholstenson/miio/blob/master/docs/management.md#getting-the-token-of-a-device
      or:
      https://github.com/aholstenson/miio/blob/master/docs/management.md#setting-the-token-of-a-device

      My device seems to provide the token “via auto-token”, in your case it seems it does not. Maybe try either of the above.

      IDs are same with me, maybe my documentation is wrong here.

      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

      Well the IDs show up in your magic mirror - the problem is to identify which ID belongs to which sensor. I guessed them by checking the temperature, still I agree that this is not very convenient so far. Looking out for a better solution…

      posted in Utilities
      M
      mirko3000
    • 1 / 1