homebridge-mi-aqara icon indicating copy to clipboard operation
homebridge-mi-aqara copied to clipboard

No-longer possible to control devices

Open arachnetech opened this issue 6 years ago • 4 comments

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.

arachnetech avatar Sep 18 '19 18:09 arachnetech

Same problem here...

Anthony-ZhangJG avatar Oct 27 '19 15:10 Anthony-ZhangJG

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

arachnetech avatar Oct 27 '19 15:10 arachnetech

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!

Anthony-ZhangJG avatar Oct 28 '19 06:10 Anthony-ZhangJG

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

arachnetech avatar Oct 28 '19 07:10 arachnetech