Bluebie / homebridge-miio

Xiaomi Mi Home Plugin for Homebridge
112 stars 26 forks source link

plugin conflict #29

Open astrojetson8 opened 7 years ago

astrojetson8 commented 7 years ago

@Bluebie @aholstenson After updating this plugin homebridge-mi-aqara plugin has few issues. Following are not responding:

I did try with v 0.6.0 with 0.3.1, still same issue. I suspect it's miio library issue. I added @aholstenson and I will update author @YinHangCode of homebridge-mi-aqara plugin.

fyi, incase anyone else is searching forum to do revert back. sudo npm -g install miio@v0.6.0 sudo npm -g install homebridge-miio@v0.2.0

aholstenson commented 7 years ago

Hi, I think this is related to both plugins using the developer API and getting out of sync. I changed how miio interacts with the gateway but had not yet released it.

I took some time just now to do a release. In 0.13.0 the gateway should no longer use the developer API for more than receiving events. Hopefully that means that the other libraries using the developer API no longer get confused.

astrojetson8 commented 7 years ago

@aholstenson thanks for the explanation. i updated to miio library 0.13.0 but i still couldn't get it to work. Ok, I did get it to work intermittently once which is strange.

-- when i ran miio --discover --sync i got following for one of the zigbee plugs

Device ID: 158d00015dc113 Model info: lumi.motion (motion) Address: Owned by 52051385 Token: Automatic via parent device Support: At least basic

-- traced it back to log in homebridge:

[XiaomiMiio] device discovered 52051385 Investigating Miio Device at udp://192.168.1.10:54321

fyi, i noticed following but it shouldn't be an issue related to above: Loaded plugin: homebridge-miio [7/9/2017, 7:24:13 PM] Registering platform 'homebridge-miio.XiaomiMiio' [7/9/2017, 7:24:13 PM] --- failed to load BLE module!

astrojetson8 commented 7 years ago

i got it to work with miio@v0.13.0 and homebridge-miio@v0.2.0

Bluebie commented 7 years ago

were there any issues @astrojetson8 ? i'll push a revised version of homebridge-miio if not

astrojetson8 commented 7 years ago

no, it's been running fine since yesterday. i'll test the updated version when its up, and report back.

fyi: i was bit perplexed why it worked intermittently as per my original post. however, after gateway restart it worked fine. i could duplicate this multiple times. to get it work i had to restart the gateway.

Bluebie commented 7 years ago

published

astrojetson8 commented 7 years ago

@Bluebie i installed it last night, and same issue as my first post.