I am just picking up on this - I have just had a new Screwfix flyer come through the door and this has shown the MiHome platform as being very interesting.
I see they have light switches and also double gang in wall sockets for only £20…
If this can integrate with ST this would make this quite a powerful, neat and competitive priced solution for most of us in the UK. But only if it can be controlled with ST, I know I can link it via IFTTT but this is often laggy…
With your smart app you say it may be easy to setup but realistically how easy is this?
There is a documented API available, it’s just a case of finding the time to add this. Unfortunately I don’t have any MiHome switches, just the eTRVs but if there is enough interest, i can attempt to add this as part of the Mihome connect app.
As I have no devices to test, i will need to rely on other people to report and feedback if I implemented this functionality in the future.
It’s worth noting Jamie that the wall sockets are ‘receive only’ so from my understanding, if you use them with either the mihome gateway or integrate with smartthings, you’d only be able to control them and wouldn’t be able to get the current status!
Add me to the interested list Alex. I have just started using your Hive and MiHome etrv apps (great job. thanks) and would be keen to see other MiHome products added.
Whilst several of their products are one way (Control only) some like their eTRV’s and the Mi|Home Adapter Plus are two way.
According to the Mihome website Mi|Home Adapter Plus
Product description
This product is a transmitter and receiver and therefore will let the user know when an action has been carried out and the current status of their device. It also provides for energy monitoring. Requires the Mi|Home Gateway.
So for anyone who already has the MiHome gateway for their eTRV’s these plugs are a reasonable option and with the API available would be feasible to add to SmartThings as @Alyc100 has done with his excellent eTRV DTH and Smartapp.
Based on the API documentation, I think that these and the plug switches make the same API calls so hopefully the MiHome connect app will soon be able to support both in the upcoming weeks.
Ok, so working on an overhaul of the MiHome connect smart app at the moment and it appears only some switches can report a current switch state. Not sure which models can and can’t though. There is an API field “unknown_state” that returns “true” for devices that cannot report their state.
Anyone out there willing to be a guinea pig for the new app? As I have no MiHome plug sockets I am unable to do any real world testing.
I don’t use SmartThings, but do use MiHome eTRV’s and Energy Monitors. I would like to know if its possible to use the API to retrieve current temperatures of the eTRVS and store the in SQL somehow?
Just uploaded the new MiHome integration. Please test away and send comments and feedback to the topic below.
I’m hoping to support multi socket devices but need to see some API responses. For those with these devices, within the SmartThings logs, can you paste the parts of the logs from the MiHome (Connect) smart app that start like this…
***DEVICE JSON for Garage - light: [timer3_on_time:null, timer2_friday:null, timer2_off_time:null, startup_
Just updated and all looks good apart from not finding my Adaptor Plus
Had to change line 276 from
else if (device.device_type == ‘ecalm’) {
to
else if (device.device_type == ‘control’) {
then it found the adaptor and added it OK and it seems to be working well.
When / if this happens I imagine there will be a surge of purchases for these products. There’s a load of sockets and light switches on my shopping list…