Thank you for your work, I had a similar problem and have now managed it through your help.
For all those who are less familiar with it:
Token can be generated in the ABRP app.
Unfortunately, I get only relatively little data via the VW ID API. I use the Volkwagen ID Binding from @skagmo, also thanks to him
I have solved the whole thing a bit messier, but relatively simple:
rest_command:
abrp:
url: 'http://api.iternio.com/1/tlm/send?api_key=<api_key>&token=<api_token>&tlm={"utc":{{ utcnow().strftime(''%s'') }},"soc":{{ states(''sensor.soc_percent'') }},"soh":99,"is_charging":{{ states(''sensor.charging_bool'')}},"car_model":"volkswagen:id3:20:58:mr"}'
method: POST
headers:
content_type: "charset=utf-8; application/x-www-form-urlencoded"
Automation ist also simple:
alias: ABRP upload
description: ''
trigger:
- platform: time_pattern
seconds: /10
action:
- service: rest_command.abrp
mode: single
I also considered if it is better to use the UTC timestamp of the vehicle, since i only get an update of the vehicle data every 10 minutes.
Is there a simple way to transfer the data from āsensor.timeā, which is in the format "
17. Juni 2021, 22:34:04 " to the required UTC format?
Thanks again to all who made this possible!
Greetings
Lukas