-
-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Vehicle Profile for Ford F450 Chassis (Motorhome) #363
Comments
@coogle have you tried car scanner app? If you're able to read the odometer in car scanner we can add it to a profile. |
I'm not all that familiar with the ODB tooling -- I've messed around with a scanner app in the past but I didn't really know what I was doing. My understanding of ODB is that there is a standard set of PIDS that most manufacturers implement, then others implement their own, and some of them require you to poke them to get them to transmit data over the wire back to you? One thing I can say is I did figure out there were at least a couple of things for this vehicle around distances and codes ... shown below represented as Home Assistant MQTT sensors.. - name: Distance Travelled since Last Code
state_class: total_increasing
expire_after: 0
unique_id: "wican_dist_travel_since_last_code"
state_topic: "wican/rx"
unit_of_measurement: 'km'
suggested_display_precision: 2
value_template: >
{% set PID = 49 %}
{% set ID = 2024 %}
{% set ns = namespace(dist = -1) %}
{% for frame in value_json.frame %}
{% if ((frame.data[2] | int) == PID) and ((frame.id | int ) == ID) %}
{% set ns.dist = ((0 + 1 * ((frame.data[3] | int) * 256) + (frame.data[4] | int))) %}
{% endif %}
{% endfor %}
{% if(ns.dist == -1) %}
{{ this.state }}
{% else %}
{{ ns.dist }}
{% endif %} and - name: Distance Travelled Since Code
state_class: total_increasing
unique_id: "wican_dist_travel_since_code"
state_topic: "wican/rx"
unit_of_measurement: 'km'
expire_after: 0
suggested_display_precision: 2
value_template: >
{% set PID = 33 %}
{% set ID = 2024 %}
{% set ns = namespace(dist = -1) %}
{% for frame in value_json.frame %}
{% if ((frame.data[2] | int) == PID) and ((frame.id | int ) == ID) %}
{% set ns.dist = ((0 + 1 * ((frame.data[3] | int) * 256) + (frame.data[4] | int))) %}
{% endif %}
{% endfor %}
{% if(ns.dist == -1) %}
{{ this.state }}
{% else %}
{{ ns.dist }}
{% endif %} But is it really true there isn't just some sort of official database of make/models and PIDs that exist? |
Per the instructions, I'm looking for some help to build out a vehicle profile for a Ford F450 Chassis. I say Chassis, because the vehicle itself is actually a motorhome.
I don't know what beyond the generic AAA profile I can get, but one thing I wish I could get access to at a minimum would be the odometer reading. Any help would be appreciated.
The text was updated successfully, but these errors were encountered: