jrhubott / homebridge-homeseer

Plugin for the homebridge Apple iOS Homekit support application to support integration with the Homeseer V3 software
https://github.com/nfarina/homebridge
7 stars 13 forks source link

Add Battery Service to Lock #7

Closed jvmahon closed 6 years ago

jvmahon commented 6 years ago

Updates to add a battery service to a HomeSeer Lock device. With these updates, a battery service will be added if a batteryRef value is included in the config.json data for the lock accessory. batteryRef should point to the homeseer reference for the lock's battery. The batteryRef number is usually 1 less than the "ref" value for the lock itself. The locks configuration data in config.json should also include a batteryThreshold value to define value below which the iOS Home app. will warn of low battery. I've found that this should be set relatively high (say 35%) to ensure lock battery is changed in time!