@@ -74,6 +74,18 @@ bool Test::run_test(const char * command, int8_t id) {
74
74
//
75
75
#ifdef EMSESP_STANDALONE
76
76
77
+ if (strcmp (command, " heat_exchange" ) == 0 ) {
78
+ EMSESP::logger ().info (" Testing heating exchange..." );
79
+
80
+ add_device (0x08 , 219 ); // Greenstar HIU/Logamax kompakt WS170
81
+
82
+ // [emsesp] boiler(0x08) -W-> Me(0x0B), UBAMonitorFastPlus(0xE4), data: 00 01 35 00 00 00 00 00 00 00 00 80 00 00 00 00 00 00 00 80 00 (offset 6)
83
+ uart_telegram ({0x08 , 0x00 , 0xE4 , 0x00 , //
84
+ 00 , 01 , 0x35 , 00 , 00 , 00 , 00 , 00 , 00 , 00 , 00 , 0x80 , 00 , 00 , 00 , 00 , 00 , 00 , 00 , 0x80 , 00 });
85
+
86
+ return true ;
87
+ }
88
+
77
89
if (strcmp (command, " 2thermostats" ) == 0 ) {
78
90
EMSESP::logger ().info (" Testing with multiple thermostats..." );
79
91
@@ -493,16 +505,24 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const
493
505
shell.printfln (" Testing RC310..." );
494
506
run_test (" 310" );
495
507
shell.invoke_command (" show devices" );
496
- shell.invoke_command (" show" );
508
+ shell.invoke_command (" show values " );
497
509
shell.invoke_command (" call system publish" );
498
510
shell.invoke_command (" show mqtt" );
499
511
ok = true ;
500
512
}
501
513
514
+ if (command == " heat_exchange" ) {
515
+ shell.printfln (" Testing heat exchange..." );
516
+ run_test (" heat_exchange" );
517
+ shell.invoke_command (" show devices" );
518
+ shell.invoke_command (" show values" );
519
+ ok = true ;
520
+ }
521
+
502
522
if (command == " 2thermostats" ) {
503
523
shell.printfln (" Testing multiple thermostats..." );
504
524
run_test (" 2thermostats" );
505
- shell.invoke_command (" show" );
525
+ shell.invoke_command (" show values " );
506
526
shell.invoke_command (" show devices" );
507
527
ok = true ;
508
528
}
@@ -571,7 +591,7 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const
571
591
572
592
run_test (" boiler" );
573
593
shell.invoke_command (" show devices" );
574
- shell.invoke_command (" show" );
594
+ shell.invoke_command (" show values " );
575
595
shell.invoke_command (" call boiler info" );
576
596
shell.invoke_command (" call system publish" );
577
597
@@ -610,7 +630,7 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const
610
630
// HC1
611
631
uart_telegram ({0x90 , 0x00 , 0xFF , 0x00 , 0x00 , 0x6F , 0x01 , 0x02 , 0x00 , 0xCF , 0x00 , 0xE6 });
612
632
613
- shell.invoke_command (" show" );
633
+ shell.invoke_command (" show values " );
614
634
shell.invoke_command (" show devices" );
615
635
ok = true ;
616
636
}
@@ -653,7 +673,7 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const
653
673
uart_telegram (
654
674
{0x08 , 0x0B , 0xC2 , 0 , 0x08 , 0xAC , 00 , 0x10 , 0x31 , 0x48 , 0x30 , 0x31 , 0x15 , 0x80 , 0x95 , 0x0B , 0x0E , 0x10 , 0x38 , 00 , 0x7F , 0xFF , 0xFF , 0xFF });
655
675
656
- // shell.invoke_command("show");
676
+ // shell.invoke_command("show values ");
657
677
658
678
ok = true ;
659
679
}
@@ -686,12 +706,12 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const
686
706
// Mqtt::nested_format(0);
687
707
688
708
emsesp::EMSESP::temperaturesensor_.test ();
689
- shell.invoke_command (" show" );
709
+ shell.invoke_command (" show values " );
690
710
shell.invoke_command (" call system publish" );
691
711
692
712
// rename
693
713
EMSESP::temperaturesensor_.update (" 01-0203-0405-0607" , " testtemperature" , 2 );
694
- shell.invoke_command (" show" );
714
+ shell.invoke_command (" show values " );
695
715
shell.invoke_command (" call system publish" );
696
716
ok = true ;
697
717
}
@@ -704,14 +724,14 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const
704
724
// Mqtt::nested_format(0);
705
725
706
726
emsesp::EMSESP::analogsensor_.test ();
707
- shell.invoke_command (" show" );
727
+ shell.invoke_command (" show values " );
708
728
// shell.invoke_command("call system publish");
709
729
// shell.invoke_command("show mqtt");
710
730
711
731
// rename
712
732
// bool update(uint8_t id, const std::string & name, int16_t offset, float factor, uint8_t uom, uint8_t type);
713
733
EMSESP::analogsensor_.update (36 , " analogtest" , 2 , 0.7 , 17 , 1 );
714
- shell.invoke_command (" show" );
734
+ shell.invoke_command (" show values " );
715
735
// shell.invoke_command("call system publish");
716
736
ok = true ;
717
737
}
@@ -1174,7 +1194,7 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const
1174
1194
shell.printfln (" Testing adding a thermostat FW120..." );
1175
1195
1176
1196
run_test (" thermostat" );
1177
- shell.invoke_command (" show" );
1197
+ shell.invoke_command (" show values " );
1178
1198
shell.invoke_command (" call system publish" );
1179
1199
1180
1200
EMSESP::mqtt_.incoming (" ems-esp/thermostat_hc1" , " heat" );
@@ -1243,7 +1263,7 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const
1243
1263
1244
1264
uart_telegram (" 30 00 FF 0A 02 6A 03" ); // SM100 pump off 0
1245
1265
1246
- shell.invoke_command (" show" );
1266
+ shell.invoke_command (" show values " );
1247
1267
ok = true ;
1248
1268
}
1249
1269
@@ -1676,7 +1696,7 @@ void Test::run_test(uuid::console::Shell & shell, const std::string & cmd, const
1676
1696
// check for error "No telegram type handler found for ID 0x255 (src 0x20)"
1677
1697
uart_telegram ({0xA0 , 0x00 , 0xFF , 0x00 , 0x01 , 0x55 , 0x00 , 0x1A });
1678
1698
1679
- shell.invoke_command (" show" );
1699
+ shell.invoke_command (" show values " );
1680
1700
shell.invoke_command (" call mixer info" );
1681
1701
shell.invoke_command (" call system publish" );
1682
1702
shell.invoke_command (" show mqtt" );
0 commit comments