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
531 stars 66 forks source link

Not controlling switchbot #81

Closed Daniel-dev22 closed 2 years ago

Daniel-dev22 commented 2 years ago

On switchbot firmware 5.0 and now on 6.3 after startup when sending commands on or off by tapping the switch nothing happens it just reverts back to off and then within a few minutes becomes unavailable.

It connects to the switchbot as I can't use the app to control it meaning it's already connected to another device.

I'm using an esp32 wemos d1 mini.

I rebooted, got it to "turn on" the command worked and now it won't go back to off.

I also tried using button mode but that didn't seem to change the behavior.

Any ideas?

devWaves commented 2 years ago

most likely this https://github.com/devWaves/SwitchBot-MQTT-BLE-ESP32/issues/64

needs version 1.3.7 NimBLE atm

Daniel-dev22 commented 2 years ago

most likely this #64

needs version 1.3.7 NimBLE atm

Thanks for replying so fast. I will check that out tonight.

devWaves commented 2 years ago

@Danny2100 Just closing this issue as I believe NimBLE 1.3.7 fixes it. Just reopen if you still are having issues. Leave a comment if you can confirm you got it working please

Daniel-dev22 commented 2 years ago

@Danny2100 Just closing this issue as I believe NimBLE 1.3.7 fixes it. Just reopen if you still are having issues. Leave a comment if you can confirm you got it working please

I finally got around to reverting the NimBLE firmware to 1.3.7 and that worked, thank you. I tested it multiple times over a few hours which was never possible before.