Posts: 5
Joined: Tue May 30, 2017 7:43 am
Delivery Date: 29 May 2017
Location: Columbus, OH
Contact: Website Twitter

Leaf charging and climate control integration with Apple HomeKit

Wed Nov 15, 2017 9:59 am


This might be of interest for the techie folks in the community. I recently wrote some software that exposes the Leaf's battery, charging and climate control information, and the ability to switch on charging and climate control, to Apple HomeKit. With this you can use the iOS Home app, an Apple Watch, or Siri to charge your car or turn the heat/AC on or off.

The software is written in Go and uses the HomeControl bridging software to expose the car as an accessory that can be added to HomeKit. I run both HomeControl and the Leaf integration programs on an Mac in my house that's always on.

I'm working on a more detailed blog post about it, but you can find the code and the basic setup steps on the GitHub page:

And for more info on HomeControl itself (which I did not write), its GitHub page is

Posts: 21
Joined: Tue Jan 05, 2016 11:22 am
Delivery Date: 09 Jan 2015

Re: Leaf charging and climate control integration with Apple HomeKit

Thu Aug 30, 2018 8:37 pm

I'm having trouble with your code. When set up, if I change the name from "car" to "Rhapsody," the home app in iOS will add it as the new name, but Siri will only respond to the room it is set for.

If I ask about the charge level, it will respond "battery's battery is at 0%."

Finally, I cannot get it to actually refresh the stats on my car. I can't find any debug or log file to troubleshoot this.

I have this working in home assistant, but home assistant doesn't support battery charge levels so mapping it to Siri is sloppy. Yours and the NPM solution properly map the battery state.

I'm hoping this get to you, even if I am necropsying, as I can't find a way to fix this.

Return to “Range / Efficiency / Carwings”