Commit Graph
36 Commits
Author SHA1 Message Date
Piotr TrzcinskiandClaude Opus 5.5 fb97346806 fix: read PSA DPF values big-endian, add fuel level candidates
Validate YAML Configs / Validate YAML Schema (push) Successful in 10s
OBDb marks D52F/D519/D525/D530 as little-endian, which showed 425 %
soot and 1632 km since regeneration next to 0.32 g/L soot load.
Big-endian gives 1.7 % and 6.4 km, consistent with the soot load.

The ECU does not answer 01 2F, so add OBDb's three PSA fuel level
sources on the engine ECU (22 0227, 22 040F, 21 A8).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 12:05:30 +02:00
Piotr TrzcinskiandClaude Opus 5.5 36a505b0e5 feat: fix adapter UUIDs and add PSA engine ECU sensors
Validate YAML Configs / Validate YAML Schema (push) Successful in 1m9s
The adapter (IOS-Vlink) advertises service 0x18F0, so use the
18F0/2AF1/2AF0 layout instead of the Vgate E7810A71 guess.

Add 26 UDS mode 22 sensors from the Bosch MD1CS003 engine ECU
(header 6A8, replies from 688) using OBDb's Citroen signal set:
DPF soot level/load, regeneration status and distances, exhaust
temperatures around the catalyst, AdBlue range/volume/temperature,
oil temperature/pressure and service distance, ECU odometer, fuel
rail pressure, gear, water in diesel and battery data. The exhaust
temperatures and DPF pressure deviation match Car Scanner readings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 11:17:49 +02:00
Piotr TrzcinskiandClaude Opus 5.5 6f2cf62a2c feat: add DPF and exhaust temperature sensors
Validate YAML Configs / Validate YAML Schema (push) Successful in 1m17s
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
Piotr TrzcinskiandClaude Opus 5.5 670fb8bc81 feat: trim config to Toyota Proace City with Vgate iCar Pro BLE
Validate YAML Configs / Validate YAML Schema (push) Failing after 38s
Single OBD device with standard SAE J1979 PIDs, matching template,
Polish README pointing to the Gitea-hosted app, GitHub-only files removed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-11 09:14:55 +02:00
eiggerandClaude Opus 5 9e55c585f9 feat(door): add door_event event entity for pass-through timestamps
Validate YAML Configs / Validate YAML Schema (push) Failing after 11m0s
door_status stays at the same value on every pass, so HA never moves
last_changed and the logbook cannot show when the door was actually used.
An event entity's state is the timestamp of the last occurrence, so a repeated
event_type still updates it, and it is not restored across HA restarts — no
stale "entering" coming back after a reboot.

Both entities are derived from the same advertisement: door_status for the
current state, door_event for when it happened. heartbeat: 60s lets the same
event_type fire again after 60s, which is once per pass in practice.

Also teach scripts/validate.py the event platform, mirroring the app's
ConfigValidator rules: event_types required (error), map values missing from
event_types, absent decode.map, numeric metadata, and a publish rule whose
on_change_only suppresses repeats (warnings). The inherited publish rule
(sensor > device > defaults) is now threaded down to sensor validation.

Requires HassBle 1.5.0 or newer — event_types is a new key and older versions
parse config.yaml in strict mode.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-09 22:40:52 +09:00
eigger 9b937c8840 Update config.yaml to comment out advertise section
Commented out the advertise section and modified the state mapping for authentication.
2026-09-06 17:33:23 +09:00
eiggerandCursor d2e399afc2 feat(parking): set APT SmartKey advertise local_name
parking_beacon requests include Complete Local Name. Requires HassBle 1.4.1.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 08:11:17 +09:00
eiggerandCursor c596db47bf feat(parking): persist request counter and 0x41/0x40 payload phases
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-01 15:55:50 +09:00
eigger e4851696eb feat: add location request advertise and button to parking_beacon 2026-08-30 19:06:57 +09:00
eigger b4fc6f799f feat(advertise): add BLE advertising TX schema, templates, and validation
- Update scripts/validate.py with advertise block and control action validation
- Update templates.yaml with mytown_parking_beacon advertising TX template
- Add commented parking beacon TX/RX example to config.yaml
- Document advertise schema, counter_mode, counter_start, and control actions in README.md / README.ko.md
2026-08-28 21:55:05 +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 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 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
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