re-enable shower alert

This commit is contained in:
proddy
2021-04-04 13:38:49 +02:00
parent 7fa93a8de0
commit 4f239d035e
5 changed files with 39 additions and 18 deletions

View File

@@ -399,6 +399,17 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd) {
shell.invoke_command("show mqtt");
}
if (command == "shower_alert") {
shell.printfln(F("Testing Shower Alert..."));
run_test("boiler");
DynamicJsonDocument doc(EMSESP_JSON_SIZE_LARGE_DYN);
JsonObject json = doc.to<JsonObject>();
// device type, command, data
Command::call(EMSdevice::DeviceType::BOILER, "wwtapactivated", "false");
}
if (command == "fr120") {
shell.printfln(F("Testing adding a thermostat FR120..."));

View File

@@ -34,7 +34,9 @@ namespace emsesp {
// #define EMSESP_DEBUG_DEFAULT "mqtt2"
// #define EMSESP_DEBUG_DEFAULT "mqtt_nested"
// #define EMSESP_DEBUG_DEFAULT "ha"
#define EMSESP_DEBUG_DEFAULT "board_profile"
// #define EMSESP_DEBUG_DEFAULT "board_profile"
#define EMSESP_DEBUG_DEFAULT "shower_alert"
class Test {
public: