YinHangCode / homebridge-mi-aqara

a homebridge plugin for XiaoMi Aqara plugin.
1.08k stars 154 forks source link

No-longer possible to control devices #274

Open arachnetech opened 5 years ago

arachnetech commented 5 years ago

I've been using this plugin for some time, generally without problems - and it's been invaluable. Unfortunately, recently it stopped being able to control devices (light switches, and the gateway light). This wasn't as the result of any update to homebridge-mi-aquara - it just stopped working.

It still shows the state of light switches and sensors perfectly - I just can't control anything through Homekit/Homebridge.

I've tried restarting Homebridge and the Gateway multiple times in different orders which has always solved this issue when it's occurred previously, but nothing has helped. I've checked that developer mode is enabled and even changed my developer mode password in the Xiaomi Home App, but that hasn't helped. I tried deleting my cachedAccessories file and no accessories were detected. Restoring my old cachedAccessories file I'm back to being able to view the state of switches and read sensors, but I again can't control anything.

Do you have any suggestions on how I can diagnose this so that I can get it working again? I'd really prefer not to have to recreate my entire Homekit configuration/environment again.

Anthony-ZhangJG commented 4 years ago

Same problem here...

arachnetech commented 4 years ago

This drove me crazy for weeks. I set up a completely new Homebridge environment on a virtual machine with homebridge-mi-aqara and tried to get it working with that, and failed. I then moved it back to my main Homebridge (running on a Raspberry Pi) so that I could at least use the sensors - and it suddenly started working again.

Still a complete mystery to me...

Anthony-ZhangJG commented 4 years ago

Here is my fix:

  1. Refresh the password(to control devices) in MI HOME app
  2. Note the new password
  3. Update the password in config.json
  4. Reboot raspberry Good luck!
arachnetech commented 4 years ago

Thanks. If it breaks again, I’ll try that!