export interface Sensor {
  id: number;
  uuid?: null;
  gridPos: string;
  serialNumber?: null;
  description: string;
  batteryPercentage: number;
  wharfID: number;
  logs?: null;
  sensorStatuses?: null;
  inputPlans?: null;
  sensorDatas?: (SensorDatasEntity)[] | null;
  defaultWaterLevelChanges?: null;
  sensorPumps?: null;
  sensorEnergyConsumptions?: null;
}
export interface SensorDatasEntity {
  id: number;
  waterLevel: number;
  timestamp: string;
  sensorID: number;
}


export interface SensorWithStatus {
  id: number;
  uuid?: null;
  gridPos: string;
  description: string;
  serialNumber?: null;
  batteryPercentage: number;
  wharfID: number;
  isOn: boolean;
  isOnAtWharf: boolean;
  sensorStatusId: number;
  timestamp: string;
}


