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

No device #123

Open superino1 opened 1 year ago

superino1 commented 1 year ago

Hi all, I tried to add my switchbot, but it doesn't add. I have downloaded all the libraries mentioned, I only see the WiFi signal esp32 sensor.

ahori commented 1 year ago

I had the same problem. In my case, the 'mqtt_main_topic' was left unchanged ('switchbot'). When I changed it to 'homeassistant', then it was fixed.

superino1 commented 1 year ago

Thank you, but for me, no work :(

iz8mbw commented 1 year ago

Did you edit the .ino file with the Mac Address of your Switchbot device?

superino1 commented 1 year ago

Did you edit the .ino file with the Mac Address of your Switchbot device?

Yes, I followed the guide

ahori commented 1 year ago

Well, did you check the MQTT broker status by using MQTT Explorer app? If so, may I check its output?

superino1 commented 1 year ago

Well, did you check the MQTT broker status by using MQTT Explorer app? If so, may I check its output?

With mqtt explorer I only see esp32, no switchbot

ahori commented 1 year ago

Here is mine; MQTT-Explorer-Screenshot.pdf

I guess your Bluetooth MAC addresses of switchbot devices are wrong and Switchbot-MQTT... cannot find switchbot devices.

superino1 commented 1 year ago

16804374787199185437875880036427

I guess your Bluetooth MAC addresses of switchbot devices are wrong and Switchbot-MQTT... cannot find switchbot devices.

My mistake, sorry, I didn't delete *.. Now I see it, but it doesn't work, it didn't take any commands and after a while it went to unavailable. Have switchbot one If click on switch nothing happens