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
560
stars
70
forks
source link
Add possible JSON payload coming in via MQTT for use with Domoticz #121
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.
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.