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
560 stars 70 forks source link

Cannot get motion sensor state #141

Closed Jacksonbm1 closed 11 months ago

Jacksonbm1 commented 11 months ago

Hi! I've uploaded the sketch and can see info and the connection to my motion sensor in mqtt explorer, but the actual motion sensor state appears to not be there. IT will connect every time I reboot the esp32, but the state doesn't come through:

image
Jacksonbm1 commented 11 months ago

Fixed this. I did a few things including a full esp32 reset by flashing it with a blank file and then reflashing it with an updated file. I had been using the OTA flasher, but I'm not sure it was working properly. I also updated the poll time to be faster I think. Not sure what exactly fixed it.