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

HomeAssistant warning "Payload is not supported" #31

Closed stast1 closed 3 years ago

stast1 commented 3 years ago

Log

2021-09-29 21:36:51 WARNING (MainThread) [homeassistant.components.mqtt.cover] Payload is not supported (e.g. open, closed, opening, closing, stopped): PAUSE

Please add stat_stopped: PAUSE to config topic to remove this warning.

client.publish((home_assistant_mqtt_prefix + "/cover/" + deviceName + "/config").c_str(), ("{\"~\":\"" + (curtainTopic + deviceName) + "\", " +
                 ...
                 + "\"stat_stopped\": \"PAUSE\", " +
                 ...

Thanks!

devWaves commented 3 years ago

okay that makes sense. I don't have curtains. You're the first to mention it. Thanks for the input

I will release a v6.3 later today

JoepWi commented 3 years ago

Thanks. I just didn't had the time yet to post this issue here!

devWaves commented 3 years ago

all good now. thanks for noticing the issue. fixed in v6.3