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…