-
Notifications
You must be signed in to change notification settings - Fork 15
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
libraries/Matter: Add MatterPowerSource.h and battery reporting example #51
base: main
Are you sure you want to change the base?
Conversation
{ | ||
public: | ||
enum Changed_t{ | ||
kChanged_BatPercentRemaining = kChanged_Last << 1, |
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.
This could be extended for other attributes, e.g. for voltage and alarm reporting.
I love the idea! Can't wait to test this. |
Home Assistant works well (as pictured above), Apple Home however doesn't seem to recognize the PowerSource cluster. |
@LorbusChris this is AWESOME! Once we start with the community contributions this is going to be the first PR merged 🚀 |
I've just done the test. I've noticed a issue with the PowerSource cluster. It is presented on EP4 instead of EP3. Apple Home shows power source icon. Could you fix it? Regards |
I think the following attributes can be activated in our case:
Source: power-source-cluster.xml We could:
Regards |
I thought I'd share this fun little project here. It's a momentary Matter switch with battery reporting (Thing plus Matter inside).
![IMG_0218](https://private-user-images.githubusercontent.com/13365531/329232319-adfba134-36f6-4e8d-a177-9c06e340a502.jpg?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU2NjA1MjgsIm5iZiI6MTcyNTY2MDIyOCwicGF0aCI6Ii8xMzM2NTUzMS8zMjkyMzIzMTktYWRmYmExMzQtMzZmNi00ZThkLWExNzctOWMwNmUzNDBhNTAyLmpwZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA5MDYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVz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4nPI9lS-49M)
This is really just intended as a reference, so feel free to close this out without pulling the code in.
Feedback is appreciated! :)