This repository has been archived on 2026-11-06. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
hassble-config/config.yaml
T
Piotr TrzcinskiandClaude Opus 5.5 6f2cf62a2c
Validate YAML Configs / Validate YAML Schema (push) Successful in 1m17s
feat: add DPF and exhaust temperature sensors
DPF inlet/outlet temperature (01 7C), differential pressure (01 7A),
regeneration trigger, required and active flags plus average distance
between regenerations (01 8B), and exhaust gas temperatures (01 78).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 09:58:09 +02:00

182 lines
6.0 KiB
YAML

# HassBle configuration — Toyota Proace City (PSA K9 platform, 2019+)
# Adapter: Vgate iCar Pro ELM327 V2.3, Bluetooth 4.0 (BLE) variant
#
# Served from https://gitea.trzcinski.pro/czcionka/hassble-config (branch main).
# The app accepts config only from gitea.trzcinski.pro over HTTPS.
#
# Do NOT put any Home Assistant credentials (URL/Token) in this file. Enter them in the app.
version: 1
defaults:
publish:
on_change_only: true
min_interval: 10s
devices:
- id: proace_city_obd
name: "Toyota Proace City"
source: obd
obd:
# Bind the adapter MAC in the app (Sensors tab) instead of committing it here.
# Vgate iCar Pro BLE GATT layout. If the app logs "OBD RX/TX characteristic not found",
# check the adapter with nRF Connect and try one of the common ELM327 BLE layouts:
# service FFF0, tx FFF2, rx FFF1
# service 18F0, tx 2AF1, rx 2AF0
service_uuid: "E7810A71-73AE-499D-8C15-FAA9AEF0C3F2"
tx_char_uuid: "BEF8D6C9-9C21-4C9E-B632-BD58C1009F9F"
rx_char_uuid: "BEF8D6C9-9C21-4C9E-B632-BD58C1009F9F"
tx_delay: 50ms
init_commands:
- "ATSP6" # ISO 15765-4 CAN 11-bit 500 kbps; use ATSP0 (auto) if the ECU does not answer
sensors:
# Standard SAE J1979 mode 01 PIDs. A PID the ECU does not support answers NO DATA —
# disable such sensors in the app.
- { key: rpm, preset: rpm, update_interval: 2s }
- { key: speed, preset: speed, update_interval: 2s }
- { key: engine_load, preset: engine_load, update_interval: 5s }
- { key: coolant_temp, preset: coolant_temp, update_interval: 30s }
- { key: intake_temp, preset: intake_air_temp, update_interval: 30s }
- { key: ambient_temp, preset: ambient_temp, update_interval: 60s }
- { key: battery, preset: battery_voltage, update_interval: 10s }
- { key: run_time, preset: run_time, update_interval: 10s }
- key: fuel_level
preset: fuel_level
update_interval: 30s
publish:
deadband: 0.5
min_interval: 60s
# PID A6 is mandatory only on newer (Euro 6d) ECUs.
- { key: odometer, preset: odometer, update_interval: 60s }
- key: intake_map
mode: "01"
pid: "0B"
formula: "a"
unit: "kPa"
device_class: pressure
state_class: measurement
accuracy_decimals: 0
update_interval: 5s
- key: barometric_pressure
mode: "01"
pid: "33"
formula: "a"
unit: "kPa"
device_class: pressure
state_class: measurement
accuracy_decimals: 0
update_interval: 120s
# Diesel (1.5 BlueHDi) common-rail pressure; petrol engines answer NO DATA.
- key: fuel_rail_pressure
mode: "01"
pid: "23"
formula: "(a*256+b)*10"
unit: "kPa"
device_class: pressure
state_class: measurement
accuracy_decimals: 0
update_interval: 5s
- key: distance_since_dtc_clear
mode: "01"
pid: "31"
formula: "a*256+b"
unit: "km"
device_class: distance
state_class: total_increasing
accuracy_decimals: 0
update_interval: 300s
- key: distance_with_mil_on
mode: "01"
pid: "21"
formula: "a*256+b"
unit: "km"
device_class: distance
state_class: measurement
accuracy_decimals: 0
icon: mdi:engine-off
update_interval: 300s
# ── DPF / exhaust aftertreatment (SAE J1979 diesel PIDs) ──
# Byte a is the PID's "supported" bitmask, so values start at byte b.
# If these answer NO DATA, the ECU exposes DPF data only through PSA-specific mode 22 DIDs.
- key: dpf_inlet_temp
mode: "01"
pid: "7C"
formula: "(b*256+c)/10-40"
unit: "°C"
device_class: temperature
state_class: measurement
accuracy_decimals: 0
icon: mdi:thermometer-chevron-up
update_interval: 10s
- key: dpf_outlet_temp
mode: "01"
pid: "7C"
formula: "(d*256+e)/10-40"
unit: "°C"
device_class: temperature
state_class: measurement
accuracy_decimals: 0
icon: mdi:thermometer-chevron-down
update_interval: 10s
# Signed 16-bit: rising differential pressure means soot is building up.
- key: dpf_differential_pressure
mode: "01"
pid: "7A"
formula: "(b*256+c-floor(b/128)*65536)/100"
unit: "kPa"
device_class: pressure
state_class: measurement
accuracy_decimals: 2
update_interval: 10s
# 100 % means the ECU wants a regeneration.
- key: dpf_regen_trigger
mode: "01"
pid: "8B"
formula: "c*100/255"
unit: "%"
state_class: measurement
accuracy_decimals: 0
icon: mdi:air-filter
update_interval: 30s
- key: dpf_regen_required
platform: binary_sensor
mode: "01"
pid: "8B"
formula: "floor(c/255)"
icon: mdi:air-filter
update_interval: 30s
- key: dpf_regen_active
platform: binary_sensor
mode: "01"
pid: "8B"
formula: "b%2"
icon: mdi:fire
update_interval: 10s
- key: dpf_avg_distance_between_regens
mode: "01"
pid: "8B"
formula: "f*256+g"
unit: "km"
device_class: distance
state_class: measurement
accuracy_decimals: 0
update_interval: 300s
- key: egt_bank1_sensor1
mode: "01"
pid: "78"
formula: "(b*256+c)/10-40"
unit: "°C"
device_class: temperature
state_class: measurement
accuracy_decimals: 0
update_interval: 10s
- key: egt_bank1_sensor2
mode: "01"
pid: "78"
formula: "(d*256+e)/10-40"
unit: "°C"
device_class: temperature
state_class: measurement
accuracy_decimals: 0
update_interval: 10s