ubiquiti: source the PoE budget 16 switches already quote in prose (#130) #2012

Merged
jaylouisw merged 1 commit from catalogue/1118-1756 into main 2026-11-18 18:35:22 +00:00
Owner

References #130 (does not close it).

The audit-poe-budget "prose" cohort - models whose description already quotes a PoE budget while poe.budgetW is absent, so show power inline prints "budget not modelled" and refuses the arithmetic - was 41 models. Sixteen are Ubiquiti switches whose tech-spec page states one unambiguous figure in Total PoE Availability. Those figures are now fields, each with the page it came from.

device Total PoE Availability tech-spec page bytes
USW-Mission-Critical 120W https://techspecs.ui.com/unifi/switching/usw-mission-critical 703,290
USW-Industrial 430W https://techspecs.ui.com/unifi/switching/usw-industrial 625,477
USW-Industrial-DIN-8-PoE Max. 480W https://techspecs.ui.com/unifi/switching/usw-industrial-din-8-poe 646,566
USW-LR-Switch-8-PoE 630W https://techspecs.ui.com/unifi/switching/usw-lr-switch-8-poe 632,877
USW-Pro-8-PoE 120W https://techspecs.ui.com/unifi/switching/usw-pro-8-poe 649,460
USW-Pro-Max-24-PoE 400W https://techspecs.ui.com/unifi/switching/usw-pro-max-24-poe 660,948
USW-Pro-XG-8-PoE 155W https://techspecs.ui.com/unifi/switching/usw-pro-xg-8-poe 654,427
USW-Pro-XG-10-PoE 400W https://techspecs.ui.com/unifi/switching/usw-pro-xg-10-poe 661,303
USW-Pro-XG-24-PoE 720W https://techspecs.ui.com/unifi/switching/usw-pro-xg-24-poe 663,304
USW-16-POE 42W https://techspecs.ui.com/unifi/switching/usw-16-poe 643,668
USW-24-POE 95W https://techspecs.ui.com/unifi/switching/usw-24-poe 643,965
USW-48-POE 195W https://techspecs.ui.com/unifi/switching/usw-48-poe 644,011
US-XG-6POE 170W https://techspecs.ui.com/unifi/switching/us-xg-6poe 585,720
UISP-S 110W https://techspecs.ui.com/uisp/wired/uisp-s 583,820
UISP-S-Plus 160W (with included power adapter) https://techspecs.ui.com/uisp/wired/uisp-s-plus 584,713
UISP-S-Pro 220W https://techspecs.ui.com/uisp/wired/uisp-s-pro-u 584,386

Every figure was read from the live page today (2026-11-18, crawler UA, HTTP 200) and matches the number the description already quoted - this PR promotes prose to field, it does not change any value. Two markup dialects were needed: the unifi/switching/* pages publish "value":"95W" ... "label":"Total PoE Availability" in the Next.js payload, the uisp/wired/* pages publish <td class="key">Total available PoE</td><td class="value">110W</td>. A name-based extractor that only understood the first dialect would have reported the three UISP switches and US-XG-6POE as "no budget published"; they are not.

Deliberately left silent, because the published budget is a table rather than a number and a single budgetW would be a guess:

  • USW-Pro-XG-48-PoE - 1,080 W at 200-240 V AC, 972 W at 100-120 V AC
  • ECS-48-PoE, ECS-48S-PoE - 2,150 W shared mode / 950 W redundant mode
  • ECS-24S-PoE - 1,050 W shared / 450 W redundant
  • EAV-XG-24-PoE - 2,150 W shared / 1,050 W redundant across two PSU modules
  • USW-Flex - 46 W / 20 W / 8 W depending on the PoE input
  • USW-Ultra - 42 W / 16 W / 42 W / 52 W / 202 W depending on adapter
  • UDB-Switch - 35 W / 185 W depending on adapter

Those eight want a decision about what a single-number field means when the vendor publishes a matrix; they stay in the audit's prose cohort rather than getting a plausible maximum.

Effect: node scripts/audit-poe-budget.js silent 130 -> 114, prose cohort 41 -> 25, orphan 0. show power inline now has a budget for these sixteen instead of printing "budget not modelled".

Gates: syntax-check.js 419 files OK; audit-port-types.js "No port contradicts its declared type"; test/hardware-invariants.test.js 26 passed / 0 failed; test/poe.test.js 18 passed / 0 failed; check-control-bytes.js clean; regen-registry-doc.js --check current (2,357 models, 258 vendors); test/request-queue.test.js 32/0; test/apply-research.test.js 10/0.

References #130 (does not close it). The `audit-poe-budget` "prose" cohort - models whose description already quotes a PoE budget while `poe.budgetW` is absent, so `show power inline` prints "budget not modelled" and refuses the arithmetic - was 41 models. Sixteen are Ubiquiti switches whose tech-spec page states one unambiguous figure in **Total PoE Availability**. Those figures are now fields, each with the page it came from. | device | Total PoE Availability | tech-spec page | bytes | |--|--|--|--| | USW-Mission-Critical | 120W | <https://techspecs.ui.com/unifi/switching/usw-mission-critical> | 703,290 | | USW-Industrial | 430W | <https://techspecs.ui.com/unifi/switching/usw-industrial> | 625,477 | | USW-Industrial-DIN-8-PoE | Max. 480W | <https://techspecs.ui.com/unifi/switching/usw-industrial-din-8-poe> | 646,566 | | USW-LR-Switch-8-PoE | 630W | <https://techspecs.ui.com/unifi/switching/usw-lr-switch-8-poe> | 632,877 | | USW-Pro-8-PoE | 120W | <https://techspecs.ui.com/unifi/switching/usw-pro-8-poe> | 649,460 | | USW-Pro-Max-24-PoE | 400W | <https://techspecs.ui.com/unifi/switching/usw-pro-max-24-poe> | 660,948 | | USW-Pro-XG-8-PoE | 155W | <https://techspecs.ui.com/unifi/switching/usw-pro-xg-8-poe> | 654,427 | | USW-Pro-XG-10-PoE | 400W | <https://techspecs.ui.com/unifi/switching/usw-pro-xg-10-poe> | 661,303 | | USW-Pro-XG-24-PoE | 720W | <https://techspecs.ui.com/unifi/switching/usw-pro-xg-24-poe> | 663,304 | | USW-16-POE | 42W | <https://techspecs.ui.com/unifi/switching/usw-16-poe> | 643,668 | | USW-24-POE | 95W | <https://techspecs.ui.com/unifi/switching/usw-24-poe> | 643,965 | | USW-48-POE | 195W | <https://techspecs.ui.com/unifi/switching/usw-48-poe> | 644,011 | | US-XG-6POE | 170W | <https://techspecs.ui.com/unifi/switching/us-xg-6poe> | 585,720 | | UISP-S | 110W | <https://techspecs.ui.com/uisp/wired/uisp-s> | 583,820 | | UISP-S-Plus | 160W (with included power adapter) | <https://techspecs.ui.com/uisp/wired/uisp-s-plus> | 584,713 | | UISP-S-Pro | 220W | <https://techspecs.ui.com/uisp/wired/uisp-s-pro-u> | 584,386 | Every figure was read from the live page today (2026-11-18, crawler UA, HTTP 200) and matches the number the description already quoted - this PR promotes prose to field, it does not change any value. Two markup dialects were needed: the `unifi/switching/*` pages publish `"value":"95W" ... "label":"Total PoE Availability"` in the Next.js payload, the `uisp/wired/*` pages publish `<td class="key">Total available PoE</td><td class="value">110W</td>`. A name-based extractor that only understood the first dialect would have reported the three UISP switches and US-XG-6POE as "no budget published"; they are not. **Deliberately left silent**, because the published budget is a table rather than a number and a single `budgetW` would be a guess: - `USW-Pro-XG-48-PoE` - 1,080 W at 200-240 V AC, 972 W at 100-120 V AC - `ECS-48-PoE`, `ECS-48S-PoE` - 2,150 W shared mode / 950 W redundant mode - `ECS-24S-PoE` - 1,050 W shared / 450 W redundant - `EAV-XG-24-PoE` - 2,150 W shared / 1,050 W redundant across two PSU modules - `USW-Flex` - 46 W / 20 W / 8 W depending on the PoE input - `USW-Ultra` - 42 W / 16 W / 42 W / 52 W / 202 W depending on adapter - `UDB-Switch` - 35 W / 185 W depending on adapter Those eight want a decision about what a single-number field means when the vendor publishes a matrix; they stay in the audit's prose cohort rather than getting a plausible maximum. **Effect:** `node scripts/audit-poe-budget.js` silent 130 -> 114, prose cohort 41 -> 25, orphan 0. `show power inline` now has a budget for these sixteen instead of printing "budget not modelled". **Gates:** `syntax-check.js` 419 files OK; `audit-port-types.js` "No port contradicts its declared type"; `test/hardware-invariants.test.js` 26 passed / 0 failed; `test/poe.test.js` 18 passed / 0 failed; `check-control-bytes.js` clean; `regen-registry-doc.js --check` current (2,357 models, 258 vendors); `test/request-queue.test.js` 32/0; `test/apply-research.test.js` 10/0.
ubiquiti: give 16 switches the PoE budget their own spec page states
Some checks failed
CI / Classify the change (pull_request) Successful in 6s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 7s
CI / Server smoke test (pull_request) Successful in 9s
CI / Docker build (pull_request) Successful in 19s
CI / Test (Node 20) (pull_request) Successful in 49s
CI / Test (Node 22) (pull_request) Successful in 52s
CI / Test (Node 18) (pull_request) Successful in 54s
CI / Arm auto-merge (pull_request) Has been cancelled
e86830c062
The poe-budget audit lists 41 models whose description already quotes a
budget while `poe.budgetW` is absent, so the engine reports the PSE ports
and refuses the arithmetic ("budget not modelled"). Sixteen are Ubiquiti
switches whose tech-spec page carries an unambiguous "Total PoE
Availability" figure; those figures are now fields, each with the page it
came from.

Left silent on purpose: the switches whose published budget is a table, not
a number (input-voltage or PSU-mode dependent) - EAV-XG-24-PoE, ECS-24S-PoE,
ECS-48-PoE, ECS-48S-PoE, USW-Pro-XG-48-PoE, USW-Flex, USW-Ultra,
UDB-Switch.
forgejo-actions force-pushed catalogue/1118-1756 from e86830c062
Some checks failed
CI / Classify the change (pull_request) Successful in 6s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 7s
CI / Server smoke test (pull_request) Successful in 9s
CI / Docker build (pull_request) Successful in 19s
CI / Test (Node 20) (pull_request) Successful in 49s
CI / Test (Node 22) (pull_request) Successful in 52s
CI / Test (Node 18) (pull_request) Successful in 54s
CI / Arm auto-merge (pull_request) Has been cancelled
to 8d8d1340f3
All checks were successful
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 3s
CI / Classify the change (pull_request) Successful in 5s
CI / Server smoke test (pull_request) Has been skipped
CI / Docker build (pull_request) Has been skipped
CI / Test (Node 20) (pull_request) Successful in 57s
CI / Test (Node 18) (pull_request) Successful in 1m5s
CI / Test (Node 22) (pull_request) Successful in 44s
CI / Arm auto-merge (pull_request) Successful in 27s
2026-11-18 18:01:21 +00:00
Compare
jaylouisw force-pushed catalogue/1118-1756 from 8d8d1340f3
All checks were successful
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 3s
CI / Classify the change (pull_request) Successful in 5s
CI / Server smoke test (pull_request) Has been skipped
CI / Docker build (pull_request) Has been skipped
CI / Test (Node 20) (pull_request) Successful in 57s
CI / Test (Node 18) (pull_request) Successful in 1m5s
CI / Test (Node 22) (pull_request) Successful in 44s
CI / Arm auto-merge (pull_request) Successful in 27s
to 81e9dcff8a
All checks were successful
CI / Classify the change (pull_request) Successful in 5s
PR rebase / Rebase onto main and arm auto-merge (pull_request) Successful in 3s
CI / Server smoke test (pull_request) Has been skipped
CI / Docker build (pull_request) Has been skipped
CI / Test (Node 20) (pull_request) Successful in 50s
CI / Test (Node 22) (pull_request) Successful in 51s
CI / Test (Node 18) (pull_request) Successful in 55s
CI / Arm auto-merge (pull_request) Successful in 31s
2026-11-18 18:29:00 +00:00
Compare
jaylouisw deleted branch catalogue/1118-1756 2026-11-18 18:35:24 +00:00
Sign in to join this conversation.
No description provided.