MDK Logo
ReferenceUI KitReactHooks

useCabinetDetail

Reads the selected LV cabinet from `devicesStore`, re-fetches its family of powermeters and temperature sensors by root (@link useCabinetDevices) at the real…

Reads the selected LV cabinet from `devicesStore`, re-fetches its family of powermeters and temperature sensors by root ({@link useCabinetDevices}) at the realtime cadence, and shapes them into the read-only rows the {@link CabinetDetailCard} renders — powermeter readings (→ kW), the root plus per-position temperature readings (severity-coloured), and the active-warnings timeline folded from every device's `last.alerts`.

import { useCabinetDetail } from "@tetherto/mdk-react-devkit";

Signature

(onNavigate?: (path: string) => void) => UseCabinetDetailResult
Package@tetherto/mdk-react-devkit