Skip to content

Commit 016f014

Browse files
authored
Merge pull request #287 from ch-bas/feat/netbox-ethernet-speed-dahua
feat: ethernet speed for 30 Dahua PoE cameras (NetBox export)
2 parents d29c937 + eed3e17 commit 016f014

32 files changed

Lines changed: 166 additions & 40 deletions

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ Format: [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
1111
### Added
1212
- **`network` schema block** — optional `network.ethernet_speed_mbps` (RJ45 link speed: 10 / 100 / 1000 / 2500 / 10000) and `network.ethernet_ports`, read from the datasheet's Ethernet / Network Interface row. The field is optional; no existing record is affected.
1313
- **Ethernet link speed for 46 Hikvision PoE cameras** — backfilled from the official datasheets (44 × 100 Mbps `10M/100M self-adaptive`, 2 × Gigabit on the iDS-2CD7A DeepinView pair). No values estimated. Two records (DS-2CD1027G2H-LIU, DS-2CD3086G2-IS) also had their `sources` upgraded from JS product pages to the official `assets.hikvision.com` datasheet PDFs.
14-
- **`scripts/gen-netbox.js`** — exports cameras that have a known link speed to [netbox-community/devicetype-library](https://github.com/netbox-community/devicetype-library) YAML device types. Skips any camera missing `ethernet_speed_mbps`, so the NetBox interface `type` is never guessed.
14+
- **Ethernet link speed for 30 Dahua PoE cameras** — backfilled from the official datasheets' `Network Port RJ-45` row (26 × 100 Mbps, 4 × Gigabit on the WizSense-3 PRO models). `IPC-HDW1439V-IL-K` was deliberately left unfilled — its exact `-IL-K` datasheet isn't publicly published, and the family value wasn't read from that model's own sheet.
15+
- **`scripts/gen-netbox.js`** — exports cameras that have a known link speed to [netbox-community/devicetype-library](https://github.com/netbox-community/devicetype-library) YAML device types. Skips any camera missing `ethernet_speed_mbps`, so the NetBox interface `type` is never guessed, and only annotates PoE (`poe_mode`/`poe_type`) when the datasheet states the 802.3 standard.
16+
17+
### Changed
18+
- **PoE standard added to `power.method` for 22 Dahua cameras** — where the datasheet's Power Supply row states it (e.g. `12VDC/PoE``12VDC/PoE (802.3af)`, `12VDC/PoE+``12VDC/PoE+ (802.3at)`). Datasheet-grounded; enables a correct NetBox `poe_type`.
1519

1620
---
1721

cameras/dahua/ipc-hdbw3449r1-zas-pv-pro.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"min_lux_color": 0.0003
3131
},
3232
"power": {
33-
"method": "12VDC/PoE+",
33+
"method": "12VDC/PoE+ (802.3at)",
3434
"consumption_w": 16.1,
3535
"voltage": "12VDC"
3636
},
@@ -90,5 +90,9 @@
9090
"last_verified": "2026-07-04",
9191
"environment": [
9292
"outdoor"
93-
]
93+
],
94+
"network": {
95+
"ethernet_speed_mbps": 1000,
96+
"ethernet_ports": 1
97+
}
9498
}

cameras/dahua/ipc-hdbw3649r1-zas-pv-pro.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"min_lux_color": 0.0005
3131
},
3232
"power": {
33-
"method": "12VDC/PoE+",
33+
"method": "12VDC/PoE+ (802.3at)",
3434
"consumption_w": 16.9,
3535
"voltage": "12VDC"
3636
},
@@ -90,5 +90,9 @@
9090
"last_verified": "2026-07-04",
9191
"environment": [
9292
"outdoor"
93-
]
93+
],
94+
"network": {
95+
"ethernet_speed_mbps": 1000,
96+
"ethernet_ports": 1
97+
}
9498
}

cameras/dahua/ipc-hdbw3849f-as-il.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"min_lux_color": 0.008
3131
},
3232
"power": {
33-
"method": "12VDC/PoE",
33+
"method": "12VDC/PoE (802.3af)",
3434
"consumption_w": 10.1,
3535
"voltage": "12VDC"
3636
},
@@ -88,5 +88,9 @@
8888
"last_verified": "2026-07-04",
8989
"environment": [
9090
"outdoor"
91-
]
91+
],
92+
"network": {
93+
"ethernet_speed_mbps": 100,
94+
"ethernet_ports": 1
95+
}
9296
}

cameras/dahua/ipc-hdbw3849r1-zas-pv-pro.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"min_lux_color": 0.0006
3131
},
3232
"power": {
33-
"method": "12VDC/PoE+",
33+
"method": "12VDC/PoE+ (802.3at)",
3434
"consumption_w": 16.9,
3535
"voltage": "12VDC"
3636
},
@@ -90,5 +90,9 @@
9090
"last_verified": "2026-07-04",
9191
"environment": [
9292
"outdoor"
93-
]
93+
],
94+
"network": {
95+
"ethernet_speed_mbps": 1000,
96+
"ethernet_ports": 1
97+
}
9498
}

cameras/dahua/ipc-hdbw5259r-ase-il.json

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"min_lux_color": 0.0007
3131
},
3232
"power": {
33-
"method": "12VDC/PoE+",
33+
"method": "12VDC/PoE+ (802.3at)",
3434
"consumption_w": 15.5,
3535
"voltage": "12VDC"
3636
},
@@ -90,5 +90,9 @@
9090
"last_verified": "2026-07-04",
9191
"environment": [
9292
"outdoor"
93-
]
93+
],
94+
"network": {
95+
"ethernet_speed_mbps": 100,
96+
"ethernet_ports": 1
97+
}
9498
}

cameras/dahua/ipc-hdw2249t-zs-il.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"min_lux_color": 0.002
3131
},
3232
"power": {
33-
"method": "12VDC/PoE",
33+
"method": "12VDC/PoE (802.3af)",
3434
"consumption_w": 10.1,
3535
"voltage": "12VDC"
3636
},
@@ -103,5 +103,9 @@
103103
}
104104
],
105105
"max_fps": 30
106+
},
107+
"network": {
108+
"ethernet_speed_mbps": 100,
109+
"ethernet_ports": 1
106110
}
107111
}

cameras/dahua/ipc-hdw2449t-zs-il.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"min_lux_color": 0.006
3131
},
3232
"power": {
33-
"method": "12VDC/PoE",
33+
"method": "12VDC/PoE (802.3af)",
3434
"consumption_w": 7.8,
3535
"voltage": "12VDC"
3636
},
@@ -104,5 +104,9 @@
104104
}
105105
],
106106
"max_fps": 20
107+
},
108+
"network": {
109+
"ethernet_speed_mbps": 100,
110+
"ethernet_ports": 1
107111
}
108112
}

cameras/dahua/ipc-hdw2449tm-s-il.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"min_lux_color": 0.006
3131
},
3232
"power": {
33-
"method": "12VDC/PoE",
33+
"method": "12VDC/PoE (802.3af)",
3434
"consumption_w": 5.2,
3535
"voltage": "12VDC"
3636
},
@@ -103,5 +103,9 @@
103103
}
104104
],
105105
"max_fps": 20
106+
},
107+
"network": {
108+
"ethernet_speed_mbps": 100,
109+
"ethernet_ports": 1
106110
}
107111
}

cameras/dahua/ipc-hdw2649t-zs-il.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,9 @@
104104
}
105105
],
106106
"max_fps": 20
107+
},
108+
"network": {
109+
"ethernet_speed_mbps": 100,
110+
"ethernet_ports": 1
107111
}
108112
}

0 commit comments

Comments
 (0)