homebridge-miio icon indicating copy to clipboard operation
homebridge-miio copied to clipboard

out of control issue

Open cnliri1 opened this issue 7 years ago • 7 comments

Hello,

Yesterday after install the miio,i kept my mi-plug on and start the homebridge but it can not fetch the real status and keeps off. I tried to switch on the plug by the app, the icon active then 2s later switch off, during that nothing change on the real plug. i repeat it 3 times,no any response from the plug.

When i tried the fourth time,it works.but 10s later the icon switched off and plug keeps on.

any suggestion on it?

below is the record log,

homebridge
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
[5/3/2017, 2:07:41 PM] Loaded plugin: homebridge-edomoticz
[5/3/2017, 2:07:41 PM] Registering accessory 'homebridge-edomoticz.eDomoticz'
[5/3/2017, 2:07:41 PM] Registering platform 'homebridge-edomoticz.eDomoticz'
[5/3/2017, 2:07:41 PM] ---
[5/3/2017, 2:07:42 PM] Loaded plugin: homebridge-miio
[5/3/2017, 2:07:42 PM] Registering platform 'homebridge-miio.XiaomiMiio'
[5/3/2017, 2:07:42 PM] ---
[5/3/2017, 2:07:42 PM] Loaded config.json with 0 accessories and 2 platforms.
[5/3/2017, 2:07:42 PM] ---
[5/3/2017, 2:07:42 PM] Loading 2 platforms...
[5/3/2017, 2:07:42 PM] [eDomoticz] Initializing eDomoticz platform...
[5/3/2017, 2:07:42 PM] [XiaomiMiio] Initializing XiaomiMiio platform...
[5/3/2017, 2:07:42 PM] [XiaomiMiio] Setting up Miio platform
[5/3/2017, 2:07:42 PM] Loading 0 accessories...
[5/3/2017, 2:07:42 PM] [XiaomiMiio] miIO Plug 351685 Configure Accessory
[5/3/2017, 2:07:43 PM] [XiaomiMiio] DidFinishLaunching
[5/3/2017, 2:07:44 PM] [XiaomiMiio] device discovered 13615136
[5/3/2017, 2:07:44 PM] [XiaomiMiio] Investigating Miio Device at udp://192.168.1.151:54321
[5/3/2017, 2:07:44 PM] [XiaomiMiio] device discovered 351685
[5/3/2017, 2:07:44 PM] [XiaomiMiio] Investigating Miio Device at udp://192.168.1.103:54321
[5/3/2017, 2:07:44 PM] [XiaomiMiio] Unsupported, ignoring
[5/3/2017, 2:07:45 PM] [eDomoticz] Initializing platform accessory 'iptv'...

Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ 031-45-154 │     
    └────────────┘     
                       
[5/3/2017, 2:07:47 PM] Homebridge is running on port 51826.
[5/3/2017, 2:07:54 PM] [XiaomiMiio] miIO Plug 351685 fetch status
[5/3/2017, 2:09:47 PM] [XiaomiMiio] miIO Plug 351685 fetch status
[5/3/2017, 2:10:11 PM] [XiaomiMiio] miIO Plug 351685 fetch status
[5/3/2017, 2:10:42 PM] [XiaomiMiio] miIO Plug 351685 power to 1
[5/3/2017, 2:10:48 PM] [XiaomiMiio] miIO Plug 351685 power to 1
[5/3/2017, 2:11:02 PM] [XiaomiMiio] miIO Plug 351685 power to 1
[5/3/2017, 2:16:43 PM] [XiaomiMiio] miIO Plug 351685 fetch status
[5/3/2017, 2:16:43 PM] [XiaomiMiio] miIO Plug 351685 power to 1
[5/3/2017, 2:16:44 PM] [XiaomiMiio] miIO Plug 351685 power to 0
[5/3/2017, 2:16:46 PM] [XiaomiMiio] miIO Plug 351685 power to 1
[5/3/2017, 2:16:46 PM] [XiaomiMiio] miIO Plug 351685 power to 0
[5/3/2017, 2:16:47 PM] [XiaomiMiio] miIO Plug 351685 power to 1
[5/3/2017, 2:16:48 PM] [XiaomiMiio] miIO Plug 351685 power to 0
[5/3/2017, 2:16:49 PM] [XiaomiMiio] miIO Plug 351685 power to 1
[5/3/2017, 2:16:53 PM] [XiaomiMiio] miIO Plug 351685 power to 0
[5/3/2017, 2:16:55 PM] [XiaomiMiio] miIO Plug 351685 power to 1

cnliri1 avatar May 03 '17 06:05 cnliri1

do you know what the exact model of the plug is? like does it have a usb port on it? does it work instantly when you use the Mi Home app from Xiaomi to control it, or is there a delay before it reacts?

Bluebie avatar May 03 '17 12:05 Bluebie

Thanks for your quick reply.The model is chuangmi plug v1,it work perfectly with mi home app

cnliri1 avatar May 03 '17 13:05 cnliri1

Also from the log you can find the first three status keeps to 1.in this period no reacts act on the plug.

cnliri1 avatar May 03 '17 13:05 cnliri1

Today i test another mi plug,the type is chuangmi-plug-m1_miio,without usb port, work perfectly.

cnliri1 avatar May 04 '17 11:05 cnliri1

@cnliri1 I'm the author of the miio library that homebridge-miio uses. I'm very interested in fixing the issues with your plug.

Could I ask you to follow the instructions under "Something with your device does not work" at https://github.com/aholstenson/miio/blob/master/docs/reporting-issues.md? Feel free to open an issue in that repository and I'll see what we can do about fixing the support for your device.

Thanks!

aholstenson avatar May 06 '17 08:05 aholstenson

miio version 0.12.0 contains some changes that hopefully fixes plugs with model id chuangmi.plug.v1.

The API for the plugs changed sometime between version 0.7.0 and this latest release so there are some changes needed in homebridge-miio to be able to use this release (hopefully some of the last breaking changes before 1.0.0 of miio).

aholstenson avatar May 10 '17 07:05 aholstenson

Hi The same problem with my chiangmai-plug-v1 with USB plug discovered, but token: '00000000000000000000000000000000', chiangmai-plug-m1 is ok Thanks for your job! Waiting for next release with this fix

oleg77s avatar May 14 '17 10:05 oleg77s