Leaf charging and climate control integration with Apple HomeKit

My Nissan Leaf Forum

Help Support My Nissan Leaf Forum:

This site may earn a commission from merchant affiliate links, including eBay, Amazon, and others.

joeshaw

Member
Joined
May 30, 2017
Messages
5
Location
Columbus, OH
Hi,

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: https://github.com/joeshaw/carwings-homecontrol

And for more info on HomeControl itself (which I did not write), its GitHub page is https://github.com/brutella/hc
 
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.
 
Back
Top