Skip to content

Commit 5d69f42

Browse files
committed
Fixes project-chip#35687 - Added missing initialization of ESAType to allow WaterHeater to pass TC_DEM_2.1
1 parent 8318df9 commit 5d69f42

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

examples/energy-management-app/energy-management-common/energy-evse/src/EVSEManufacturerImpl.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ CHIP_ERROR EVSEManufacturer::Init()
7070

7171
/* For Device Energy Management we need the ESA to be Online and ready to accept commands */
7272
dem->SetESAState(ESAStateEnum::kOnline);
73+
dem->SetESAType(ESATypeEnum::kEvse);
7374

7475
// Set the abs min and max power
7576
dem->SetAbsMinPower(1200000); // 1.2KW

examples/energy-management-app/energy-management-common/water-heater/src/WaterHeaterMain.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ void FullWhmApplicationInit()
7373
/* For Device Energy Management we need the ESA to be Online and ready to accept commands */
7474

7575
GetDEMDelegate()->SetESAState(ESAStateEnum::kOnline);
76+
GetDEMDelegate()->SetESAType(ESATypeEnum::kWaterHeating);
7677
GetDEMDelegate()->SetDEMManufacturerDelegate(*GetWhmManufacturer());
7778

7879
// Set the abs min and max power

0 commit comments

Comments
 (0)