Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WaterHeater Management follow up - Adds Boost events, test script updates #34944

Merged
merged 227 commits into from
Aug 30, 2024
Merged
Show file tree
Hide file tree
Changes from 223 commits
Commits
Show all changes
227 commits
Select commit Hold shift + click to select a range
95dcc6c
Start addressing comments from issue #34565
PeterC1965 Aug 13, 2024
382fb34
Add WHM event test support
PeterC1965 Aug 13, 2024
f549eae
Adapt test 2.3 to check for events
PeterC1965 Aug 13, 2024
31fc9e7
Restyled by whitespace
restyled-commits Aug 13, 2024
84d166c
Restyled by clang-format
restyled-commits Aug 13, 2024
ca490eb
Restyled by autopep8
restyled-commits Aug 13, 2024
20fadc5
Fix failing CI build
PeterC1965 Aug 13, 2024
4677782
Restyled by clang-format
restyled-commits Aug 13, 2024
c5a759a
Fix some CI build issues
PeterC1965 Aug 13, 2024
8d3cbc6
Update src/app/clusters/water-heater-management-server/water-heater-m…
jamesharrow Aug 23, 2024
561e8a3
Add event support and fix tank percentage steps
PeterC1965 Aug 23, 2024
c8a0dda
Get tank percentage calculation and expected result correct
PeterC1965 Aug 23, 2024
658e1c0
Add a test for emergencyBoost=True being specified in the BoostStarte…
PeterC1965 Aug 24, 2024
6d7a389
Add and use a Energy_mWh type
PeterC1965 Aug 24, 2024
e4f417b
[NXP][docker] Update k32w1 SDK (#34927)
marius-alex-tache Aug 12, 2024
a2a5d5b
[ESP32] Delta OTA Feature (#29011)
PSONALl Aug 12, 2024
5b388eb
Fix typo in NXP dockerfile: missing backslash (#34931)
andy31415 Aug 12, 2024
f7692c0
Fixed test 1.6 and updated the scripts to work in CI. (#34918)
hicklin Aug 12, 2024
722a1e5
[NXP][k32w1] Fix docker image (#34935)
marius-alex-tache Aug 12, 2024
8e4ee97
Checking third party deps doesn't pass after someone fixes it (#34872)
woody-apple Aug 12, 2024
6cf254e
Implement the AndroidChipLogging (#34899)
yhoyoon Aug 12, 2024
ca95292
Syslog and logging tweaks (#34941)
ksperling-apple Aug 13, 2024
715c0d0
Add out-of-band msgs to add and remove Supported Areas and Maps (#34930)
hicklin Aug 13, 2024
994a2d9
Restructured folders in chip-energy-management-app - no code change (…
jamesharrow Aug 13, 2024
431a5e9
[NXP][config] Adding CMake support to build CHIP libs for NXP FreeRTO…
dinabenamar Aug 13, 2024
01058d6
[chip-tool] Adjust the maximum value of 'discriminator' to align with…
yufengwangca Aug 13, 2024
70bff19
[examples][lock-common] Remove iostream include (#34952)
andrei-menzopol Aug 13, 2024
82fddab
Fixed devcontainer creation for huge user ids (#34948)
XToripuru Aug 13, 2024
7c4851b
Enabling this for macOS Catalyst apps (#34956)
woody-apple Aug 13, 2024
10bf712
Add new common NXP dockerfile (#34947)
Martin-NXP Aug 13, 2024
8ab8cf5
Use timedInteraction for RevokeCommissioning in CCTRL_2_2 (#34957)
andy31415 Aug 13, 2024
1d6ecbb
[Fabric-Admin] Fix 'fabricsync sync-device' command always fails (#34…
yufengwangca Aug 13, 2024
31d5e7c
Fix user_params usage (#34964)
andy31415 Aug 14, 2024
4f4ad30
Fixed the discovery mode in esp32 factory script to a bitmap value in…
shripad621git Aug 14, 2024
77602ea
Fix typo in wait_for_user_input (#34965)
andy31415 Aug 14, 2024
170fafd
Remove wrong dependency to attribute id 82 (#34975)
bauerschwan Aug 14, 2024
74e5aa7
replacing "stringcase" python package with internal implementation + …
Alami-Amine Aug 14, 2024
e253c9b
[Tizen] Update Tizen SDK to 8.0 (#34171)
jlatusek Aug 14, 2024
08ab718
updated list of AcceptedCommands list for Thermostat cluster with Pre…
fessehaeve Aug 14, 2024
636b360
Update CCTRL 2.2 to not potentially use uninitialized variables in th…
andy31415 Aug 14, 2024
38fe751
[Python] Auto-import all clusters into the chip.clusters namespace (#…
arkq Aug 14, 2024
030cf7a
fix unused variable issue on non-macOS testing (#34970)
kiel-apple Aug 14, 2024
8854a03
Add constraint enforcement on responseTimeoutSeconds in commissioner …
andy31415 Aug 14, 2024
36869f8
Fix conversion error (#34989)
andy31415 Aug 14, 2024
3d63b55
Update ZAP to newest nightly to get fix for global types (#34996)
arkq Aug 14, 2024
e3cadb8
Create new ICD Manager in fabric-admin to service KeepActive Command …
tehampson Aug 14, 2024
da91d46
[Silabs]Provision storage sourceset (#34929)
jmartinez-silabs Aug 15, 2024
1197b90
[Telink] Update Docker image (Zephyr update) (#34980)
s07641069 Aug 15, 2024
8d15340
[DRLK] Bugfix: return INVALID_COMMAND when attempting to add/modify (…
jrhees-cae Aug 15, 2024
120c612
[NXP][k32w1] Rework reference apps (#34926)
marius-alex-tache Aug 15, 2024
42b18db
[Fabric-Sync] Simplify and update the fabric sync guide (#34993)
yufengwangca Aug 15, 2024
22d39bb
[Darwin] Duplicate / begin raising `MTRDeviceController` (#34832)
kiel-apple Aug 15, 2024
2cc3674
Update silabs docker image (#35011)
mkardous-silabs Aug 15, 2024
42bfb23
Make BRBINFO_4_1 require commissioning (#35017)
andy31415 Aug 15, 2024
ea76fbf
Disable TI builds from CI (#35024)
andy31415 Aug 15, 2024
8ba9981
Fix header usage in rvc (#35025)
andy31415 Aug 15, 2024
891f9eb
[Fabric-Admin] Add API to commission local bridge within its own fabr…
yufengwangca Aug 15, 2024
0d873ca
[Android] Fix mDNS discover ANR issue (#34968)
joonhaengHeo Aug 16, 2024
3453626
[Android] Implement Establish PASE Connection for SetupCode (#34971)
joonhaengHeo Aug 16, 2024
910c92f
Adding XPC protocols for darwin (#35029)
woody-apple Aug 16, 2024
e13f326
Set FabricFiltered to True when reading Fabrics. (#35023)
andy31415 Aug 16, 2024
4c6a347
Fix BRBINFO_4_1 to run further (#35026)
tehampson Aug 16, 2024
4130a18
fabric sync guide: fix device-remote-port (#35035)
doru91 Aug 16, 2024
8bfa03a
[TI] Update TI BLE Manager Task priority (#34852)
adabreuti Aug 16, 2024
7380cf7
Use RootEndponId for reading SupportsConcurrentConnection in CNET_1_4…
DejinChen Aug 16, 2024
3e3e0a1
[Telink] Disable Wi-Fi LPM during the OTA (#35006)
s07641069 Aug 16, 2024
5f9821b
[Telink] w91 remove not connected PWM channels (#35005)
s07641069 Aug 16, 2024
a6135df
Optimize RAM utilization for WriteHandler (#34992)
andy31415 Aug 16, 2024
c5cb31b
[Tizen] Implement GetThreadVersion() for Thread driver (#34976)
arkq Aug 16, 2024
235dbe8
Copy over data model flags (#34995)
andy31415 Aug 16, 2024
3c345a7
TC-IDM-10.5: Plumb through allow_provisional flag (#35037)
cecille Aug 16, 2024
9393f7a
Fixes the Service Area server's `SkipArea` handling (#35019)
hicklin Aug 16, 2024
d5ecb94
Minimal TC_SWTCH fixes for 1.4-TE2 (#34986)
tcarmelveilleux Aug 16, 2024
b0774f1
[MCORE.FS 1.3] make "app not found" easier to debug (#35038)
andy31415 Aug 16, 2024
c6f0e52
[FS Example] Update the FS Example apps to support fabric sync setup …
yufengwangca Aug 16, 2024
8db2520
Update compatible builds to docker version 74 (#35009)
s07641069 Aug 16, 2024
546d74c
Fix test code build issues when INET_CONFIG_TCP_ENDPOINT is set to fa…
pidarped Aug 16, 2024
2d76ecb
Prevent cancellation of task with timeout in asyncio runner. (#35045)
andy31415 Aug 17, 2024
55a5b57
TC-IDM-10.2: Fix error message (#35044)
cecille Aug 17, 2024
8c026ea
[Darwin] New XPC Service (#34961)
kiel-apple Aug 17, 2024
7b487af
[Darwin] more XPC service tweaks (#35048)
kiel-apple Aug 18, 2024
5b8cc8d
ModeSelect: Add setter API for SupportedModesManager. (#34809)
jadhavrohit924 Aug 18, 2024
bb635d1
Python testing: Fix reporting on setup_class error (#35016)
cecille Aug 18, 2024
299ea47
Fixing darwin crashes, and XPC invalidation (#35056)
woody-apple Aug 18, 2024
5fbb0cf
[TI] Switch Application for CC13x4_26x4 (#34916)
abiradarti Aug 19, 2024
9cef6d0
[Fabric-Admin] Fix the new added device failed to get reported (#35058)
yufengwangca Aug 19, 2024
bfddb46
Fix failed to sync device when using dynamic setupPIN (#35061)
yufengwangca Aug 19, 2024
5d945e3
improve `MTRDeviceController`/`_Concrete` (#35060)
kiel-apple Aug 19, 2024
bdaec48
Updates to BRBINFO_4_1 after issues discovered during TE2 (#35040)
tehampson Aug 19, 2024
042e0d2
Add fabric scoping to ECOINFO cluster attributes (#35022)
tehampson Aug 19, 2024
3704700
RVC DirectModeChange Feature Update for RVCCLEANM and RVCRUNM (#34994)
Harshith-GRL Aug 19, 2024
6785cfd
[Fabric-Admin] We should only start the reverse commission process if…
yufengwangca Aug 19, 2024
b2d7e65
[ICD] Add ICDM 3.2 Python Certification Script (#34782)
mkardous-silabs Aug 19, 2024
e51beb2
[FabricAdmin] Refactor FS specific attribute handlings out of general…
yufengwangca Aug 19, 2024
3c2b14a
Move step (#35070)
rbultman Aug 20, 2024
7eaed4a
Use PRIu32 instead of %u to print unsigned integer (#35069)
jadhavrohit924 Aug 20, 2024
b2660e0
soc: riscv: telink_b9x, telink_w91: Auto calculation of SETTINGS_NVS_…
BorysNykytiuk Aug 20, 2024
9ffa0e6
riscv: telink: tlsr9528a_4m_flash.overlay (#34945)
s07641069 Aug 20, 2024
360bfbd
[Silabs] Update Silabs sdks version and related enablement (#35083)
jmartinez-silabs Aug 20, 2024
fbe472d
In TC-ICDM-3.4 make sure that a new session will be used after DUT re…
fessehaeve Aug 20, 2024
d41ab8d
[Darwin] MTRDeviceController_XPC client protocol xpc interface fix (#…
jtung-apple Aug 20, 2024
e1faf77
Fix SkipArea logic and removed the use of memcpy (#35075)
hicklin Aug 20, 2024
09a606e
Move delegate management into shared MTRDevice super-class. (#35084)
bzbarsky-apple Aug 20, 2024
2e3bc4e
[Darwin] MTRDevice_XPC delegate callbacks need to hold lock before _c…
jtung-apple Aug 20, 2024
8c6ea99
Add plumbing that allows fabric-bridge endpoints to report CADMIN att…
tehampson Aug 20, 2024
c5d64c5
Make the MTRDevice ivars protected. (#35101)
bzbarsky-apple Aug 20, 2024
05a27cf
IDM-12.1: Also dump to log (#35098)
cecille Aug 20, 2024
292649b
Address post merge comment (#35103)
tehampson Aug 20, 2024
e2fb3f9
Update default file header for Matter.framework files. (#35106)
bzbarsky-apple Aug 21, 2024
af5bf3f
Add availability annotations to new XPC protocols. (#35107)
bzbarsky-apple Aug 21, 2024
daa3146
TC-IDM-10.2: Add check for MACL (#35086)
cecille Aug 21, 2024
74117e8
[Darwin] New XPC bits need to initialize properly (#35110)
jtung-apple Aug 21, 2024
566a94b
Revert "Enabling this for macOS Catalyst apps (#34956)" (#35117)
ksperling-apple Aug 21, 2024
ee60f72
[Fabric-Sync] Update the FS setup guide to wait for reverse commissio…
yufengwangca Aug 21, 2024
65f3dff
[Fabric-Sync] Add VID/PID fields to IPC method CommissionNode (#35116)
yufengwangca Aug 21, 2024
13cf410
Revert "TC-IDM-10.2: Add check for MACL (#35086)" (#35111)
cecille Aug 21, 2024
b83ff15
Fix UnregisterAllCommandHandlersForEndpoint to work correctly. (#35100)
bzbarsky-apple Aug 21, 2024
c5186a2
Add missing CFLAGS to instrument things for fuzzers. (#35082)
bzbarsky-apple Aug 21, 2024
87241ce
adding mandatory endpointComposition data to XML for ZAP to consume (…
paulr34 Aug 21, 2024
01701ab
Colorcontrol xml file sync with specs (#33612)
Thirsrin Aug 21, 2024
9fda39a
Update Darwin availability annotations. (#35108)
bzbarsky-apple Aug 21, 2024
f3bba7d
Make descriptions for MTRDevice clearly say whether it's the XPC vers…
bzbarsky-apple Aug 21, 2024
f726fad
removed invalid symlinks (#35129)
Sarthak-Shaha Aug 21, 2024
946e6a6
Update MCORE_FS_1_2 to latest testplan (#35097)
tehampson Aug 21, 2024
929c08e
Removed Arithmetics operations relying on Unit test cluster from TC_S…
lpbeliveau-silabs Aug 21, 2024
39402ec
Add expiry to KeepActive as per spec into fabric-admin example (#35099)
tehampson Aug 21, 2024
b9d5afe
Move TC_BR_5 to the right directory (#35128)
tehampson Aug 21, 2024
571e924
Update the preset handle field in the SetActivePresetRequest c… (#35105)
nivi-apple Aug 21, 2024
f0f6bbb
Fix fabric-bridge is accidentally added into sync list (#35132)
yufengwangca Aug 21, 2024
08dfee3
Yaml scripts update (#35093)
Harshith-GRL Aug 21, 2024
3b5bb01
[Darwin] XPC interface for invoke needs to take into account the repl…
jtung-apple Aug 21, 2024
2b96ea9
Fix Darwin to handle renames of Color Control data types. (#35135)
bzbarsky-apple Aug 21, 2024
ae613bd
Re-route deprecated android casting APIs to new ones (#35136)
sharadb-amazon Aug 22, 2024
22bc3f4
Remove subscription establishment bits from the MTRDevice base class.…
bzbarsky-apple Aug 22, 2024
980245f
Enhance chip-tool's formatting for some IDs (#35088)
XToripuru Aug 22, 2024
65d9293
Truncate map and area names (#35127)
hicklin Aug 22, 2024
c3045ef
Add new CHIP_CONFIG_ADDRESS_RESOLVE_MIN_LOOKUP_TIME_MS and (#35102)
s-mcclain Aug 22, 2024
17efaa1
Fix CHIP REPL tests runner after changes in e407d40 (#34453)
arkq Aug 22, 2024
a025211
use CHIP_DEVICE_CONFIG_FAILSAFE_EXPIRY_LENGTH_SEC define to arme the …
jmartinez-silabs Aug 22, 2024
394ed3f
Remove unnecessary invokeCommand overrides from MTRDevice_Concrete. (…
bzbarsky-apple Aug 22, 2024
ed1c76f
Remove readAttributeWithEndpointID implementation from MTRDevice. (#3…
bzbarsky-apple Aug 22, 2024
00d233b
Fix paths for fabric apps compiled with build_examples.py (#35123)
arkq Aug 22, 2024
95c72c4
[Fabric-Sync] Allow to specify custom port in fabric-bridge (#35146)
arkq Aug 22, 2024
98b1d90
[Darwin] XPC invoke should implement bottom-most method (#35159)
jtung-apple Aug 22, 2024
b82fab3
Update PositionTag and AreaDesc field names (#35094)
hicklin Aug 22, 2024
e00576c
AccountLogin Login/Logout command support (#34162)
mthiesc Aug 22, 2024
a4c86ea
[Fabric-Sync] Symplify the build instructions with build_examples.py …
yufengwangca Aug 22, 2024
5c43b7f
Fix init of all TC-OCC-* tests (#35001)
tcarmelveilleux Aug 22, 2024
fdc8cce
Remove DuplicatedAreas error (#35126)
hicklin Aug 23, 2024
bc0bcb0
Mark return types nullable in MTRDevice_XPC when nil can be returned.…
bzbarsky-apple Aug 23, 2024
2d25404
check (#34998)
cecille Aug 23, 2024
a49ce7a
minimal_mdns: Fix filter for Compressed Fabric Id when browsing opera…
wqx6 Aug 23, 2024
3a0debe
Docs re-organization (#34765)
cecille Aug 23, 2024
728fcb1
[HVAC] Sync atomic write error order with spec (#34936)
hasty Aug 23, 2024
0662dae
esp32: fix compiling when enabling ble commissioner (#35085)
wqx6 Aug 23, 2024
265d5b3
Remove writeAttributeWithEndpointID implementation from MTRDevice. (#…
bzbarsky-apple Aug 23, 2024
c21ee45
Address followup issues for preset/atomic-write implementation. (#35175)
bzbarsky-apple Aug 23, 2024
9222c8a
[Darwin] Enable taking assertion on MTRDeviceController (#35148)
anush-apple Aug 23, 2024
93b8be7
Cleanup/updates tied with latest sdk update (#35140)
jmartinez-silabs Aug 23, 2024
7a217ae
[Silabs] Adding the gn build header for the lwip IPv4 and RS9116 (#35…
chirag-silabs Aug 23, 2024
fe26d1f
[Silabs] [WiFi] Fixing the retry logic for the WiFi Devices (#34225)
chirag-silabs Aug 23, 2024
1fa5848
Fixed missing trailing zero in example documentation (#35149)
wickywaka Aug 23, 2024
ed61f98
[Silabs] Fixing the build for the custom boards on NCP (#35055)
chirag-silabs Aug 24, 2024
4bc855e
[Darwin] Adding missing property on MTRDeviceController_XPC (#35188)
anush-apple Aug 24, 2024
6fff8da
[Fabric-Bridge] Add state machine to CommissionerControlDelegate to g…
yufengwangca Aug 26, 2024
3aefbef
Move the constraint check for number of presets not to exceed the num…
nivi-apple Aug 26, 2024
4b56861
TV App - Add validation for invalid product and vendor id. (#35157)
lazarkov Aug 26, 2024
2bbc98c
[Darwin] Find cached controllers when creating existing controller on…
anush-apple Aug 26, 2024
23a2c55
Remove handling of the unitTestInject* bits in base MTRDevice. (#35180)
bzbarsky-apple Aug 27, 2024
625a2a0
darwin-framework-tool: Add support for paseonly pairing (#35206)
ksperling-apple Aug 27, 2024
762dd69
esp32: update esp_rcp_update version to 1.2.0 (#35114)
wqx6 Aug 27, 2024
7bdc5a7
Fix the PICS code for atomic response to be lower case and update the…
nivi-apple Aug 27, 2024
1c13367
TC-LVL-2.3: Update expected number of reports (#35179)
cecille Aug 27, 2024
da91a8f
[Telink] Add b95 flash overlay (#35133)
s07641069 Aug 27, 2024
f22815d
riscv: telink: add ota event. (#35118)
s07641069 Aug 27, 2024
48f2651
Added changes for ble connection interval (#35198)
shgutte Aug 27, 2024
c6977dd
Add missing occupancy event (#35220)
tcarmelveilleux Aug 27, 2024
48c7ec8
Managed ACL: Add AccessRestrictionList support (#34932)
tleacmcsa Aug 27, 2024
1a895a4
Adding TimeoutMs to KeepActive command (#35154)
tehampson Aug 27, 2024
30b8027
Remove RemovedOn attribute from ECOINFO cluster (#34988)
tehampson Aug 27, 2024
399a09c
fix #35210: tc-icdm-2.1, 3.1, 3.4 (#35227)
yinyihu-silabs Aug 27, 2024
ee03924
[HVAC] Set thermostat delegate in thermostat app (#35230)
hasty Aug 27, 2024
a696416
[HVAC] Handle null BuiltIn field on Preset write according to spec (#…
hasty Aug 27, 2024
39a4dc5
run a regen (#35233)
jmartinez-silabs Aug 27, 2024
3efc706
Update ColorControl bounds based on spec fixes (#35156)
tcarmelveilleux Aug 27, 2024
38101a2
Add plumbing in FS example for TimeoutMs parameter in KeepActive (#35…
tehampson Aug 27, 2024
3465127
Updated BRBINFO-4-1 test after timeoutMs added (#35160)
tehampson Aug 27, 2024
21171f3
[Chef] BasicVideoPlayer: Fix MediaInput and MediaPlayback not reporti…
erwinpan1 Aug 27, 2024
e35c452
Add water heater to energy management app (#34886)
jamesharrow Aug 28, 2024
37f06e4
Darwin: Improve CommissioningType naming (#35209)
ksperling-apple Aug 28, 2024
6be9be4
THNETDIR and WIFINM: Align with latest spec and other small fixes (#3…
ksperling-apple Aug 28, 2024
950ec01
Re-run zap_convert_all on the tree. (#35235)
bzbarsky-apple Aug 28, 2024
fc03e80
increasing the chip task size for the 917soc (#35213)
chirag-silabs Aug 28, 2024
892d76e
Merge branch 'master' into whm-follow-up-part1
PeterC1965 Aug 28, 2024
4d1cd68
Restyled by clang-format
restyled-commits Aug 28, 2024
5ee6079
Adding some useful debug prints
PeterC1965 Aug 29, 2024
1a9b7af
Update following code review comments on test spec
PeterC1965 Aug 29, 2024
b420937
Update following code review comments on test spec
PeterC1965 Aug 29, 2024
0fcfb23
Update examples/energy-management-app/energy-management-common/water-…
PeterC1965 Aug 29, 2024
4e5f15a
Update following code review comments on test spec
PeterC1965 Aug 29, 2024
d463f0d
Update src/python_testing/TC_EWATERHTR_2_2.py
jamesharrow Aug 29, 2024
5c6532b
Update following code review comment
PeterC1965 Aug 29, 2024
8728b07
Update src/app/clusters/water-heater-management-server/water-heater-m…
jamesharrow Aug 29, 2024
1d0dcbc
Merge branch 'upstream-master' into whm-follow-up-part1
jamesharrow Aug 29, 2024
88fe236
Fixes TP #4504 - Cannot run TC_EWATERHTR_2.1 under test harness using…
jamesharrow Aug 29, 2024
6353a8d
Add some energy specific types
PeterC1965 Aug 29, 2024
aaf90f4
Merge remote-tracking branch 'PeterC1965/whm-follow-up-part1' into wh…
jamesharrow Aug 29, 2024
713fb2c
Removed unused PIXIT args in test-runner header
jamesharrow Aug 29, 2024
c479db2
Fix issue with step 3
PeterC1965 Aug 29, 2024
6cc366f
Removed duplicate steps 10a/10b and aligned to test plan.
jamesharrow Aug 29, 2024
6c85ea2
Update src/python_testing/TC_EWATERHTR_2_3.py
jamesharrow Aug 29, 2024
00431de
Apply suggestions from code review
jamesharrow Aug 29, 2024
5da781c
Apply suggestions from code review
jamesharrow Aug 29, 2024
5a5f9cb
Apply suggestions from code review
jamesharrow Aug 29, 2024
4820a7e
Apply suggestions from code review
jamesharrow Aug 29, 2024
7c549c3
Fix code review comments - Changed temperature types to int16_t (sign…
jamesharrow Aug 29, 2024
fab10c7
Merge branch 'master' into whm-follow-up-part1
jamesharrow Aug 29, 2024
f5de5aa
Restyled by whitespace
restyled-commits Aug 29, 2024
28c6c8e
Merge remote-tracking branch 'PeterC1965/whm-follow-up-part1' into wh…
jamesharrow Aug 29, 2024
82e120e
Update to ESP32 featureMap to avoid static cast per review comment.
jamesharrow Aug 29, 2024
a614aa0
Fixed potential divide by 0 - Update examples/energy-management-app/e…
jamesharrow Aug 29, 2024
3be921d
Restyled by clang-format
restyled-commits Aug 29, 2024
82a23f4
Merge remote-tracking branch 'PeterC1965/whm-follow-up-part1' into wh…
jamesharrow Aug 29, 2024
aae3b27
Update examples/energy-management-app/energy-management-common/water-…
jamesharrow Aug 30, 2024
66b152a
Quick fix - needs to be Active not Inactive - Update src/python_testi…
jamesharrow Aug 30, 2024
ca55a12
Updated the test steps to align to feedback on Test Plan PR.
jamesharrow Aug 30, 2024
bde9bf9
Another tweak to add 'inclusive' and align to test plan comment.
jamesharrow Aug 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ class WaterHeaterManagementDelegate : public WaterHeaterManagement::Delegate
* SHALL be rejected with appropriate error.
*/
Protocols::InteractionModel::Status HandleBoost(uint32_t duration, Optional<bool> oneShot, Optional<bool> emergencyBoost,
Optional<int16_t> temporarySetpoint, Optional<chip::Percent> targetPercentage,
Optional<chip::Percent> targetReheat) override;
Optional<int16_t> temporarySetpoint, Optional<Percent> targetPercentage,
Optional<Percent> targetReheat) override;

/**
* @brief Delegate should implement a handler to cancel a boost command.
Expand All @@ -121,7 +121,7 @@ class WaterHeaterManagementDelegate : public WaterHeaterManagement::Delegate
BitMask<WaterHeaterHeatSourceBitmap> GetHeaterTypes() override;
BitMask<WaterHeaterHeatSourceBitmap> GetHeatDemand() override;
uint16_t GetTankVolume() override;
int64_t GetEstimatedHeatRequired() override;
Energy_mWh GetEstimatedHeatRequired() override;
Percent GetTankPercentage() override;
BoostStateEnum GetBoostState() override;

Expand All @@ -130,7 +130,7 @@ class WaterHeaterManagementDelegate : public WaterHeaterManagement::Delegate
void SetHeaterTypes(BitMask<WaterHeaterHeatSourceBitmap> heaterTypes);
void SetHeatDemand(BitMask<WaterHeaterHeatSourceBitmap> heatDemand);
void SetTankVolume(uint16_t tankVolume);
void SetEstimatedHeatRequired(int64_t estimatedHeatRequired);
void SetEstimatedHeatRequired(Energy_mWh estimatedHeatRequired);
void SetTankPercentage(Percent tankPercentage);
void SetBoostState(BoostStateEnum boostState);

Expand All @@ -152,19 +152,22 @@ class WaterHeaterManagementDelegate : public WaterHeaterManagement::Delegate
*
* @param waterTemperature The water temperature in 100th's Celsius
*/
void SetWaterTemperature(uint16_t waterTemperature);
void SetWaterTemperature(int16_t waterTemperature);

/**
* @brief Set the target water temperature of the tank
*
* @param targetWaterTemperature The water temperature in 100th's Celsius
*/
void SetTargetWaterTemperature(uint16_t targetWaterTemperature);
void SetTargetWaterTemperature(int16_t targetWaterTemperature);

/**
* @brief Determine whether the heating sources need to be turned on or off
* @brief Determine whether the heating sources need to be turned on or off or left unchanged.
*
* @return Success if the heating was successfully turned on or off or left unchanged otherwise an error
* code is returned if turning the heating on or off failed.
*/
Protocols::InteractionModel::Status CheckIfHeatNeedsToBeTurnedOnOrOff();
Protocols::InteractionModel::Status ChangeHeatingIfNecessary();

/**
* @brief Static timer callback for when Boost timer expires.
Expand Down Expand Up @@ -194,9 +197,34 @@ class WaterHeaterManagementDelegate : public WaterHeaterManagement::Delegate
* @param replacedWaterTemperature The temperature of the
* percentageReplaced water.
*/
void DrawOffHotWater(chip::Percent percentageReplaced, uint16_t replacedWaterTemperature);
void DrawOffHotWater(Percent percentageReplaced, int16_t replacedWaterTemperature);

/**
* Set the temperature of the cold water that fills the tank as the hot water
* is drawn off.
*
* @param coldWaterTemperature The cold water temperature in 100th of a C
*/
void SetColdWaterTemperature(int16_t coldWaterTemperature);

private:
/**
* Return the target temperature.
* If a boost command is in progress and has a mBoostTemporarySetpoint value use that as the
* target temperature otherwise use the temperature set via SetTargetWaterTemperature().
*
* @return the target temperature
*/
int16_t GetActiveTargetWaterTemperature() const;

/**
* @brief Calculate the percentage of the water in the tank at the target
* temperature.
*
* @return Percentage of water at the target temperature
*/
uint8_t CalculateTankPercentage() const;

/**
* @brief Determine whether heating needs to be turned on or off or left as
* is.
Expand All @@ -223,13 +251,13 @@ class WaterHeaterManagementDelegate : public WaterHeaterManagement::Delegate
WhmManufacturer * mpWhmManufacturer;

// Target water temperature in 100ths of a C
uint16_t mTargetWaterTemperature;
int16_t mTargetWaterTemperature;

// Actual water temperature in 100ths of a C
uint16_t mWaterTemperature;
int16_t mWaterTemperature;

// The % of water at temperature mReplacedWaterTemperature
uint16_t mReplacedWaterTemperature;
// The cold water temperature in 100ths of a C
int16_t mColdWaterTemperature;

// Boost command parameters

Expand All @@ -253,7 +281,7 @@ class WaterHeaterManagementDelegate : public WaterHeaterManagement::Delegate
// amount of water that SHALL be heated by this Boost command before the
// heater is switched off. This field is optional, however it SHALL be
// included if the TargetReheat field is included.
Optional<chip::Percent> mBoostTargetPercentage;
Optional<Percent> mBoostTargetPercentage;

// If the tank supports the TankPercent feature, and the heating by this
// Boost command has ceased because the TargetPercentage of the water in the
Expand All @@ -266,7 +294,7 @@ class WaterHeaterManagementDelegate : public WaterHeaterManagement::Delegate
// heat back up to 80% of hot water. If this field and the OneShot field
// were both omitted, heating would begin again after any water draw which
// reduced the TankPercentage below 80%.
Optional<chip::Percent> mBoostTargetReheat;
Optional<Percent> mBoostTargetReheat;

// Track whether the water temperature has reached the water temperature
// specified in the boost command. Used in conjunction with the boost
Expand Down Expand Up @@ -299,7 +327,7 @@ class WaterHeaterManagementDelegate : public WaterHeaterManagement::Delegate
// taking the specific heat capacity of water (4182 J/kg °C) and by knowing
// the current temperature of the water, the tank volume and target
// temperature.
int64_t mEstimatedHeatRequired;
Energy_mWh mEstimatedHeatRequired;

// This attribute SHALL indicate an approximate level of hot water stored in
// the tank, which may help consumers understand the amount of hot water
Expand Down
Loading
Loading