From 01015da1ff278fca4ba1ca37fb59b607d9af2d69 Mon Sep 17 00:00:00 2001
From: Mic Szillat <mic@freifunk-duesseldorf.de>
Date: Wed, 12 Jul 2023 16:24:06 +0200
Subject: [PATCH] Overhaul UniFi access points (#1266)

* Overhaul UniFi access points

* Format code (yamllint)

* fixup! Overhaul UniFi access points

* fixup! Overhaul UniFi access points

* fixup! Overhaul UniFi access points

* Format code

* fixup! Overhaul UniFi access points

* fixup! Overhaul UniFi access points

* fixup! Overhaul UniFi access points

* Apply suggestions from code review

* Apply suggestions from code review

* Remove duplicate device type

* Update UAP-AC-M.yaml

* Update UAP-IW-HD.yaml

* Update UAP-FlexHD.yaml

* Update UAP-Pro.yaml

* Update UAP-AC-Pro.yaml

* Update UAP-AC-M-Pro.yaml

* Update UAP-AC-Lite.yaml

* Update UAP-AC-LR.yaml

* Update U6-Pro.yaml

* Update U6-Mesh.yaml

* Update U6-Lite.yaml

* Update U6-LR.yaml

* Update U6-IW.yaml

* Update U6-Enterprise.yaml

---------

Co-authored-by: Daniel W. Anner <daniel.anner@danstechsupport.com>
---
 device-types/Ubiquiti/U6-Enterprise.yaml      | 18 +++++---
 device-types/Ubiquiti/U6-IW.yaml              | 41 +++++++++++--------
 device-types/Ubiquiti/U6-LR.yaml              | 17 ++++++--
 device-types/Ubiquiti/U6-Lite.yaml            | 15 ++++++-
 .../{U6-Mesh-US.yaml => U6-Mesh.yaml}         | 13 +++---
 .../Ubiquiti/{U6-PRO.yaml => U6-Pro.yaml}     | 10 +++--
 device-types/Ubiquiti/UAP-AC-LR.yaml          | 12 ++++--
 device-types/Ubiquiti/UAP-AC-Lite.yaml        |  7 +++-
 device-types/Ubiquiti/UAP-AC-M-Pro.yaml       | 15 ++++---
 device-types/Ubiquiti/UAP-AC-M.yaml           |  7 ++--
 device-types/Ubiquiti/UAP-AC-Pro.yaml         | 15 ++++---
 device-types/Ubiquiti/UAP-FlexHD.yaml         | 17 ++++++--
 device-types/Ubiquiti/UAP-IW-HD.yaml          | 34 +++++++++------
 device-types/Ubiquiti/UAP-Pro.yaml            | 13 +++++-
 14 files changed, 163 insertions(+), 71 deletions(-)
 rename device-types/Ubiquiti/{U6-Mesh-US.yaml => U6-Mesh.yaml} (50%)
 rename device-types/Ubiquiti/{U6-PRO.yaml => U6-Pro.yaml} (61%)

diff --git a/device-types/Ubiquiti/U6-Enterprise.yaml b/device-types/Ubiquiti/U6-Enterprise.yaml
index 22e4b6e2..b3da8c7a 100644
--- a/device-types/Ubiquiti/U6-Enterprise.yaml
+++ b/device-types/Ubiquiti/U6-Enterprise.yaml
@@ -1,17 +1,23 @@
 ---
 manufacturer: Ubiquiti
-model: UniFi U6 Access Point Enterprise
+model: U6 Enterprise
 part_number: U6-Enterprise
 slug: ubiquiti-u6-enterprise
 u_height: 0
 is_full_depth: false
-weight: 2.1
-weight_unit: lb
-comments: '[UniFi 6 Enterprise Access Point](https://store.ui.com/products/u6-enterprise)'
+airflow: passive
+weight: 960
+weight_unit: g
+comments: |
+  [U6 Access Point Enterprise](https://store.ui.com/products/u6-enterprise)
 interfaces:
-  - name: Port 1
+  - name: eth0
     type: 2.5gbase-t
     poe_mode: pd
     poe_type: type2-ieee802.3at
-  - name: Wlan 0
+  - name: wlan0
+    type: ieee802.11ax
+  - name: wlan1
+    type: ieee802.11ax
+  - name: wlan2
     type: ieee802.11ax
diff --git a/device-types/Ubiquiti/U6-IW.yaml b/device-types/Ubiquiti/U6-IW.yaml
index 20a9613f..a21eb5cc 100644
--- a/device-types/Ubiquiti/U6-IW.yaml
+++ b/device-types/Ubiquiti/U6-IW.yaml
@@ -1,28 +1,37 @@
 ---
 manufacturer: Ubiquiti
-model: UniFi U6 In-Wall Access Point
+model: U6 In-Wall
 slug: ubiquiti-u6-iw
-part_number: u6-iw
+part_number: U6-IW
 u_height: 0
-comments: '[UniFi 6 In-Wall Access Point](https://store.ui.com/products/access-point-wifi-6-in-wall)'
+comments: |
+  [Access Point U6 In-Wall](https://store.ui.com/products/access-point-wifi-6-in-wall)
 is_full_depth: false
+airflow: passive
+weight: 460
+weight_unit: g
 interfaces:
-  - name: Port 1
+  - name: eth0
     type: 1000base-t
-    poe_mode: pse
+    poe_mode: pd
     poe_type: type2-ieee802.3at
-  - name: Port 2
+  - name: eth1
+    label: '1'
     type: 1000base-t
-  - name: Port 3
+    poe_mode: pse
+    poe_type: type2-ieee802.3at
+  - name: eth2
+    label: '2'
     type: 1000base-t
-  - name: Port 4
+  - name: eth3
+    label: '3'
     type: 1000base-t
-  - name: Port 5
+  - name: eth4
+    label: '4'
     type: 1000base-t
-    poe_mode: pd
-    poe_type: type2-ieee802.3at
-    mgmt_only: true
-  - name: Wlan 0
-    type: ieee802.11n
-  - name: Wlan 1
-    type: ieee802.11ac
+  - name: wlan0
+    type: ieee802.11ax
+  - name: wlan1
+    type: ieee802.11ax
+  - name: wlan2
+    type: ieee802.11ax
diff --git a/device-types/Ubiquiti/U6-LR.yaml b/device-types/Ubiquiti/U6-LR.yaml
index 3141487e..9e4a997d 100644
--- a/device-types/Ubiquiti/U6-LR.yaml
+++ b/device-types/Ubiquiti/U6-LR.yaml
@@ -1,10 +1,21 @@
 ---
 manufacturer: Ubiquiti
-model: U6-LR
+model: U6 Long-Range
+part_number: U6-LR
 slug: ubiquiti-u6-lr
 u_height: 0
 is_full_depth: false
-comments: '[UniFi 6 Long Range Access Point](https://store.ui.com/products/unifi-6-long-range-access-point)'
+comments: |
+  [Access Point U6 Long-Range](https://store.ui.com/products/unifi-6-long-range-access-point)
+airflow: passive
+weight: 800.0
+weight_unit: g
 interfaces:
-  - name: lan0
+  - name: eth0
     type: 1000base-t
+    poe_mode: pd
+    poe_type: type2-ieee802.3at
+  - name: wlan0
+    type: ieee802.11ax
+  - name: wlan1
+    type: ieee802.11ax
diff --git a/device-types/Ubiquiti/U6-Lite.yaml b/device-types/Ubiquiti/U6-Lite.yaml
index 9f68416a..27998ab1 100644
--- a/device-types/Ubiquiti/U6-Lite.yaml
+++ b/device-types/Ubiquiti/U6-Lite.yaml
@@ -1,10 +1,21 @@
 ---
 manufacturer: Ubiquiti
-model: U6-Lite
+model: U6 Lite
+part_number: U6-Lite
 slug: ubiquiti-u6-lite
 u_height: 0
 is_full_depth: false
-comments: '[UniFi 6 Lite Access Point](https://store.ui.com/products/unifi-ap-6-lite)'
+comments: |
+  [UniFi 6 Lite Access Point](https://store.ui.com/products/unifi-ap-6-lite)
+airflow: passive
+weight: 300.0
+weight_unit: g
 interfaces:
   - name: lan0
     type: 1000base-t
+    poe_mode: pd
+    poe_type: type1-ieee802.3af
+  - name: wlan0
+    type: ieee802.11ax
+  - name: wlan1
+    type: ieee802.11ax
diff --git a/device-types/Ubiquiti/U6-Mesh-US.yaml b/device-types/Ubiquiti/U6-Mesh.yaml
similarity index 50%
rename from device-types/Ubiquiti/U6-Mesh-US.yaml
rename to device-types/Ubiquiti/U6-Mesh.yaml
index c40b1fc0..0051f356 100644
--- a/device-types/Ubiquiti/U6-Mesh-US.yaml
+++ b/device-types/Ubiquiti/U6-Mesh.yaml
@@ -1,18 +1,21 @@
 ---
 manufacturer: Ubiquiti
-model: Unifi U6 Mesh Access Point
+model: U6 Mesh
 part_number: U6-Mesh
 slug: ubiquiti-u6-mesh
 u_height: 0
 is_full_depth: false
-comments: '[UniFi 6 Mesh Access Point](https://store.ui.com/collections/unifi-network-wireless/products/access-point-wifi-6-mesh)'
+comments: |
+  [Access Point U6 Mesh](https://store.ui.com/collections/unifi-network-wireless/products/access-point-wifi-6-mesh)
+airflow: passive
+weight: 400
+weight_unit: g
 interfaces:
   - name: eth0
     type: 1000base-t
     poe_mode: pd
     poe_type: type2-ieee802.3at
-    mgmt_only: false
   - name: wlan0
-    type: ieee802.11n
+    type: ieee802.11ax
   - name: wlan1
-    type: ieee802.11ac
+    type: ieee802.11ax
diff --git a/device-types/Ubiquiti/U6-PRO.yaml b/device-types/Ubiquiti/U6-Pro.yaml
similarity index 61%
rename from device-types/Ubiquiti/U6-PRO.yaml
rename to device-types/Ubiquiti/U6-Pro.yaml
index 725c1b5a..5c50b447 100644
--- a/device-types/Ubiquiti/U6-PRO.yaml
+++ b/device-types/Ubiquiti/U6-Pro.yaml
@@ -1,11 +1,15 @@
 ---
 manufacturer: Ubiquiti
-model: Unifi U6 Access Point Professional
-part_number: U6-PRO
+model: U6 Professional
+part_number: U6-Pro
 slug: ubiquiti-u6-pro
 u_height: 0
 is_full_depth: false
-comments: '[UniFi 6 Professional Access Point](https://store.ui.com/products/unifi-ap6-professional)'
+comments: |
+  [Access Point U6 Pro](https://store.ui.com/products/unifi-ap6-professional)
+airflow: passive
+weight: 460
+weight_unit: g
 interfaces:
   - name: Port 1
     type: 1000base-t
diff --git a/device-types/Ubiquiti/UAP-AC-LR.yaml b/device-types/Ubiquiti/UAP-AC-LR.yaml
index 4a333b40..ecb4b14d 100644
--- a/device-types/Ubiquiti/UAP-AC-LR.yaml
+++ b/device-types/Ubiquiti/UAP-AC-LR.yaml
@@ -1,13 +1,19 @@
 ---
 manufacturer: Ubiquiti
-model: UAP-AC-LR
+model: AC Long-Range
+part_number: UAP-AC-LR
 slug: ubiquiti-uap-ac-lr
 u_height: 0
 is_full_depth: false
-comments: '[Unifi AP AC Long Range](https://www.ui.com/unifi/unifi-ap-ac-lr/)'
+comments: |
+  [Access Point AC Long-Range](https://store.ui.com/collections/wireless/products/unifi-ac-lr)
+weight: 240.0
+weight_unit: g
 interfaces:
-  - name: lan0
+  - name: eth0
     type: 1000base-t
+    poe_mode: pd
+    poe_type: type1-ieee802.3af
   - name: wlan0
     type: ieee802.11n
   - name: wlan1
diff --git a/device-types/Ubiquiti/UAP-AC-Lite.yaml b/device-types/Ubiquiti/UAP-AC-Lite.yaml
index b2b7d1aa..bb3f920d 100644
--- a/device-types/Ubiquiti/UAP-AC-Lite.yaml
+++ b/device-types/Ubiquiti/UAP-AC-Lite.yaml
@@ -1,10 +1,13 @@
 ---
 manufacturer: Ubiquiti
-model: UAP-AC-LITE
+model: AC Lite
+part_number: UAP-AC-LITE
 slug: ubiquiti-uap-ac-lite
 u_height: 0
 is_full_depth: false
-comments: '[Unifi AP AC Lite](https://www.ui.com/unifi/unifi-ap-ac-lite/)'
+weight: 170
+weight_unit: g
+comments: '[AC Lite](https://www.ui.com/unifi/unifi-ap-ac-lite/)'
 interfaces:
   - name: lan0
     type: 1000base-t
diff --git a/device-types/Ubiquiti/UAP-AC-M-Pro.yaml b/device-types/Ubiquiti/UAP-AC-M-Pro.yaml
index 084ba704..7bb6cb2b 100644
--- a/device-types/Ubiquiti/UAP-AC-M-Pro.yaml
+++ b/device-types/Ubiquiti/UAP-AC-M-Pro.yaml
@@ -1,15 +1,20 @@
 ---
 manufacturer: Ubiquiti
-model: Unifi AC Mesh Pro
+model: AC Mesh Professional
+part_number: UAP-AC-M-PRO
 slug: ubiquiti-uap-ac-m-pro
-part_number: UAP-AC-M-Pro
 u_height: 0
 is_full_depth: false
-comments: '[Unifi Mesh](https://unifi-mesh.ui.com/)'
+comments: |
+  [Access Point AC Mesh Pro](https://store.ui.com/collections/wireless/products/unifi-ac-mesh-pro-ap)
+weight: 633.0
+weight_unit: g
 interfaces:
-  - name: main
+  - name: eth0
     type: 1000base-t
-  - name: secondary
+    poe_mode: pd
+    poe_type: type1-ieee802.3af
+  - name: eth1
     type: 1000base-t
   - name: wlan0
     type: ieee802.11n
diff --git a/device-types/Ubiquiti/UAP-AC-M.yaml b/device-types/Ubiquiti/UAP-AC-M.yaml
index 7aca4a2d..8b0f4372 100644
--- a/device-types/Ubiquiti/UAP-AC-M.yaml
+++ b/device-types/Ubiquiti/UAP-AC-M.yaml
@@ -1,11 +1,12 @@
 ---
 manufacturer: Ubiquiti
-model: Unifi AC Mesh
-slug: ubiquiti-uap-ac-m
+model: AC Mesh
 part_number: UAP-AC-M
+slug: ubiquiti-uap-ac-m
 u_height: 0
 is_full_depth: false
-comments: '[Unifi Mesh](https://unifi-mesh.ui.com/)'
+comments: |
+  [Access Point AC Mesh](https://store.ui.com/collections/wireless/products/unifi-ac-mesh-ap)
 interfaces:
   - name: lan0
     type: 1000base-t
diff --git a/device-types/Ubiquiti/UAP-AC-Pro.yaml b/device-types/Ubiquiti/UAP-AC-Pro.yaml
index 8b17a885..689a7a73 100644
--- a/device-types/Ubiquiti/UAP-AC-Pro.yaml
+++ b/device-types/Ubiquiti/UAP-AC-Pro.yaml
@@ -1,15 +1,20 @@
 ---
 manufacturer: Ubiquiti
-model: UAP AC Pro
+model: AC Professional
+part_number: UAP-AC-PRO
 slug: ubiquiti-uap-ac-pro
-part_number: UAP-AC-Pro
 u_height: 0
 is_full_depth: false
-comments: '[Unifi AP AC Pro](https://www.ui.com/unifi/unifi-ap-ac-pro/)'
+comments: |
+  [Access Point AC Pro](https://store.ui.com/collections/wireless/products/uap-ac-pro)'
+weight: 350.0
+weight_unit: g
 interfaces:
-  - name: lan0
+  - name: eth0
     type: 1000base-t
-  - name: lan1
+    poe_mode: pd
+    poe_type: type1-ieee802.3af
+  - name: eth1
     type: 1000base-t
   - name: wlan0
     type: ieee802.11n
diff --git a/device-types/Ubiquiti/UAP-FlexHD.yaml b/device-types/Ubiquiti/UAP-FlexHD.yaml
index 7e3923b5..d531c342 100644
--- a/device-types/Ubiquiti/UAP-FlexHD.yaml
+++ b/device-types/Ubiquiti/UAP-FlexHD.yaml
@@ -1,10 +1,21 @@
 ---
 manufacturer: Ubiquiti
-model: UAP-FlexHD
+model: FlexHD
+part_number: UAP-FlexHD
 slug: ubiquiti-uap-flexhd
 u_height: 0
 is_full_depth: false
-comments: '[UniFi FlexHD Access Point](https://store.ui.com/products/unifi-flexhd)'
+comments: |
+  [UniFi Access Point FlexHD](https://store.ui.com/collections/wireless/products/unifi-flexhd)
+airflow: passive
+weight: 315
+weight_unit: g
 interfaces:
-  - name: lan0
+  - name: eth0
     type: 1000base-t
+    poe_mode: pd
+    poe_type: type1-ieee802.3af
+  - name: wlan0
+    type: ieee802.11n
+  - name: wlan1
+    type: ieee802.11ac
diff --git a/device-types/Ubiquiti/UAP-IW-HD.yaml b/device-types/Ubiquiti/UAP-IW-HD.yaml
index 3e61c3d0..8d8744b3 100644
--- a/device-types/Ubiquiti/UAP-IW-HD.yaml
+++ b/device-types/Ubiquiti/UAP-IW-HD.yaml
@@ -1,27 +1,35 @@
 ---
 manufacturer: Ubiquiti
-model: UniFi UAP InWall HD
-slug: ubiquiti-uap-iw-hd
+model: In-Wall HD
 part_number: UAP-IW-HD
+slug: ubiquiti-uap-iw-hd
 u_height: 0
 is_full_depth: false
+airflow: passive
+comments: |
+  [Access Point In-Wall HD](https://store.ui.com/collections/wireless/products/unifi-in-wall-hd)
+weight: 210.0
+weight_unit: g
 interfaces:
-  - name: Port 1
+  - name: eth0
     type: 1000base-t
-    poe_mode: pse
+    poe_mode: pd
     poe_type: type2-ieee802.3at
-  - name: Port 2
+  - name: eth1
+    label: '1'
     type: 1000base-t
-  - name: Port 3
+    poe_mode: pse
+    poe_type: type2-ieee802.3at
+  - name: eth2
+    label: '2'
     type: 1000base-t
-  - name: Port 4
+  - name: eth3
+    label: '3'
     type: 1000base-t
-  - name: Port 5
+  - name: eth4
+    label: '4'
     type: 1000base-t
-    poe_mode: pd
-    poe_type: type2-ieee802.3at
-    mgmt_only: true
-  - name: Wlan 0
+  - name: wlan0
     type: ieee802.11n
-  - name: Wlan 1
+  - name: wlan1
     type: ieee802.11ac
diff --git a/device-types/Ubiquiti/UAP-Pro.yaml b/device-types/Ubiquiti/UAP-Pro.yaml
index 0c0291f1..838368cc 100644
--- a/device-types/Ubiquiti/UAP-Pro.yaml
+++ b/device-types/Ubiquiti/UAP-Pro.yaml
@@ -1,10 +1,19 @@
 ---
 manufacturer: Ubiquiti
-model: UAP pro
-slug: ubiquiti-uap-pro
+model: UniFi AP-PRO
 part_number: UAP-Pro
+slug: ubiquiti-uap-pro
 u_height: 0
 is_full_depth: false
+airflow: passive
+weight: 298
+weight_unit: g
 interfaces:
   - name: eth0
     type: 1000base-t
+    poe_mode: pd
+    poe_type: type1-ieee802.3af
+  - name: wlan0
+    type: ieee802.11n
+  - name: wlan1
+    type: ieee802.11n
-- 
GitLab