Skip to content

Conversation

@SuGlider
Copy link
Collaborator

@SuGlider SuGlider commented Dec 3, 2025

Description of Change

Adds a new Matter Endpoint: Water Leak Detector, with related example, readme and documentation.

Test Scenarios

ESP32-S3 with the provided example. CI and execution Logs.

Related links

None

@SuGlider SuGlider added this to the 3.3.0 milestone Dec 3, 2025
@SuGlider SuGlider self-assigned this Dec 3, 2025
@SuGlider SuGlider added the Area: Matter Issues and Feature Request about Matter Protocol label Dec 3, 2025
@SuGlider SuGlider requested a review from P-R-O-C-H-Y December 3, 2025 20:17
@SuGlider SuGlider moved this from Todo to In Progress in Arduino ESP32 Core Project Roadmap Dec 3, 2025
@github-actions
Copy link
Contributor

github-actions bot commented Dec 3, 2025

Warnings
⚠️

Some issues found for the commit messages in this PR:

  • the commit message "fix(matter): spelling":
    • summary looks too short

Please fix these commit messages - here are some basic tips:

  • follow Conventional Commits style
  • correct format of commit message should be: <type/action>(<scope/component>): <summary>, for example fix(esp32): Fixed startup timeout issue
  • allowed types are: change,ci,docs,feat,fix,refactor,remove,revert,test
  • sufficiently descriptive message summary should be between 10 to 72 characters and start with upper case letter
  • avoid Jira references in commit messages (unavailable/irrelevant for our customers)

TIP: Install pre-commit hooks and run this check when committing (uses the Conventional Precommit Linter).

👋 Hello SuGlider, we appreciate your contribution to this project!


📘 Please review the project's Contributions Guide for key guidelines on code, documentation, testing, and more.

🖊️ Please also make sure you have read and signed the Contributor License Agreement for this project.

Click to see more instructions ...


This automated output is generated by the PR linter DangerJS, which checks if your Pull Request meets the project's requirements and helps you fix potential issues.

DangerJS is triggered with each push event to a Pull Request and modify the contents of this comment.

Please consider the following:
- Danger mainly focuses on the PR structure and formatting and can't understand the meaning behind your code or changes.
- Danger is not a substitute for human code reviews; it's still important to request a code review from your colleagues.
- Resolve all warnings (⚠️ ) before requesting a review from human reviewers - they will appreciate it.
- To manually retry these Danger checks, please navigate to the Actions tab and re-run last Danger workflow.

Review and merge process you can expect ...


We do welcome contributions in the form of bug reports, feature requests and pull requests.

1. An internal issue has been created for the PR, we assign it to the relevant engineer.
2. They review the PR and either approve it or ask you for changes or clarifications.
3. Once the GitHub PR is approved we do the final review, collect approvals from core owners and make sure all the automated tests are passing.
- At this point we may do some adjustments to the proposed change, or extend it by adding tests or documentation.
4. If the change is approved and passes the tests it is merged into the default branch.

Generated by 🚫 dangerJS against 1272d1c

@github-actions
Copy link
Contributor

github-actions bot commented Dec 3, 2025

Test Results

 83 files   83 suites   25m 11s ⏱️
 55 tests  55 ✅ 0 💤 0 ❌
598 runs  598 ✅ 0 💤 0 ❌

Results for commit 1272d1c.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 3, 2025

Memory usage test (comparing PR against master branch)

The table below shows the summary of memory usage change (decrease - increase) in bytes and percentage for each target.

