Archived
fix: 표준 및 현대/기아 차종별 주행거리(A6, ED03, F22E), 연료잔량(2F, 002F) PID 후보 추가
This commit is contained in:
1 parent
dea0c0c115
commit
9f322c9486
1 file changed
+20
-5
+20
-5
@@ -113,7 +113,7 @@ templates:
|
|||||||
|
|
||||||
- id: obd_hyundai_kia
|
- id: obd_hyundai_kia
|
||||||
name: "OBD-II + 현대/기아 확장"
|
name: "OBD-II + 현대/기아 확장"
|
||||||
description: "RPM, 속도, 연료잔량%, 총 주행거리"
|
description: "RPM, 속도, 연료잔량%, 총 주행거리 (표준 & 현대/기아 PID)"
|
||||||
device:
|
device:
|
||||||
id: car_obd_hk
|
id: car_obd_hk
|
||||||
name: "Hyundai/Kia OBD"
|
name: "Hyundai/Kia OBD"
|
||||||
@@ -127,15 +127,30 @@ templates:
|
|||||||
sensors:
|
sensors:
|
||||||
- { key: rpm, preset: rpm, update_interval: 1s }
|
- { key: rpm, preset: rpm, update_interval: 1s }
|
||||||
- { key: speed, preset: speed, update_interval: 1s }
|
- { key: speed, preset: speed, update_interval: 1s }
|
||||||
- key: fuel_level_hk
|
# 연료 잔량 (%)
|
||||||
|
- key: fuel_level
|
||||||
|
preset: fuel_level
|
||||||
|
update_interval: 30s
|
||||||
|
- key: fuel_level_ext
|
||||||
mode: "22"
|
mode: "22"
|
||||||
pid: "002F"
|
pid: "002F"
|
||||||
formula: "a*0.392157"
|
formula: "a/2.55"
|
||||||
unit: "%"
|
unit: "%"
|
||||||
state_class: measurement
|
state_class: measurement
|
||||||
update_interval: 30s
|
update_interval: 30s
|
||||||
publish: { deadband: 0.5, min_interval: 60s }
|
# 총 주행거리 (km)
|
||||||
- key: odometer_hk
|
- key: odometer
|
||||||
|
preset: odometer
|
||||||
|
update_interval: 30s
|
||||||
|
- key: odometer_ed03
|
||||||
|
mode: "22"
|
||||||
|
pid: "ED03"
|
||||||
|
formula: "(((a*65536)+b*256)+c)*0.256"
|
||||||
|
unit: "km"
|
||||||
|
device_class: distance
|
||||||
|
state_class: total_increasing
|
||||||
|
update_interval: 30s
|
||||||
|
- key: odometer_f22e
|
||||||
mode: "22"
|
mode: "22"
|
||||||
pid: "F22E"
|
pid: "F22E"
|
||||||
formula: "(((a*256*256*256)+b*256*256)+c*256)+d"
|
formula: "(((a*256*256*256)+b*256*256)+c*256)+d"
|
||||||
|
|||||||
Reference in new issue
Block a user