-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Battery reporting from a Smart Lock (#153)
### TL;DR Added SmartLock battery level reporting functionality via MQTT and HomeKit integration. ### What changed? - Added battery level reporting configuration options in the web UI - Implemented battery level threshold settings (0-100%) - Created new MQTT topic for battery level commands - Added HomeKit battery service with low status and level characteristics - Introduced new CLI commands for debugging purposes ('N' and 'B') ### How to test? 1. Enable SmartLock battery reporting in the Misc settings 2. Set desired battery low threshold percentage 3. Configure MQTT battery level command topic 4. Send battery level updates via MQTT or CLI commands: - Use 'N 0/1' to toggle battery low status - Use 'B [level]' to set battery percentage 5. Verify battery status appears in HomeKit 6. Confirm low battery warnings trigger when level drops below threshold ### Why make this change? Enables monitoring of physical lock battery levels through HomeKit and MQTT, allowing users to receive notifications when batteries need replacement and maintain better awareness of their lock's power status.
- Loading branch information
Showing
4 changed files
with
80 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters