Redesign device front panel: rack PDU (USPPDUP) #11

Closed
opened 2026-11-05 10:26:24 -05:00 by jared · 0 comments
Owner

Make the front panel on the device page match the real hardware. This covers one model so it can be checked against the physical unit.

Device: RPDU (UniFi model code USPPDUP, reported by UniFi as type usw with 1 port)

Current state

SWITCH_LAYOUTS in static/port-inspector.js:

'USPPDUP': { rows: [[1]] }

This draws a single network port, and README lists it as "Custom/other, single-port fallback". What matters on a PDU is its outlets, and none of them appear on the panel.

What the panel should show

  • Every outlet in its physical position, with its name, on/off state and power draw.
  • Which outlets have auto power-cycle enabled, and when one last fired. This ties into the modem power-cycle detection already on the dashboard.
  • The single network port, shown as management rather than as the main feature.

Things to handle

  • An outlet can read 0 W while its device is plugged in and working, as the modem's outlet does. Don't draw 0 W as "off" or "nothing connected", because on/off state and metered power are separate facts.
  • A rendering path for outlets is needed, since renderChassis only draws network ports. Outlet data is already collected through outlet_table.

Verify against the unit or datasheet

  • Outlet count, numbering and physical arrangement, including any groups with different connector types.
  • Which values UniFi reports per outlet and which only for the whole unit.

Acceptance criteria

  • Outlet layout and numbering match a reference photo of the unit
  • Each outlet shows name, state and power draw, and 0 W isn't shown as off
  • Auto power-cycle outlets are marked
  • Outlet detail is available on click and by keyboard
  • This view is read-only, with no outlet control added
  • README's description is corrected
  • No sideways page scroll at phone width
  • Reference photo or datasheet link is recorded on this issue
Make the front panel on the device page match the real hardware. This covers one model so it can be checked against the physical unit. **Device:** `RPDU` (UniFi model code `USPPDUP`, reported by UniFi as type `usw` with 1 port) ## Current state `SWITCH_LAYOUTS` in `static/port-inspector.js`: ```js 'USPPDUP': { rows: [[1]] } ``` This draws a single network port, and README lists it as "Custom/other, single-port fallback". What matters on a PDU is its outlets, and none of them appear on the panel. ## What the panel should show - Every outlet in its physical position, with its name, on/off state and power draw. - Which outlets have auto power-cycle enabled, and when one last fired. This ties into the modem power-cycle detection already on the dashboard. - The single network port, shown as management rather than as the main feature. ## Things to handle - An outlet can read 0 W while its device is plugged in and working, as the modem's outlet does. Don't draw 0 W as "off" or "nothing connected", because on/off state and metered power are separate facts. - A rendering path for outlets is needed, since `renderChassis` only draws network ports. Outlet data is already collected through `outlet_table`. ## Verify against the unit or datasheet - Outlet count, numbering and physical arrangement, including any groups with different connector types. - Which values UniFi reports per outlet and which only for the whole unit. ## Acceptance criteria - [ ] Outlet layout and numbering match a reference photo of the unit - [ ] Each outlet shows name, state and power draw, and 0 W isn't shown as off - [ ] Auto power-cycle outlets are marked - [ ] Outlet detail is available on click and by keyboard - [ ] This view is read-only, with no outlet control added - [ ] README's description is corrected - [ ] No sideways page scroll at phone width - [ ] Reference photo or datasheet link is recorded on this issue
jared closed this issue 2026-11-05 11:16:36 -05:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: LotusGuild/gandalf#11