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

Support for Humidifier #22

Closed charlyschulte closed 3 years ago

charlyschulte commented 3 years ago

Is it possible to use the SwitchBot Humidifier (https://www.switch-bot.com/products/switchbot-smart-humidifier) or is it possible to integrate the support?

would be really great

devWaves commented 3 years ago

humidifier support can probably be added but there are 2 things stopping me

1) switchbot has not released documentation for humidifer (from my knowledge) I need BLE info. The API info does not help Without the proper BLE commands etc, I would need to reverse engineer

2) I don't own a humidifier so I can't reverse engineer

If switchbot releases documentation for humidifier, sure I'll look at implementing it

devWaves commented 2 years ago

looks like the humidifier uses WIFI and BLE, but not sure yet if all can be done via BLE

https://support.switch-bot.com/hc/en-us/articles/360039939573-How-to-set-up-your-Humidifier

I will continue to investigate

DirkTas67 commented 2 years ago

I'm interested in this too, maybe @devWaves can find info in this github repo switchbotapi

devWaves commented 2 years ago

There is currently no BLE documentation for the Humidifier.

The api documentation is for cloud stuff, not BLE so it doesn't help

I will try to continue looking into this, but without documentation it will be guessing and reverse engineering, so no promises

With proper documentation it would be fairly easy to implement

If you confirm you can control the humidifier with BLE only then that helps.

To test this, turn your phone WIFI off. Unplug switchbot hub if you have one. Turn bluetooth on your phone on, then try controlling the humidifier from the switchbot app

if you can control it with BLE, then there is potential of supporting it