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

Switch Bot Mini Hub support #78

Closed pmcdermid closed 2 years ago

pmcdermid commented 2 years ago

Just configured this for 3 door sensors (now planning to get more since i can integrate into HA better) and a temperature sensor. Would be great if we could then interact with the hub and various devices that have been added for example I have added my Air Conditioner and want to be able to say in HA WHEN door sensor closed ON week days AND Window Sensore is closed AND Temperature above 26C Turn On AC.

devWaves commented 2 years ago

I don't believe the hub supports BLE commands and can only be called from WiFi/internet/api

there also isnt documentation which makes things difficult for the BLE commands to send (if supported). reading BLE data is easy enough to reverse engineer but thats not what is needed here

pmcdermid commented 2 years ago

Thanks for replying @devWaves - I wasn't sure what options were available, i saw that it had a BLE MAC as well as its WI-FI but I guess that might just beto connect to the switch bot devices devices. I might go back and see if i can get the switchbot integration in HA to work and see if that offers any control for hub devices

devWaves commented 2 years ago

closing for now, but can be reopened if hub ever gets documentation for BLE control support