-
Notifications
You must be signed in to change notification settings - Fork 7.8k
feat(matter): adds rain sensor matter endpoint #12100
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
Conversation
👋 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 ...
Review and merge process you can expect ...
|
Test Results 83 files 83 suites 27m 23s ⏱️ Results for commit f113707. ♻️ This comment has been updated with latest results. |
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.
Click to expand the detailed deltas report [usage change in BYTES]
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this 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 rain sensors, enabling ESP32 devices to function as Matter-compatible rain detection sensors. The implementation follows the established pattern of similar boolean state sensors in the codebase.
Key changes:
- New
MatterRainSensorclass implementing rain detection state (detected/not detected) - Complete example demonstrating rain sensor functionality with button control and automatic simulation
- Comprehensive documentation including API reference and integration guides
Reviewed changes
Copilot reviewed 10 out of 10 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| libraries/Matter/src/MatterEndpoints/MatterRainSensor.h | Defines the MatterRainSensor class with rain detection state management and boolean operators |
| libraries/Matter/src/MatterEndpoints/MatterRainSensor.cpp | Implements rain sensor initialization, state management, and Matter attribute handling |
| libraries/Matter/src/Matter.h | Adds MatterRainSensor include and friend class declaration for integration |
| libraries/Matter/keywords.txt | Adds syntax highlighting keywords for MatterRainSensor, setRain, and getRain |
| libraries/Matter/examples/MatterRainSensor/MatterRainSensor.ino | Complete working example with button control, LED indication, and automatic state simulation |
| libraries/Matter/examples/MatterRainSensor/README.md | Comprehensive documentation covering hardware setup, configuration, and smart home integration |
| libraries/Matter/examples/MatterRainSensor/ci.yml | CI configuration specifying required partition scheme and Matter data model |
| docs/en/matter/ep_rain_sensor.rst | API reference documentation with detailed method descriptions and usage examples |
| docs/en/matter/matter.rst | Updates endpoint list to include MatterRainSensor |
| CMakeLists.txt | Adds MatterRainSensor.cpp to the build configuration |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
pedrominatel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description of Change
Adds a new Matter Endpoint: Rain Sensor, with related example, readme and documentation.
Test Scenarios
ESP32-S3
Related links
None