mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
fix for HA topics with invalid command formats - #728
This commit is contained in:
@@ -414,6 +414,7 @@ void Thermostat::register_mqtt_ha_config_hc(uint8_t hc_num) {
|
||||
}
|
||||
|
||||
// for HA specifically when receiving over MQTT in the thermostat topic
|
||||
// e.g. thermostat_hc1
|
||||
// it could be either a 'mode' or a float value for a temperature. we try brute force both and see which one works.
|
||||
// return true if it parses the message correctly
|
||||
bool Thermostat::thermostat_ha_cmd(const char * message, uint8_t hc_num) {
|
||||
|
||||
Reference in New Issue
Block a user