Commit Graph
41 Commits
Author SHA1 Message Date
eiggerandClaude Opus 5 d75bcd469a fix(obd): replace Hyundai/Kia template with the cluster 22B002 PIDs
The obd_hyundai_kia template shipped four PIDs that belong to other makes, so
a Hyundai or Kia never answered them:

  22 132A          → GM/Chevrolet (Malibu, Cruze, Trax, Spark)
  22 2203 + ATSH743 → Renault Samsung (SM5, SM6, QM3, QM6)
  22 FD40          → SsangYong (Korando, Rexton W, Tivoli)
  22 F22E          → SsangYong Tivoli

The odometer formulas were wrong independently of the PID: FD40 reads the
odometer from bytes U:V, not a:b.

Replace them with the HKMC instrument cluster DID, which carries odometer,
fuel level and cluster voltage in one response:

  ATSH7C6 + 22 B002 → 62 B0 02 [a][b][c][d][e][f][g][h][i] …
    e     → fuel level     e*0.5 L
    f     → cluster volts  f*0.078125 V
    g:h:i → odometer       24-bit km

Cross-checked against the Elantra CN7 PID list, JejuSoul/OBD-PIDs-for-HKMC-EVs
and the awesomeit Torque plugin database (35 HKMC models, 2013 onwards).

Requires hassble-android to group sensors by (mode, pid) and to expose
response bytes past h — all three sensors share one PID and the odometer
needs byte i.

Also document the formula byte range and the ATSH restore rule in both READMEs.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-07-30 00:29:02 +09:00
eigger 22fe8e88d3 test: 현대/기아 전체 PID 후보 추가 및 테스트용 update_interval 1s 설정 2026-07-29 23:29:49 +09:00
eigger 9f322c9486 fix: 표준 및 현대/기아 차종별 주행거리(A6, ED03, F22E), 연료잔량(2F, 002F) PID 후보 추가 2026-07-29 23:20:59 +09:00
eigger dea0c0c115 fix: 현대/기아 연료잔량(002F) 및 init_commands 정리 2026-07-29 23:19:51 +09:00
eigger f6ba3053c2 style: init_commands 간소화 (ATSP6, ATSH7E0) 2026-07-29 23:10:46 +09:00
eigger 8764564254 refactor: init_commands에만 ATSH7E0 헤더 지정하고 센서별 pre_commands 제거 2026-07-29 23:08:33 +09:00
eigger d57f05d7d5 fix: RPM, Speed, 연료잔량(%), 주행거리 전체 센서에 ATSH7E0 헤더 지정 2026-07-29 23:07:15 +09:00
eigger 9776838e0b fix: 현대/기아 PID 헤더(ATSH743, ATSH7E0) pre_commands 추가 2026-07-29 23:06:02 +09:00
eigger 730994fd0d add: 현대/기아 기본 OBD-II PID 템플릿 추가 (RPM, 속도, 연료잔량, 총 주행거리) 2026-07-29 22:33:53 +09:00
eiggerandClaude Sonnet 4.6 327b7d89d8 feat: add APT door event sensor and fix parking beacon filter
1. parking_beacon: manufacturer_hex_prefix "04" 추가
   - SmartKey 인증 패킷(07xx, 22B)이 parking_floor/location을 오염시키던 문제 수정
   - length: 14 (정확한 길이 일치)로 22B 패킷 디코드 단계에서도 차단

2. apt_key_door 신규 추가
   - manufacturer_id 861 + prefix "02" → 출입 이벤트 6바이트 패킷만 매칭
   - instance_mode: shared, MAC 지정 없음
   - door_status: entering / exiting / idle 텍스트 센서
   - publish.min_interval: 1s (기본 10s 오버라이드, 이벤트가 수 초 내 전환)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-30 20:38:52 +09:00
eigger e4ea9de7ff Merge branch 'main' of https://github.com/eigger/hassble-config 2026-06-30 20:15:52 +09:00
eiggerandClaude Sonnet 4.6 adba2af62b fix: exclude SmartKey auth/event packets from parking_beacon matching
Added manufacturer_hex_prefix: "04" to parking_beacon match config.
Without this, the 22-byte SmartKey authentication broadcast (type 07)
also matched manufacturer_id 0x035D with min_length: 14, corrupting
parking_floor and parking_location with encrypted payload bytes.

Packet types (all mfr_id 0x035D):
  04xx = parking location response (14B) ← intended target
  07xx = SmartKey auth broadcast (22B)   ← now excluded
  02xx = door entry/exit event (6B)      ← excluded by min_length

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-30 20:13:16 +09:00
eigger e787fab0b5 docs: Add contribution guidelines and templates for English and Korean 2026-06-26 09:12:59 +09:00
eigger 94ddb8fdda Simplify OBD init command lists
Remove redundant OBD initialization commands (ATZ, ATE0, ATL0, ATS0, ATH0) from configs. config.yaml now only uses ATSP6 for the device, and templates.yaml clears init_commands for one template and sets only ATSP6 for the other. This reduces unnecessary reset/echo/linefeed commands and relies on explicit protocol selection.
2026-06-26 09:00:48 +09:00
eiggerandCursor 0fe6f00782 fix: align parking_beacon template with config.yaml (parking_floor)
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 12:22:19 +09:00
eiggerandCursor b9f8396347 docs: update Korean README for templates.yaml and fixed repo layout
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 12:14:16 +09:00
eiggerandCursor e38b2cc954 Add templates.yaml for HassBle import template feature
Include Jaalee JHT, parking beacon, OBD, and GATT starter templates. Update README for fixed config.yaml + templates.yaml layout.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-25 12:13:55 +09:00
eigger 2dfb54ee0d Change min_length to length in config.yaml 2026-06-24 22:00:12 +09:00
eiggerandClaude Sonnet 4.6 b71ad124e9 feat: add icons to parking beacon sensors
- parking_time: mdi:clock-time-four-outline
- parking_floor: mdi:layers-outline
- parking_location: mdi:map-marker-outline

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-24 21:23:13 +09:00
eiggerandClaude Sonnet 4.6 dc7893d4f9 fix: remove state_class from parking_floor (not measurement, just no state_class)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-24 21:16:20 +09:00
eiggerandClaude Sonnet 4.6 c6b8b2a90e fix: remove invalid state_class: none from parking_floor and parking_location
state_class: none is parsed as the string "none" by kaml/snakeyaml (not null).
ConfigValidator treated any unknown state_class as ERROR, so parking_floor was
silently excluded from entity declarations — it never reached Home Assistant.

