mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-07 00:09:51 +03:00
update test for 196
This commit is contained in:
@@ -471,10 +471,38 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd) {
|
|||||||
shell.invoke_command("call boiler entities");
|
shell.invoke_command("call boiler entities");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (command == "dv") {
|
||||||
|
shell.printfln(F("Testing device value rendering"));
|
||||||
|
|
||||||
|
Mqtt::ha_enabled(true);
|
||||||
|
// Mqtt::ha_enabled(false);
|
||||||
|
|
||||||
|
Mqtt::nested_format(1);
|
||||||
|
Mqtt::send_response(false);
|
||||||
|
|
||||||
|
run_test("boiler");
|
||||||
|
run_test("thermostat");
|
||||||
|
|
||||||
|
// shell.invoke_command("show");
|
||||||
|
|
||||||
|
// change a value to null/bogus/dormant
|
||||||
|
// homeassistant/sensor/ems-esp/boiler_wwseltemp/config
|
||||||
|
shell.invoke_command("call boiler wwseltemp");
|
||||||
|
shell.invoke_command("call system publish");
|
||||||
|
|
||||||
|
// Boiler -> Me, UBAParameterWW(0x33)
|
||||||
|
// wwseltemp = goes from 52 degrees (0x34) to void (0xFF)
|
||||||
|
uart_telegram({0x08, 0x0B, 0x33, 0x00, 0x08, 0xFF, 0xFF, 0xFB, 0x00, 0x28, 0x00, 0x00, 0x46, 0x00, 0xFF, 0xFF, 0x00});
|
||||||
|
|
||||||
|
shell.invoke_command("call boiler wwseltemp");
|
||||||
|
shell.invoke_command("call system publish");
|
||||||
|
|
||||||
|
// shell.invoke_command("show mqtt");
|
||||||
|
}
|
||||||
|
|
||||||
if (command == "api") {
|
if (command == "api") {
|
||||||
shell.printfln(F("Testing API with MQTT and REST, standalone"));
|
shell.printfln(F("Testing API with MQTT and REST, standalone"));
|
||||||
|
|
||||||
|
|
||||||
Mqtt::ha_enabled(true);
|
Mqtt::ha_enabled(true);
|
||||||
// Mqtt::ha_enabled(false);
|
// Mqtt::ha_enabled(false);
|
||||||
|
|
||||||
|
|||||||
@@ -39,8 +39,10 @@ namespace emsesp {
|
|||||||
// #define EMSESP_DEBUG_DEFAULT "shower_alert"
|
// #define EMSESP_DEBUG_DEFAULT "shower_alert"
|
||||||
// #define EMSESP_DEBUG_DEFAULT "310"
|
// #define EMSESP_DEBUG_DEFAULT "310"
|
||||||
// #define EMSESP_DEBUG_DEFAULT "render"
|
// #define EMSESP_DEBUG_DEFAULT "render"
|
||||||
#define EMSESP_DEBUG_DEFAULT "api"
|
// #define EMSESP_DEBUG_DEFAULT "api"
|
||||||
// #define EMSESP_DEBUG_DEFAULT "crash"
|
// #define EMSESP_DEBUG_DEFAULT "crash"
|
||||||
|
#define EMSESP_DEBUG_DEFAULT "dv"
|
||||||
|
|
||||||
|
|
||||||
class Test {
|
class Test {
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user