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

Infrared support #33

Closed thematrixdev closed 3 years ago

thematrixdev commented 3 years ago

Is it possible to support infrared via Switchbot hub? Thanks.

devWaves commented 3 years ago

probably not. Switchbot also hasn't released any documentation for local communication with the Switchbot hub. It all uses their API through cloud

This only works for Bluetooth BLE switchbot devices. My guess is the hub only uses WIFI? not sure, I don't own one

I personally use a Broadlink RM Pro+ for IR and RF and it has been flawless once I enabled local control for it. I know that doesn't help though if you already have the Switchbot hub

fabiosoft commented 2 years ago

Maybe you can edit the code to subscribe to a topic and then redirect the payload to a IR led soldered onto the ESP32 to be BLE bridge and IR blaster at same time