Archived
fix: RPM, Speed, 연료잔량(%), 주행거리 전체 센서에 ATSH7E0 헤더 지정
This commit is contained in:
1 parent
9776838e0b
commit
d57f05d7d5
1 file changed
+14
-8
+14
-8
@@ -113,7 +113,7 @@ templates:
|
|||||||
|
|
||||||
- id: obd_hyundai_kia
|
- id: obd_hyundai_kia
|
||||||
name: "OBD-II + 현대/기아 확장"
|
name: "OBD-II + 현대/기아 확장"
|
||||||
description: "RPM, 속도, 연료잔량(계기판/743), 총 주행거리(ECU/7E0)"
|
description: "RPM, 속도, 연료잔량%, 총 주행거리 (ATSH7E0 헤더 고정)"
|
||||||
device:
|
device:
|
||||||
id: car_obd_hk
|
id: car_obd_hk
|
||||||
name: "Hyundai/Kia OBD"
|
name: "Hyundai/Kia OBD"
|
||||||
@@ -123,16 +123,22 @@ templates:
|
|||||||
tx_char_uuid: "2AF1"
|
tx_char_uuid: "2AF1"
|
||||||
rx_char_uuid: "2AF0"
|
rx_char_uuid: "2AF0"
|
||||||
tx_delay: 50ms
|
tx_delay: 50ms
|
||||||
init_commands: ["ATSP6"]
|
init_commands: ["ATZ", "ATE0", "ATL0", "ATS0", "ATH0", "ATSP6", "ATSH7E0"]
|
||||||
sensors:
|
sensors:
|
||||||
- { key: rpm, preset: rpm, update_interval: 1s }
|
- key: rpm
|
||||||
- { key: speed, preset: speed, update_interval: 1s }
|
preset: rpm
|
||||||
|
pre_commands: ["ATSH7E0"]
|
||||||
|
update_interval: 1s
|
||||||
|
- key: speed
|
||||||
|
preset: speed
|
||||||
|
pre_commands: ["ATSH7E0"]
|
||||||
|
update_interval: 1s
|
||||||
- key: fuel_level_hk
|
- key: fuel_level_hk
|
||||||
mode: "22"
|
mode: "22"
|
||||||
pid: "2203"
|
pid: "303E"
|
||||||
pre_commands: ["ATSH743"]
|
pre_commands: ["ATSH7E0"]
|
||||||
formula: "(a*256+b)*0.009994"
|
formula: "a-100"
|
||||||
unit: "L"
|
unit: "%"
|
||||||
state_class: measurement
|
state_class: measurement
|
||||||
update_interval: 30s
|
update_interval: 30s
|
||||||
publish: { deadband: 0.5, min_interval: 60s }
|
publish: { deadband: 0.5, min_interval: 60s }
|
||||||
|
|||||||
Reference in new issue
Block a user