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

Add possible JSON payload coming in via MQTT for use with Domoticz #121

Open sb37 opened 1 year ago

sb37 commented 1 year ago

Add possible JSON payload coming in via MQTT. This is needed for Domoticz. It used to send position requests for curtain using integers. Since the last update it uses {"position":< integer >} as payload via MQTT. Other commands like PAUSE are sent as STRINGs, not JSON.