Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

out of control issue #19

Open
cnliri1 opened this issue May 3, 2017 · 7 comments
Open

out of control issue #19

cnliri1 opened this issue May 3, 2017 · 7 comments

Comments

@cnliri1
Copy link

cnliri1 commented May 3, 2017

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 cnliri1 changed the title automatic deactive out of control issue May 3, 2017
@Bluebie
Copy link
Owner

Bluebie commented May 3, 2017

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?

@cnliri1
Copy link
Author

cnliri1 commented May 3, 2017

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

@cnliri1
Copy link
Author

cnliri1 commented May 3, 2017

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

@cnliri1
Copy link
Author

cnliri1 commented May 4, 2017

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

@aholstenson
Copy link

@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
Copy link

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).

@oleg77s
Copy link

oleg77s commented May 14, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants