Also thank you but, no, I don’t take donations There is so many people who work way way more for free on home assistant, you could donate there, or to Tobias, the My Leaf author who builds the libraries used by leaf2mqtt, he takes donations through the My Leaf app.
Timing on this could not be more perfect. I just stumbled upon your image and turned it into a local add-on. It’s running on Home Assistant Blue, so I can confirm the arm64 version works fine (on my 2016 Canadian leaf).
This is great, thank you for the work you’ve put into this.
Thanks—had to uninstall/reinstall. It works! Though, like previous versions, it still doesn’t seem to update the battery as reliably as the climate/location. Might post some logs later after a little more observation.
I’m really pleased for the possibility to integrate our car into Home Assistant, via Leaf2Mqtt. I went through this post and learned that @Sriracha has been really kind and kept updating the addon for the rest of us. Amazing!
I do need some help however with extracting the stats values. I don’t seem to get anything out - I’m checking with MQTT explorer as well as the listener tool in Home Assistant. It would be interesting to get the kilometersPerKwh and the kwhUsed etc.
I did race an issue - stats - help needed · Issue #32 · yp87/leaf2mqtt · GitHub, but perhaps it’s only something simple I’m missing. I’ve noticed there is a tripHistory and therefor tried swopping stats to tripHistory to alter the dates, but no luck.
I’ve just installed yp87’s version for my new leaf, but I’m wondering how people deal with the 12v battery as I understand that it runs flat when you are not using the car.
Currently my update interval is set to every 24 hours, but I’d like to change that to 1 hour.
Can I run a script to disable the updates during vacation?
If I would run flat, how hard (or simple) would it be to recharge the 12V battery? Does the car start without?
Can I monitor the 12v battery through mqtt?
Other things to do when the car is sometimes not used for multiple days (or more)?
For the last couple of years I have had an update interval of about 10 minutes and have never had a problem with the 12v battery. If I remember correctly, the drive battery will recharge the 12v battery so long as it’s not plugged in. So if you are leaving the car at home while you are on vacation, you would be best leaving the car unplugged.
If it were to go flat then it would be a pain, as the car cannot start. I guess your garage or breakdown service could recharge the battery enough to get you started, just as with a normal car.