extended test for ha and entities command

This commit is contained in:
proddy
2021-09-19 21:26:48 +02:00
parent 079a40cd32
commit b214d7a662
2 changed files with 10 additions and 5 deletions

View File

@@ -272,7 +272,7 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd) {
shell.printfln("Float test from %f to %s", test_float, result);
uint16_t temp;
double doub;
float doub;
temp = 0x0201; // decimal 513
doub = Helpers::round2(temp, 10); // divide by 10
shell.printfln("Round test from x%02X to %d to %f", temp, temp, doub);
@@ -463,6 +463,11 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd) {
shell.invoke_command("call system publish");
shell.invoke_command("show mqtt");
shell.invoke_command("call boiler fanwork");
shell.invoke_command("call thermostat seltemp"); // sensor.thermostat_hc1_selected_room_temperature
shell.invoke_command("call thermostat entities");
shell.invoke_command("call boiler entities");
}
if (command == "mqtt_nested") {
@@ -808,8 +813,8 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd) {
// fit it up, to its limit of the Json buffer (which is about 169 records)
for (uint8_t i = 0; i < 200; i++) {
snprintf_P(key, 7, "key%03d", i);
snprintf_P(value, 7, "val%03d", i);
snprintf(key, 7, "key%03d", i);
snprintf(value, 7, "val%03d", i);
doc[key] = value;
}
doc.shrinkToFit();

View File

@@ -34,11 +34,11 @@ namespace emsesp {
// #define EMSESP_DEBUG_DEFAULT "boiler"
// #define EMSESP_DEBUG_DEFAULT "mqtt2"
// #define EMSESP_DEBUG_DEFAULT "mqtt_nested"
// #define EMSESP_DEBUG_DEFAULT "ha"
#define EMSESP_DEBUG_DEFAULT "ha"
// #define EMSESP_DEBUG_DEFAULT "board_profile"
// #define EMSESP_DEBUG_DEFAULT "shower_alert"
// #define EMSESP_DEBUG_DEFAULT "310"
#define EMSESP_DEBUG_DEFAULT "render"
// #define EMSESP_DEBUG_DEFAULT "render"
// #define EMSESP_DEBUG_DEFAULT "api"
// #define EMSESP_DEBUG_DEFAULT "crash"