- parking_floor: changed to state_class: measurement (correct for floor number)
- parking_location: removed state_class: none (meaningless for text_sensor)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-24 21:12:27 +09:00
eigger 1cac58d9c9 Add state_class field to parking_floor and parking_location 2026-06-24 19:22:19 +09:00
eigger c3cc09934f Remove unit from parking_location configuration
Removed unit specification for parking_location in config.
2026-06-24 19:19:04 +09:00
eigger 429fce43d0 Add accuracy and unit fields to config.yaml
Added accuracy_decimals and unit fields for parking_floor and parking_location.
2026-06-24 10:10:15 +09:00
eiggerandClaude Sonnet 4.6 20d2a273a4 docs: split README into English and Korean versions
README.md rewritten as English-only with cross-link to README.ko.md.
README.ko.md added as Korean-only translation.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-23 22:29:08 +09:00
eigger e8f2940471 Merge branch 'main' of https://github.com/eigger/hassble-config 2026-06-23 22:21:55 +09:00
eiggerandClaude Sonnet 4.6 476a6044f1 docs: add comprehensive bilingual config schema reference (EN/KO)
Full documentation of every config.yaml field — root structure, defaults,
all three device sources (advertisement/gatt_notify/obd), match conditions,
decode types, controls, publish rules, OBD preset table, and 5 full examples.
Includes common pitfalls (hex literals, AND-logic, instance_mode, source_field).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-23 21:27:49 +09:00
eigger fa1350f08c Comment out Jaalee JHT settings in config.yaml
Comment out Jaalee JHT configuration and sensor definitions.
2026-06-23 20:24:52 +09:00
eigger a3b8a87a78 Update parking configuration in config.yaml
Removed parking_battery configuration and added parking_floor.
2026-06-23 19:24:20 +09:00
eigger 65adb24684 Comment out custom BLE meter configuration
Commented out the custom BLE meter configuration in config.yaml.
2026-06-23 07:41:36 +09:00
eigger 5453d630e1 fix: remove invalid state_class: measurement from timestamp sensor 2026-06-22 23:06:12 +09:00
eiggerandClaude Sonnet 4.6 4cfe62b67f Fix Jaalee JHT match: remove service_data_uuid AND logic, use iBeacon prefix
service_data_uuid + manufacturer_id 두 조건 AND 매칭이 실패 원인:
Android BLE 스캔 결과에서 F51C 서비스 UUID가 service data 또는 service UUID
목록에 포함되지 않으면 항상 NO MATCH 발생.

Fix: service_data_uuid 제거, manufacturer_hex_prefix "0215" (iBeacon 타입 마커)로
대체 → Apple 제조사 데이터(ID 76)로 시작하는 iBeacon 포맷 기기만 매칭.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-22 20:54:02 +09:00
eiggerandClaude Sonnet 4.6 8fbd951a78 Use decimal manufacturer_id to avoid YAML hex literal parsing issues
kaml (Kotlin YAML) hex literal (0x...) parsing is unreliable — convert to
decimal to ensure correct type parsing by the Android app:
  Jaalee JHT:      0x004C → 76  (Apple Inc.)
  Parking beacon:  0x035D → 861

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-22 20:28:02 +09:00
eigger e6fea126b8 Remove manufacturer_hex_prefix from config.yaml
Removed manufacturer_hex_prefix from match criteria
2026-06-22 19:40:51 +09:00
eiggerandCursor 75d9b0675a Fix Jaalee JHT match for F51C service and iBeacon fingerprint.
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-22 18:04:58 +09:00
eigger 1deaf6aa96 Remove service_data_uuid from config.yaml 2026-06-22 17:51:22 +09:00
eigger 12a1150809 Update service_data_uuid in config.yaml 2026-06-22 17:49:15 +09:00
eiggerandCursor c922232f14 Replace thermometer with Jaalee JHT and add shared parking beacon sensors.
Configure MAC-per-instance Jaalee decoding and manufacturer 0x035D parking time, battery, and location.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-22 16:51:56 +09:00
eigger ea44b2ef6c Update fuel_level configuration in config.yaml
Removed filters from fuel_level configuration and added publish settings.
2026-06-22 13:59:32 +09:00
eigger 91688ae5d3 Remove hardcoded MAC addresses and include full ELM327 initialization commands 2026-06-22 13:20:59 +09:00
eigger 981041a94b Initial commit with config.yaml, README, and LICENSE 2026-06-22 13:19:54 +09:00