@@ -364,6 +364,15 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd) {
364
364
return ;
365
365
}
366
366
367
+ if (command == " board_profile" ) {
368
+ shell.printfln (F (" Testing board profile..." ));
369
+
370
+ shell.invoke_command (" system" );
371
+ shell.invoke_command (" set board_profile wemos" );
372
+ shell.invoke_command (" exit" );
373
+ shell.invoke_command (" call system settings" );
374
+ }
375
+
367
376
if (command == " boiler" ) {
368
377
shell.printfln (F (" Testing boiler..." ));
369
378
Mqtt::ha_enabled (false );
@@ -375,11 +384,17 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd) {
375
384
shell.invoke_command (" call boiler info" );
376
385
shell.invoke_command (" call system publish" );
377
386
387
+ // test all permutations
378
388
EMSESP::mqtt_.incoming (" ems-esp/boiler/wwonetime" , " 1" );
379
389
EMSESP::mqtt_.incoming (" ems-esp/boiler/wwonetime" , " 0" );
390
+ EMSESP::mqtt_.incoming (" ems-esp/boiler/wwonetime" , " on" );
380
391
EMSESP::mqtt_.incoming (" ems-esp/boiler/heatingtemp" , " 24" );
381
392
EMSESP::mqtt_.incoming (" ems-esp/boiler/wwonetime" , " test" ); // should fail
382
393
EMSESP::mqtt_.incoming (" ems-esp/boiler" , " {\" cmd\" :\" flowtemp\" ,\" id\" :0,\" data\" :22}" );
394
+ EMSESP::mqtt_.incoming (" ems-esp/boiler" , " {\" cmd\" :\" wwonetime\" ,\" id\" :0,\" data\" :1}" );
395
+ EMSESP::mqtt_.incoming (" ems-esp/boiler" , " {\" cmd\" :\" wwonetime\" ,\" id\" :0,\" data\" :\" off\" }" );
396
+ EMSESP::mqtt_.incoming (" ems-esp/boiler" , " {\" cmd\" :\" wwonetime\" ,\" hc\" :1,\" data\" :\" on\" }" );
397
+ EMSESP::mqtt_.incoming (" ems-esp/boiler" , " {\" cmd\" :\" wwonetime\" ,\" data\" :\" on\" ,\" hc\" :1}" );
383
398
384
399
shell.invoke_command (" show mqtt" );
385
400
}
0 commit comments