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

Single Wireless Switch not showing in Home App

Open jayashleysmith opened this issue 5 years ago • 2 comments

Double Wireless Switches are showing up just fine and can be assigned, But i've recently added two Single wireless switches to muy miHome gateway and these do not show up in Home App after multiple restarts.

Any help would be awesome.

jayashleysmith avatar Feb 20 '19 07:02 jayashleysmith

Looks like it does not support the upgraded version of 86 Single Wireless Switch.

I took a look at the related code for single wireless switch, actually the code for upgraded version (double press) are already there.

If you are able / willing to fiddle some code, and don't want to wait until the next version update. Then you can:

  1. Enable ”Manage“ feature. (https://github.com/YinHangCode/homebridge-mi-aqara#manage-configuration)
  2. Go to the manage page and look for the ”Model" name for your single switch. For me, it is "remote.b186acn01".
  3. Edit "config/node_modules/homebridge-mi-aqara/parser/SingleButton86Parser.js".
  4. On line 19, add your model name into the array.
  5. On line 65, add a value "1" to the array of "validValues".
  6. Save and reboot HB. Your device should show up now.