AMoo-Miki / homebridge-switchmate-ble

Homebridge plugin for Switchmate light switches and power outlets (still testing)
6 stars 2 forks source link

Some outlets identify themselves incorrectly on discovery #6

Closed bwalls closed 4 years ago

bwalls commented 4 years ago

I have three of the power outlets that include two outlets, two USB power outlets, and a built-in night light.

When I initially set up the plugin, it correctly set up two of the devices as a single device in Home with two outlets and a light control. Very cool! Unfortunately, one of them was only identified as a single outlet.

I started over from scratch. Second time around, the one that was a single outlet before configured correctly, while the other two became single-switch devices. The single switch seems to correctly toggle Outlet 1 on the device.

Any way to reset a single switch to re-setup, other than starting over and hoping for better luck?

bwalls commented 4 years ago

The incorrectly identified ones generate the following error: [5/17/2020, 18:52:46] [SwitchmateBLE] Discovered SM56 Outlet:fe924304c84f (1 of 1) processLeAdvertisingReport: Caught illegal packet (buffer overflow): TypeError: Cannot read property 'getCharacteristic' of undefined [5/17/2020, 18:52:46] [SwitchmateBLE] Discovered SM12 Outlet:f174104ba95d (1 of 1) processLeAdvertisingReport: Caught illegal packet (buffer overflow): TypeError: Cannot read property 'getCharacteristic' of undefined

bwalls commented 4 years ago

The problem with identifying the power switch device correctly still exists, but with the brand new version of the Homebridge Config UI X ( v4.20.0), I was able to successfully delete the plugs incorrectly identifying as a single-outlet, until it correctly identified. It took a couple of removing the misidentified switch from cache and re-adding it, but everything seems to be working for the moment.