HomeKit Battery Charging Status

Hey folks, just wondering if there's a means by which battery charging status can be kept up to date in HomeKit? Taking my Test Plug as an example, it has an internal battery, and it reports as charging in Hubitat. However, this "charging" status never makes it to HomeKit, where it always reports "Charging: No".

The driver is providing batteryState in Current States like this:

Is there another means of doing this such that the HomeKit Bridge integration will carry it over?

Curious :thinking: - What specific device (make and model) is your 'Test Plug'?

In HomeKit Bridge, see if that device has an option for that under Advanced Options --> Show accessory classes and characteristics.

1 Like

Not for the charging status, sadly.

I could add something to the driver, if I knew what I should be adding! :slight_smile:

Original AlertMe SPG100. The platform was designed with security applications in mind, so only the smart plugs were repeaters, and all smart plugs contained batteries to maintain the mesh in the event of a power failure. Everything else was a battery powered end-point or the Hub itself, which was also battery-backed and contained a SIM card. Very cool, imho. :sunglasses:

1 Like

Thank you for the history lesson. Sounds like it was a well-designed solution for its time. Unfortunately, such an old niche smart plug is probably not going to get a ton of support these days - but I wish you the best of luck! Again, thanks for sharing! Always great to learn something new!

1 Like

One thing you could try is to set up HomeBridge running on an always on system, like a Raspberry Pi or similar. It would be interesting to know if HomeBridge as the middleman properly supports the 'charging' status of these battery-backed-up smart outlets. There are two community developed HomeBridge Plug-Ins for Hubitat. One simply uses the Hubitat built-in Maker API app, while the other uses a custom Hubitat App.

These solutions are Open Source. If necessary, you'd have more flexibility in making changes yourself to try to get things working the way you desire.

Just an option to consider. :sunglasses:

1 Like

Hehe, it's me doing the support! :smiley:

There's just nothing in the Hubitat docs... hang on, I'll change accounts and put my developer hat on...

1 Like

...that's better.

There's just nothing in the Hubitat developer docs which specifies what, or if, an attribute will be converted over to HomeKit's nomenclature for charging state. If anything out there does this successfully then I can just replicate it in the driver, but I haven't found anything yet.

1 Like

Tagging @bertabcd1234 and @gopher.ny. If it is simply a documentation issue, @bertabcd1234 can assist. However, if it is something that needs a change to Hubitat's HomeKit Bridge integration, @gopher.ny will probably need to take a look.

2 Likes

Awesome, thank you kindly! :heart_eyes:

1 Like