From adba2af62b7b3a1258041adc4d6f484ade787a58 Mon Sep 17 00:00:00 2001 From: eigger Date: Tue, 30 Jun 2026 20:13:16 +0900 Subject: [PATCH] fix: exclude SmartKey auth/event packets from parking_beacon matching MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- config.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/config.yaml b/config.yaml index ce696a7..4703954 100644 --- a/config.yaml +++ b/config.yaml @@ -50,13 +50,15 @@ devices: # decode: { offset: 23, length: 1, type: uint8 } # Parking beacon — instance_mode: shared → MAC 무관, manufacturer 0x035D 광고가 하나의 엔티티 공유 - # payload 14바이트: [7..10]=월·일·시·분, [11]=배터리(역산), [12..13]=코드 + # payload 14바이트: [0]=04(응답타입), [1..6]=KeyMAC, [7..10]=월·일·시·분, [11]=층(256-raw), [12..13]=구역코드 + # 04xx: 주차위치 응답 비콘, 07xx: SmartKey 인증(22B 암호화), 02xx: 출입 이벤트(6B) — prefix "04" 로 응답만 매칭 - id: parking_beacon name: "Parking Beacon" source: advertisement instance_mode: shared match: - manufacturer_id: 861 # 0x035D + manufacturer_id: 861 # 0x035D + manufacturer_hex_prefix: "04" # 응답 비콘만 매칭 (07=SmartKey 인증, 02=출입 이벤트 제외) sensors: - key: parking_time device_class: timestamp