This integration is provided completely free of charge and is open source. If however you really feel like it, you can make a donation here
#Latest Versions Ensure you install the latest versions of both the Smart App and Device Handler
IMPORTANT: If using MiHome Adapter Device Handler release dated on or before 08/11/2016, please manually remove all MiHome Adapter devices from SmartThings before upgrading to 09/11/2016 and later releases. You can re-add the Adapter via the MiHome (Connect) smart app after upgrading.
NOTE: For those with the earlier MiHome eTRV smart app and device type, you should be able to upgrade to v2.0 by pasting over the old code.
To install the MiHome (Connect) app:
Add the MiHome (Connect) app from GitHub as a new ‘My SmartApps’, select create from code option and paste. Click the ‘Create’ button. Save and Publish.
Add the MiHome eTRV / MiHome Adapter / MiHome Adapter Plus / MiHome Motion Sensor / MiHome Monitor device types from GitHub as a new ‘My Device Handlers’, select create from code option and paste. Save and Publish. Repeat for each device type.
Add the MiHome (Connect) app within the Smartthings mobile app from the Marketplace, then selecting the ‘SmartApps’ tab and locating the MiHome (Connect) app under the ‘My Apps’ section which should be at the bottom of the list.
Log into your MiHome account via the smart app when first opened.
You should be able to select your MiHome devices in the device selection screen.
Once you have selected your devices, click Done on the top right.
Your selected devices should automatically be configured and appear under ‘Things’ with the label [Device Name] [Device Type] e.g ‘Bedroom eTRV’ (may require SmartThings app restart).
@inpier - The idea around this is that real power should display at the bottom corner of the main tile at the top. Does this happen when a device is on? (before you modified the code). See screenshot of an example below…
Ok that’s probably why I added it as I couldn’t see it displayed anywhere so thought it was missing, I do see it in your code now as a tileAttribute of the main tile but no it isn’t displaying as far as I can see.
Will definitely be testing this. Just in time for the Christmas lights
I’ve had a quick play and managed to update OK, but it only seems to be picking up my Adapter Plus and not my regular Adapters. I thought it was perhaps they are currently unplugged, but that made no difference.
Just tested. Looks to work OK. Shame about the lack of state, but that’s a limitation of the switches. That’s something I’m willing to live with considering they are 3 times cheaper than the next cheapest smartthings plug adapter. I only whip these out at Christmas and use a wemo plug for anything else that I need to be more reliable.
Keep up the great work. I’ll ask the wife if I can send you some beer money ️
I have a question about the MiHome adapters. I am using the MiHome light switch that are not supposed to keep state. If I use the physical button on the switch, it doesn’t update the state of the device within Smartthings. However, if I turn the light switch on via Smartthings or the MiHome app, it reports the state of the light correctly. Wondering if it’s the same behaviour on the MiHome Adapters?
I don’t have the Mihome yet Alex (but seriously thinking about getting some eTRV’s this weekend because of your work with this :)) That sounds about right for the light switch, smartthings & Mihome isn’t reporting the actual state, but since it’s sending a command it knows what state it should be in, the switch has no way of sending it’s actual physical state back. I think the adapter plus will but I’d be interested to know
Sorry to have to do this but you need to manually remove all MiHome Adapter devices from Smartthings before upgrading to the latest beta code. I’ve had to split out the Mihome Adapter Plus device from Mihome Adapter device as the functionality difference is larger than I first thought.
Also added support for MiHome Monitor device so please test away.
Also keep an eye on the historical power chart and make sure the data looks correct as it’s very difficult to test.
I’ve ensured I’ve removed all trace of adapters, including deleting the device after removing it from the MiHome app. I can now seemingly add the normal adapters, but not the Adapter Plus, I get the below error when attempting to click done.
Please update your Smart Apps and Device Handlers to the latest code. Lloyd found a critical bug that occurs when trying to add and refresh Adapter Plus devices and possibly Monitor devices too.