vvpossible / homebridge_yeelight

Yeelight plugin for homebridge
303 stars 59 forks source link

Yeelight - Accessory not supported #19

Open JDrizz opened 7 years ago

JDrizz commented 7 years ago

Im having an issue with one of my Yeelights in the Home app. I am able to connect, setup and control the light in the Mi and Yeelight apps on my iPhone but when i open the Home app it says the light is "Not Supported". If i check the log when i enter homebridge it does say it connects/true.

The weird issue is if i disconnect/unpair that globe and repair it from a "factory reset" the Home app will see it and control it but then it will go back to the "Not Supported" state after a brief time.

Has anybody else had this issue? I am able to connect and control my other 12 Yeelights in my house via the Home app without any issues, it's just this one globe and because it works with the Mi and Yeelight apps I know its not an issue with the globe.

Thanks

matphillips commented 6 years ago

I have the same issue and was about to open a fresh issue until I saw this one. I have six bulbs connected, each working fine in the Yeelight app, five working great with this plugin but one showing as not supported. If I clear the files from cached accessories and the persist folder and then restart the home bridge, it will detect all six lights anew, again with one showing as not supported, BUT it may be a different bulb this time! It seems to be that the last bulb detected is the one that fails.

JDrizz commented 6 years ago

Hey matphillips. I found the issue was with iOS 11 beta. Once I downgraded back to iOS 10 i didn't have any issues anymore. But yes I was having that issue and it could have just been an issue with bulb number 6 as it was a different bulb each time but i never really picked which bulb order was being detected. Anyway if your on iOS 11 you will need to downgrade to iOS 10. Hope that helps

matphillips commented 6 years ago

Genius! I am indeed testing this on an iOS11 device, but that's been so stable recently that I didn't give this a second thought. The beta nature of iOS11 does make this problem a non-issue for now, it may be an issue with the beta, or it may be a genuine incompatibility. If the latter, it will start to affect more people in time, if the former it will 'fix itself'.

I will take a look at the source and the Apple docs to see if I can help in some way, but Homekit is new to me so this may be unlikely! Thanks for the tip.

Mattin commented 6 years ago

iOS11 GM is out. And problem persist.

JDrizz commented 6 years ago

Damn. Hopefully this gets sorted soon

Mattin commented 6 years ago

iOS 11.1 Beta same. I don't think it's iOS problem, I don't have any problem with others plugins in homebridge, just yeelight.

Mattin commented 6 years ago

Found a solution! Update of Homebridge help, here is what version I used and to what I updated:

Package Current Wanted Latest Location
homebridge 0.4.22 0.4.28 0.4.28
npm 5.3.0 5.4.2 5.4.2

matphillips commented 6 years ago

actually, after removing and re-adding the bridge due to unrelated issues, I now have all the yeelights available, but a temperature sensor connected to a Sonoff device flashed with the tasmota firmware is the one that is 'unsupported'. It seems to be a homebridge issue and affects a random device.

Mattin commented 6 years ago

Yes update of homebridge fixed this :).

matphillips commented 6 years ago

Hmm, I saw Mattin post a fix at the same time I posted that so I'm checking my setup, home bridge 0.4.22 and npm 4.2.0

I have the modified homebridge running to provide Amazon Echo support, so I ran sudo npm install -g https://github.com/NorthernMan54/homebridge and Homebridge is now 0.4.28

That temperature sensor is still broken though, so I guess I need to remove and re-add the bridge again. Either way, not a yeelight plugin issue so that's good.