OBD2 to evcc with Wican, SoC, odo, etc. #14551
Replies: 3 comments 9 replies
-
How did you transfer the soc to EVCC? MQTT publish, or can the soc automatically polled from EVCC? |
Beta Was this translation helpful? Give feedback.
-
I used Currently i have managed to get, while charging active
Still trying to figure |
Beta Was this translation helpful? Give feedback.
-
You can read the SOC direct from your brooker, if you published it somewhere as plain number Here my evcc.yaml.
@JabeBRD |
Beta Was this translation helpful? Give feedback.
-
Bought Wican to retreive data from OBD2 over wifi, to be used in evcc with MQTT messages.
setup vehicle as custom
Found some good info under this soc_helper tool https://forum.openwb.de/viewtopic.php?p=91886&sid=69c76a001924bcd539633a4807df0453#top
I have managed to get SoC and odometer reading from e-Up (2022) and Passat GTE (2020).
Both raw values are calculated in Home Assistant and send to evcc.
For e-Up request for soc
{"bus":"0","type":"tx","frame":[{"id":2021,"dlc":8,"rtr":false,"extd":false,"data":[3,34,2,140,170,170,170,170]}]}
and for odometer, this requires two messages, first
{"bus":"0","type":"tx","frame":[{"id":2021,"dlc":8,"rtr":false,"extd":false,"data":[3,34,2,189,170,170,170,170]}]}
second{ "bus": "0", "type": "tx", "frame": [{"id": 2021,"dlc": 8, "rtr": false, "extd": false, "data": [48,0,0,170,170,170,170,170]}]}
And for passat soc
{"bus":"0","type":"tx","frame":[{"id":2015,"dlc":8,"rtr":false,"extd":false,"data":[2,1,91,170,170,170,170,170]}]}
odometer also two messages, first
{ "bus":"0","type":"tx","frame": [{"id": 402391163,"dlc": 8,"rtr": false, "extd": true, "data": [ 3, 34, 2, 189, 170, 170, 170, 170 ]}]}
second{"bus":"0","type":"tx","frame":[{"id":402391163,"dlc": 8,"rtr": false,"extd": true,"data": [ 48, 0, 0, 170, 170, 170, 170, 170 ]}]}
For odometer messages received, first
"data": [ 16, 13, 98, 2, 189, 86, AA, BB ]
, second"data": [ 33 ,CC , 0, 0, 91, 143, 105, 92 ]
and calculated asAA*65536+BB*256+CC
Anyone using this? Would like to know how to enable climate, to heat car in winter times and read climate status, and how to read charge status (A..F) to be used in evcc.
Beta Was this translation helpful? Give feedback.
All reactions