cr3ative / homebridge-apcaccess

what if apcaccess, but in homebridge??
MIT License
8 stars 4 forks source link

enhancement: Homekit App status #1

Closed grgmll closed 4 years ago

grgmll commented 4 years ago

Is it possible to add the following information in the Homekit App status? Battery Level Charging State Mains power

Thanks

cr3ative commented 4 years ago

Sure, I'm very happy to accept PRs but might get around to this!

cr3ative commented 4 years ago

Hi @oigroigm, I had a look at this and I already do report Battery Level and Charging State:

Screenshot 2020-02-25 at 12 18 41
cr3ative commented 4 years ago

So - I'm not sure which Homekit characteristic you'd like to see added here. Do let me know!

These values are reported here:

https://github.com/cr3ative/homebridge-apcaccess/blob/master/index.js#L42

cr3ative commented 4 years ago

Okay, I had a poke around and I've found that Service.BatteryService displays better in Home.app, so I've pushed 0.1.0 which does this:

IMG_6001

For "mains power", that's the contact switch; if the switch is open, we're using battery, if it's closed, we're on mains power.

cr3ative commented 4 years ago

Fixed!