MemoryFLASH [bytes]FLASH [%]RAM [bytes]RAM [%]
TargetDECINCDECINCDECINCDECINC
ESP32C5000.000.00000.000.00
ESP32S30⚠️ +3360.00⚠️ +0.02000.000.00
ESP32S20⚠️ +3360.00⚠️ +0.02000.000.00
ESP32C3000.000.00000.000.00
ESP32C6000.000.00000.000.00
ESP32H2000.000.00000.000.00
ESP320⚠️ +3360.00⚠️ +0.02000.000.00
Click to expand the detailed deltas report [usage change in BYTES]
TargetESP32C5ESP32S3ESP32S2ESP32C3ESP32C6ESP32H2ESP32
ExampleFLASHRAMFLASHRAMFLASHRAMFLASHRAMFLASHRAMFLASHRAMFLASHRAM
libraries/Matter/examples/MatterColorLight00⚠️ +3360⚠️ +3360000000⚠️ +3360
libraries/Matter/examples/MatterCommissionTest00⚠️ +3360⚠️ +3360000000⚠️ +3360
libraries/Matter/examples/MatterComposedLights00⚠️ +3360⚠️ +3360000000⚠️ +3360
libraries/Matter/examples/MatterContactSensor00⚠️ +3360⚠️ +3360000000⚠️ +3360
libraries/Matter/examples/MatterDimmableLight00⚠️ +3360⚠️ +3360000000⚠️ +3360
libraries/Matter/examples/MatterEnhancedColorLight00⚠️ +3360⚠️ +3360000000⚠️ +3360
libraries/Matter/examples/MatterEvents00⚠️ +3360⚠️ +3360000000⚠️ +3360
libraries/Matter/examples/MatterFan00⚠️ +3360⚠️ +3360000000⚠️ +3360
libraries/Matter/examples/MatterHumiditySensor00⚠️ +3360⚠️ +3360000000⚠️ +3360
libraries/Matter/examples/MatterLambdaSingleCallbackManyEPs00⚠️ +3360⚠️ +3360000000⚠️ +3360
libraries/Matter/examples/MatterMinimum00⚠️ +3360⚠️ +3360000000⚠️ +3360
libraries/Matter/examples/MatterOccupancySensor00⚠️ +3360⚠️ +3360000000⚠️ +3360
libraries/Matter/examples/MatterOnIdentify00⚠️ +3360⚠️ +3360000000⚠️ +3360
libraries/Matter/examples/MatterOnOffLight00⚠️ +3360⚠️ +3360000000⚠️ +3360
libraries/Matter/examples/MatterOnOffPlugin00⚠️ +3360⚠️ +3360000000⚠️ +3360
libraries/Matter/examples/MatterPressureSensor00⚠️ +3360⚠️ +3360000000⚠️ +3360
libraries/Matter/examples/MatterRainSensor--------------
libraries/Matter/examples/MatterSmartButton00⚠️ +3360⚠️ +3360000000⚠️ +3360
libraries/Matter/examples/MatterTemperatureLight00⚠️ +3360⚠️ +3360000000⚠️ +3360
libraries/Matter/examples/MatterTemperatureSensor00⚠️ +3360⚠️ +3360000000⚠️ +3360
libraries/Matter/examples/MatterThermostat00⚠️ +3360⚠️ +3360000000⚠️ +3360
libraries/Matter/examples/MatterWaterFreezeDetector--------------
libraries/Matter/examples/MatterWaterLeakDetector--------------

@SuGlider SuGlider added the Status: Review needed Issue or PR is awaiting review label Dec 3, 2025
@SuGlider SuGlider moved this from In Progress to In Review in Arduino ESP32 Core Project Roadmap Dec 3, 2025
@me-no-dev me-no-dev requested a review from Copilot December 4, 2025 09:25
Copilot finished reviewing on behalf of me-no-dev December 4, 2025 09:30
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new Matter endpoint for Water Leak Detector devices to the ESP32 Arduino Matter library. The implementation follows the established patterns used for similar sensor endpoints like ContactSensor, providing a boolean state sensor that can report water leak detection status (detected/not detected).

Key Changes:

  • New MatterWaterLeakDetector endpoint class with get/set methods and operator overloads
  • Complete example sketch demonstrating commissioning, button control, LED indication, and simulated sensor behavior
  • Comprehensive documentation including API reference and user guide

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
libraries/Matter/src/MatterEndpoints/MatterWaterLeakDetector.h Header file defining the MatterWaterLeakDetector class with boolean state interface
libraries/Matter/src/MatterEndpoints/MatterWaterLeakDetector.cpp Implementation of water leak detector endpoint using BooleanState cluster
libraries/Matter/src/Matter.h Added include and friend declaration for MatterWaterLeakDetector
libraries/Matter/keywords.txt Added syntax highlighting keywords for the new class and methods
libraries/Matter/examples/MatterWaterLeakDetector/MatterWaterLeakDetector.ino Example sketch demonstrating water leak detector with button control and simulation
libraries/Matter/examples/MatterWaterLeakDetector/README.md Comprehensive user guide covering setup, usage, and troubleshooting
libraries/Matter/examples/MatterWaterLeakDetector/ci.yml CI configuration for the example
docs/en/matter/matter.rst Updated sensor endpoints list to include MatterWaterLeakDetector
docs/en/matter/ep_water_leak_detector.rst Complete API reference documentation for the endpoint
CMakeLists.txt Added MatterWaterLeakDetector.cpp to build configuration

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Member

@pedrominatel pedrominatel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@P-R-O-C-H-Y P-R-O-C-H-Y changed the title Feat/matter water leak detector ep feat(matter): Add water leak detector ep Dec 4, 2025
@P-R-O-C-H-Y P-R-O-C-H-Y changed the title feat(matter): Add water leak detector ep feat(matter): adds water leak detector ep Dec 4, 2025
@P-R-O-C-H-Y P-R-O-C-H-Y added Status: Pending Merge Pull Request is ready to be merged and removed Status: Review needed Issue or PR is awaiting review labels Dec 4, 2025
Copy link
Member

@lucasssvaz lucasssvaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Please fix the spelling issues reported by copilot

@me-no-dev me-no-dev merged commit 9b3364c into master Dec 4, 2025
80 checks passed
@me-no-dev me-no-dev deleted the feat/matter_water_leak_detector_ep branch December 4, 2025 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Matter Issues and Feature Request about Matter Protocol Status: Pending Merge Pull Request is ready to be merged

Projects

Development

Successfully merging this pull request may close these issues.

6 participants