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

status code 7 #138

Closed mf76130 closed 7 months ago

mf76130 commented 7 months ago

Hi, I did new install, i can receive all info of my Switchbot Bot.

switchbot esp32 = {"status":"activescanning"} bot switchbotone state = OFF status = {"status":"failed","value":7,"command":"PRESS"} battery = 100 rssi = -70 attributes = {"mode":"Press","state":"OFF","batt":100,"rssi":-70} set = PRESS esp32 rssi = -48 firmware = v7.1

It is set to Press mode and when i send Press i see the error code 7 in MQTT it shows connected and send command for a short time and then switches to { "status": "failed", "value": 7, "command": "PRESS" }

mf76130 commented 7 months ago

luckily i found that Bluetooth Proxy, which solves all issues for the switchbot bot https://esphome.io/projects/?type=bluetooth