fix(report): 운전모드 펌프 가동 판정 — 상태 포맷 매칭 버그 #10

Merged
windpacer merged 1 commits from fix/pump-run-detection-format into main 2026-06-19 07:06:29 +09:00
Owner

버그

DetectMode가 펌프 livevalueIN (1,5,L-RUN,R-RUN)정확일치 비교했으나, realtime_table은 디지털 상태점을 {5 | R-RUN | } 포맷으로 저장(FormatValue). 절대 매칭 안 됨 → pumpRunning 항상 false → 펌프 설정된 컬럼(C-6111 등)은 가동 중에도 무조건 미가동(idle) 오판정. 카드 state·알람 진실원이 틀어짐.

수정

LIKE %RUN%로 RUN 라벨 부분일치(TRIP/FAULT/STOP은 RUN 미포함→정지로 올바르게 처리). 구 bare 값도 허용.

라이브 검증

C-6111(P-6102/P-6118 모두 R-RUN) 펌프 가동수 0→2 → 정상(normal) 복구. feed 400·product 355·vac 113도 정상 일치.

적용: 머지 후 크롤러 재시작 시 LiveKpi가 올바른 모드 재계산.

🤖 Generated with Claude Code

## 버그 DetectMode가 펌프 `livevalue`를 `IN (1,5,L-RUN,R-RUN)`로 **정확일치** 비교했으나, realtime_table은 디지털 상태점을 `{5 | R-RUN | }` 포맷으로 저장(FormatValue). 절대 매칭 안 됨 → `pumpRunning` **항상 false** → 펌프 설정된 컬럼(C-6111 등)은 가동 중에도 **무조건 미가동(idle)** 오판정. 카드 state·알람 진실원이 틀어짐. ## 수정 `LIKE %RUN%`로 RUN 라벨 부분일치(TRIP/FAULT/STOP은 RUN 미포함→정지로 올바르게 처리). 구 bare 값도 허용. ## 라이브 검증 C-6111(P-6102/P-6118 모두 R-RUN) 펌프 가동수 **0→2** → 정상(normal) 복구. feed 400·product 355·vac 113도 정상 일치. 적용: 머지 후 크롤러 재시작 시 LiveKpi가 올바른 모드 재계산. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
windpacer added 1 commit 2026-06-19 07:06:27 +09:00
DetectMode가 펌프 livevalue를 IN ('1','5','L-RUN','R-RUN')로 정확일치 비교했으나,
realtime_table은 디지털 상태점을 '{5 | R-RUN | }' 포맷으로 저장(FormatValue) →
절대 매칭 안 됨 → pumpRunning 항상 false → 펌프 설정된 컬럼은 가동 중에도 무조건
'미가동(idle)'으로 오판정(카드 state·알람 진실원 오류).

LIKE '%RUN%'로 RUN 라벨 부분일치(TRIP/FAULT/STOP은 RUN 미포함→정지). 구 bare 값도 허용.
라이브 검증: C-6111 펌프 가동수 0→2 → 정상(normal) 판정 복구.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
windpacer merged commit df8ce46604 into main 2026-06-19 07:06:29 +09:00
Sign in to join this conversation.
No Reviewers
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: windpacer/HC900-Crawler#10