From 730994fd0d5a7a0fd074121f41abaf85228ff78a Mon Sep 17 00:00:00 2001 From: eigger Date: Wed, 29 Jul 2026 22:33:53 +0900 Subject: [PATCH] =?UTF-8?q?add:=20=ED=98=84=EB=8C=80/=EA=B8=B0=EC=95=84=20?= =?UTF-8?q?=EA=B8=B0=EB=B3=B8=20OBD-II=20PID=20=ED=85=9C=ED=94=8C=EB=A6=BF?= =?UTF-8?q?=20=EC=B6=94=EA=B0=80=20(RPM,=20=EC=86=8D=EB=8F=84,=20=EC=97=B0?= =?UTF-8?q?=EB=A3=8C=EC=9E=94=EB=9F=89,=20=EC=B4=9D=20=EC=A3=BC=ED=96=89?= =?UTF-8?q?=EA=B1=B0=EB=A6=AC)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/templates.yaml b/templates.yaml index 4a455cd..58bc7de 100644 --- a/templates.yaml +++ b/templates.yaml @@ -111,6 +111,35 @@ templates: - { key: oil_pressure, preset: gm_oil_pressure, update_interval: 2s } - { key: trans_temp, preset: gm_trans_temp, update_interval: 10s } + - id: obd_hyundai_kia + name: "OBD-II + 현대/기아 확장" + description: "RPM, 속도, 연료잔량%, 총 주행거리 (ATSP6 헤더 설정)" + device: + id: car_obd_hk + name: "Hyundai/Kia OBD" + source: obd + obd: + service_uuid: "18F0" + tx_char_uuid: "2AF1" + rx_char_uuid: "2AF0" + tx_delay: 50ms + init_commands: ["ATZ", "ATE0", "ATL0", "ATS0", "ATH0", "ATSP6"] + sensors: + - { key: rpm, preset: rpm, update_interval: 1s } + - { key: speed, preset: speed, update_interval: 1s } + - key: fuel_level + preset: fuel_level + update_interval: 30s + publish: { deadband: 0.5, min_interval: 60s } + - key: odometer_hk + mode: "22" + pid: "F22E" + formula: "(((a*256*256*256)+b*256*256)+c*256)+d" + unit: "km" + device_class: distance + state_class: total_increasing + update_interval: 30s + - id: gatt_meter_relay name: "GATT power meter + relay" description: "Notify characteristic + switch control example"