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>
This commit is contained in:
eiggerandClaude Sonnet 4.6 committed 2026-06-30 20:38:52 +09:00
1 parent e4ea9de7ff
commit 327b7d89d8
1 file changed
+29
+29
View File
@@ -80,6 +80,35 @@ devices:
length: 14 length: 14
decode: { offset: 12, length: 2, type: string } decode: { offset: 12, length: 2, type: string }
# APT SmartKey 출입문 이벤트 — 고정 MAC으로 하드웨어 필터, 02xx 6바이트 패킷만 파싱
# payload 6바이트: [0]=02(이벤트타입), [1..3]=05 00 55, [4]=상태, [5]=카운터
# byte[4] 상태값: 0x41(65)=entering_start, 0x01(1)=entering, 0x40(64)=exiting, 0x00(0)=idle
# 0x41→0x01 두 값 모두 "entering"으로 매핑 → on_change_only가 중간 전환 노이즈 제거
- id: apt_key_door
name: "APT Door Event"
source: advertisement
instance_mode: shared
match:
manufacturer_id: 861 # 0x035D
manufacturer_hex_prefix: "02" # 출입 이벤트 타입만 (07xx=인증 22B, 04xx=주차응답 14B 제외)
sensors:
- key: door_status
platform: text_sensor
icon: mdi:door
source_field: manufacturer_data
length: 6
publish:
min_interval: 1s # 기본 10s 오버라이드 — 이벤트가 수 초 내 전환됨
decode:
offset: 4
length: 1
type: uint8
map:
"65": "entering" # 0x41 인증 시작
"1": "entering" # 0x01 인증 완료 (entering과 동일 → 전환 노이즈 제거)
"64": "exiting" # 0x40
"0": "idle" # 0x00
# ────────────────────────────────────────────────────────────── # ──────────────────────────────────────────────────────────────
# Path C: OBD (ELM327) over BLE # Path C: OBD (ELM327) over BLE
# ────────────────────────────────────────────────────────────── # ──────────────────────────────────────────────────────────────