I also got this working (for e-Niro) using the Telegram bot. Kudos @pIord! I must say that you have made a fantastic work. So happy that you shared this with the community. It’s hard to understand that Hyundai/Kia did not manage to put out a service/app when @plord manages this from his couch
One thing I noticed is that I get a lower value for current charging speed than what is showing in the car. Not a big issue, the most important thing is to know if the car is charging or not.
Yes - here we are measure the charging rate at the battery ( ie battery voltage * battery current ) - there is some power loss ( maybe 10% ) in the on board charger, cables etc.
It should be possible to measure the power going in to the on board charger, but I’ve not yet seen anyone work that out.
I’m a developer but I’m new to Python. Where can I find a list of available modules? I want to do MQTT with the result of the work in this thread. I assume that I have to install a new module on the rpi?!
Suggestion to the notification levels. I want data more often
Replace the 80% and 100% code with the following code to get a notification at each percent
# each % alert
#
lastsoc = persistance['SOC']
for level in xrange(1, 100):
if soc >= level and lastsoc < level:
bot_sendtext("Charging now at a rate of "+format(batt_power,'.2f')+"kW. State of charge now "+format(soc,'.1f')+"%")
break
I want to extend the battery information with temperature etc. I know the Torque Pro information is on github but I don’t know how to convert the formulas. Especially the data positions (like Q, R, S, T) in the result. I have seen a post describing this but I can’t find it. Anyone has a link to that post?
How is this row converted to AutoPi/Python formula?
000_Battery Module 01 Temperature Batt Temp01 0x220101 Signed(Q) -40 80 C 7E4
Yeah, I see what you mean.
To do this, however, we will have to extend our modelling of car makes, models, series and years, so unfortunately it’s as easy as we’d like it to be.
I have added a task to our backlog so that I can discuss it further with the team.
Hi all! Telegram works very well. Just wanted to share an idea. Its just as easy to use IFTTT with webhooks to do almost anything. I just set up a webhook on IFTTT and connected it to my home automation system (Telldus Z-Wave). Resulting in turning a light on and off when charging starts or stops
Simple python code for sending webhook to IFTTT
# send message to ifttt
#
def ifttt_sendevent():
requests.get('https://maker.ifttt.com/trigger/ev_charge_start/with/key/your_webhook_key')
Umm if you use the API, you can already get the data into Home Assistant:
Well, this is in Slovenian but you get the point
For info: currently I’m using Node-Red to get the data and it posts results to MQTT. I can use the MQTT messages in multiple systems at the same time then.