# Ubiquiti UniFi Switch 24 Pro
# Converted from the punchdown catalog on 2026-11-10. Source of the data: netbox. Image link found by web research on 2026-11-11.
network: 1
imports:
  - ../../defaults/types.network.yaml
models:
  ubiquiti/usw-pro-24:
    name: UniFi Switch 24 Pro
    vendor: Ubiquiti
    role: switch
    aliases: [ USW-Pro-24 ]
    mount: 19in
    size: { units: 1 }
    weight: 3.583
    power: { max: 30, inlets: 2 }
    x-assumed: [ power ports are on the rear ]
    ports:
      port-1..24: { type: 1000base-t, native: "Port {n}" }
      port-25-sfp+: { type: 10gbase-x-sfpp, native: Port 25 - SFP+ }
      port-26-sfp+: { type: 10gbase-x-sfpp, native: Port 26 - SFP+ }
      input: { type: iec-60320-c14, role: power, side: rear, native: Input }
      usp-rps-connector-for-psu-failover: { type: ubiquiti-smartpower, role: power, side: rear, native: USP-RPS connector for PSU failover }
    x-airflow: front-to-rear
    x-full-depth: false
    faces:
      front:
        background: "#c9c9c9"
        padding: { x: 3, y: 2 }
        layout:
          column:
            gap: 1.6
            align: start
            items:
              # Five long slots, each measured from the photo.
              - row:
                  gap: 0
                  items:
                    - { cutout-horizontal-slots: { width: 74.2, height: 3.2, margin: { left: 33.2 }, mask: { pattern: { length: 74.2, thickness: 1.8, columns: 1, margin: 0 } } } }
                    - { cutout-horizontal-slots: { width: 74.2, height: 3.2, margin: { left: 2.3 }, mask: { pattern: { length: 74.2, thickness: 1.8, columns: 1, margin: 0 } } } }
                    - { cutout-horizontal-slots: { width: 74.4, height: 3.2, margin: { left: 2.7 }, mask: { pattern: { length: 74.4, thickness: 1.8, columns: 1, margin: 0 } } } }
                    - { cutout-horizontal-slots: { width: 74.1, height: 3.2, margin: { left: 3.1 }, mask: { pattern: { length: 74.1, thickness: 1.8, columns: 1, margin: 0 } } } }
                    - { cutout-horizontal-slots: { width: 74.9, height: 3.2, margin: { left: 2.8 }, mask: { pattern: { length: 74.9, thickness: 1.8, columns: 1, margin: 0 } } } }
              - row:
                  gap: 0
                  width: 434
                  items:
                    - screen: { id: touchscreen, width: 23.4, height: 24, margin: { left: 1.8 }, caption: { text: "USW Pro ⚡", text-style: { size: 3.17, weight: bold } } }
                    # 1 above 2, in two blocks of twelve.
                    - grid: { ports: port-1..24, rows: 2, order: odd-top, groups: 6, gap: 0, group-gap: 1, margin: { left: 182.4, right: 22.6 } }
                    - grid: { ports: [port-25-sfp+, port-26-sfp+], rows: 2, gap: 4.6, margin: { right: 11 } }
                    - button: { id: reset, width: 2, height: 2, caption: { text: RESET, side: right, gap: 0.8, text-style: { size: 2.17 } } }
      rear:
        background: "#c4c4c4"
        padding: { x: 3, y: 2 }
        layout:
          column:
            gap: 0.3
            align: start
            items:
              # Five long slots, cut square at the ends.
              - row:
                  gap: 0
                  items:
                    - { cutout-horizontal-slots: { width: 75.6, height: 3.3, margin: { left: 14.7 }, mask: { pattern: { length: 75.6, thickness: 1.6, columns: 1, margin: 0, ends: square } } } }
                    - { cutout-horizontal-slots: { width: 75.9, height: 3.3, margin: { left: 2.7 }, mask: { pattern: { length: 75.9, thickness: 1.6, columns: 1, margin: 0, ends: square } } } }
                    - { cutout-horizontal-slots: { width: 75.6, height: 3.3, margin: { left: 2.7 }, mask: { pattern: { length: 75.6, thickness: 1.6, columns: 1, margin: 0, ends: square } } } }
                    - { cutout-horizontal-slots: { width: 75.6, height: 3.3, margin: { left: 3.0 }, mask: { pattern: { length: 75.6, thickness: 1.6, columns: 1, margin: 0, ends: square } } } }
                    - { cutout-horizontal-slots: { width: 75.6, height: 3.3, margin: { left: 3.0 }, mask: { pattern: { length: 75.6, thickness: 1.6, columns: 1, margin: 0, ends: square } } } }
              - row:
                  gap: 0
                  width: 434
                  items:
                    - column:
                        gap: 2
                        align: start
                        margin: { left: 2 }
                        items:
                          - panel: { id: serial-label, width: 24.6, height: 11.5, color: "#d9d9d9", margin: { left: 10.8 } }
                          - row: { gap: 1, items: [ { label: { text: USP RPS  OFF / ON, width: 9.8, height: 6 } }, { usp-rps-connector-for-psu-failover: { label-position: none } } ] }
                          - label: { text: USP CONNECT, width: 13, height: 2.4, margin: { left: 27 } }
                    - grow
                    - label: { text: "M/N: USW-Pro-24  Ubiquiti Inc.  CE UKCA", width: 50.6, height: 10, margin: { right: 18 } }
                    - input: { label-position: none, margin: { right: 30 }, caption: { text: "Input: 100-240V~ 5A Max, 50/60Hz", gap: 2.24, text-style: { size: 1.97 } } }
    source:
      url: https://techspecs.ui.com/unifi/switching/usw-pro-24
      checked: 2026-11-11
      x-from: netbox
      x-faces: measured by hand from the NetBox photos on 2026-11-11 (docs/face-examples.md)
      x-netbox: ubiquiti-unifi-switch-24-pro
      x-netbox-elevation: [ front, rear ]
      x-reference-image: https://cdn.ecomm.ui.com/products/2315330e-7a37-4c6b-87df-0743d04e87ca/5281dd32-ad14-40c5-a8d0-2df56a340bae.png
      x-researched: 2026-11-11
