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

Battery for Lock Devices #6

Closed jvmahon closed 6 years ago

jvmahon commented 6 years ago

Is it possible to add a battery reference for Lock devices so that HomeKit can report when a lock's battery is going dead?

AlanSmithe commented 6 years ago

What happens when you add

"batteryRef":REF_ID, // Optional - HomeSeer device reference for the sensor battery level "batteryThreshold":15, // Optional - If sensor battery level is below this value, the HomeKit LowBattery characteristic is set to 1. Default is 10

to your lock config?

jvmahon commented 6 years ago

adding the batteryRef option is currently ignored for locks, so I assume the HomeBridge code needs to be enhanced to support it. I've been looking at the code, but don't understand it well enough to do it myself.

AlanSmithe commented 6 years ago

I don't know if jrhubott still supports this plugin. The last message from him on the Homeseer forum was on november 2016.

jvmahon commented 6 years ago

Resolution - Unlike services used for other devices such as contact switches, the lock mechanism service doesn't directly support battery status. Need to add a second service (the battery service) to the Lock accessory which may require a different approach to configuring the accessory as there would need to be both a primary and a secondary service for the accessory.