Skip to content

v0.4.0 - Persistent Notify + Keepalive 30s

Choose a tag to compare

@LemonDouble LemonDouble released this 05 Apr 03:51
· 14 commits to master since this release

주요 변경

Persistent Notify Subscription

  • 기존: 매 ON/OFF 명령마다 start_notify → write → 타임아웃 대기 → stop_notify (BLE 4회 왕복 + 최대 5초)
  • 변경: 연결 시 1회 구독, 연결 유지되는 동안 유지. write 후 버퍼에서 즉시 패턴 매칭
  • 0x0e Unlikely Error 해결: keepalive 상태조회와 사용자 ON/OFF가 동시에 start_notify 하던 충돌 제거

Keepalive 주기 단축

  • 60초 → 30초: 연결이 중간에 끊겨도 빠르게 재연결

성능 개선

  • ON/OFF 명령 시 BLE 라운드트립 4회 → 1회 (write만)
  • Notify 응답이 빠르면 즉시 반영, 없으면 1.5초 후 기대값 사용

업그레이드

HACS에서 업데이트 후 HA 재시작 필요