devWaves / SwitchBot-MQTT-BLE-ESP32

Allows for multiple SwitchBot bots and curtains to be controlled via MQTT sent to ESP32. ESP32 will send BLE commands to switchbots and return MQTT responses to the broker. Also supports Temperature, Motion, Contact sensors
MIT License
549 stars 68 forks source link

Can't control the Plug Mini. Serial log: Failed to connect, deleted client #115

Closed tobernguyen closed 1 year ago

tobernguyen commented 1 year ago

Hi,

I followed all the instructions and used PlatformIO to flash to ESP32. I got the Plug Mini to appear in HA. But I couldn't control (turn on/off) the plug. My ESP chip is is ESP-WROOM-32. image

I set the printSerialOutputForDebugging to true to debug. When I send a command from HA (eg, turn off the plug). These logs get printed out constantly

Device: 
big_monitor
Device value: 
OFF
Try to connect. Try a reconnect first...
New client created
lld_pdu_get_tx_flush_nb HCI packet count mismatch (1, 2)
Failed to connect, deleted client
Try to connect. Try a reconnect first...
New client created
Failed to connect, deleted client
Try to connect. Try a reconnect first...
New client created
Failed to connect, deleted client
Try to connect. Try a reconnect first...
New client created
Failed to connect, deleted client
Try to connect. Try a reconnect first...
New client created
lld_pdu_get_tx_flush_nb HCI packet count mismatch (1, 2)
Failed to connect, deleted client
Try to connect. Try a reconnect first...
New client created
lld_pdu_get_tx_flush_nb HCI packet count mismatch (1, 2)
Failed to connect, deleted client
Try to connect. Try a reconnect first...

So I'm guessing this is a problem with connecting to the plug via bluetooth? The plug firmware is v1.5

devWaves commented 1 year ago

do u have the first version of the plug ( no homekit support) or the newer one that has homekit support?

mine is the 1st version and seems to work fine