m2-inno-bedpressure/types/sensor.ts
2025-06-21 13:29:01 +07:00

24 lines
No EOL
582 B
TypeScript

export interface SensorConfig {
id: string;
x: number;
y: number;
zone: string;
label: string;
pin?: number;
warningThreshold: number;
alarmThreshold: number;
warningDelayMs: number; // Duration in milliseconds before warning escalates to alarm
baseNoise?: number; // For hardware sensors - noise level for analog conversion
}
export interface SensorThresholds {
warningThreshold: number;
alarmThreshold: number;
warningDelayMs: number;
}
export interface SensorZoneConfig {
zone: string;
defaultThresholds: SensorThresholds;
description: string;
}