Skip to content

Commit

Permalink
Fixes #35687 - Added missing initialization of ESAType to allow Water…
Browse files Browse the repository at this point in the history
…Heater to pass TC_DEM_2.1 (#35688)
  • Loading branch information
jamesharrow authored Sep 20, 2024
1 parent 72525fe commit 4842bfc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ CHIP_ERROR EVSEManufacturer::Init()

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

// Set the abs min and max power
dem->SetAbsMinPower(1200000); // 1.2KW
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ void FullWhmApplicationInit()
/* For Device Energy Management we need the ESA to be Online and ready to accept commands */

GetDEMDelegate()->SetESAState(ESAStateEnum::kOnline);
GetDEMDelegate()->SetESAType(ESATypeEnum::kWaterHeating);
GetDEMDelegate()->SetDEMManufacturerDelegate(*GetWhmManufacturer());

// Set the abs min and max power
Expand Down

0 comments on commit 4842bfc

Please sign in to comment.