mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-09 01:09:51 +03:00
fix for HA topics with invalid command formats - #728
This commit is contained in:
@@ -421,6 +421,9 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd) {
|
||||
EMSESP::mqtt_.incoming("ems-esp/thermostat_hc1", "heat");
|
||||
EMSESP::mqtt_.incoming("ems-esp/thermostat_hc2", "28.8");
|
||||
EMSESP::mqtt_.incoming("ems-esp/thermostat", "{\"cmd\":\"temp\",\"id\":2,\"data\":22}");
|
||||
|
||||
EMSESP::mqtt_.incoming("ems-esp/thermostat_hc3", "{\"cmd\":\"offsettemp\",\"data\":-3}");
|
||||
EMSESP::mqtt_.incoming("ems-esp/thermostat_hc3", "{\"cmd\":\"temp\",\"data\":-3}");
|
||||
}
|
||||
|
||||
if (command == "tc100") {
|
||||
|
||||
@@ -25,13 +25,13 @@
|
||||
|
||||
namespace emsesp {
|
||||
|
||||
// #define EMSESP_TEST_DEFAULT "thermostat"
|
||||
#define EMSESP_TEST_DEFAULT "thermostat"
|
||||
// #define EMSESP_TEST_DEFAULT "solar"
|
||||
// #define EMSESP_TEST_DEFAULT "mixer"
|
||||
// #define EMSESP_TEST_DEFAULT "web"
|
||||
// #define EMSESP_TEST_DEFAULT "general"
|
||||
// #define EMSESP_TEST_DEFAULT "boiler"
|
||||
#define EMSESP_TEST_DEFAULT "mqtt2"
|
||||
// #define EMSESP_TEST_DEFAULT "mqtt2"
|
||||
|
||||
class Test {
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user