Skip to content

Commit 2aa8959

Browse files
authored
[dahuadoor] Add DHIP UDP multicast auto-discovery service (#20508)
* [dahuadoor] Add DHIP UDP multicast auto-discovery service Signed-off-by: Sven Schad <svnsssd@gmail.com>
1 parent 66cde86 commit 2aa8959

4 files changed

Lines changed: 404 additions & 2 deletions

File tree

bundles/org.openhab.binding.dahuadoor/README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ This binding integrates Dahua VTO Villastation door controllers with openHAB, en
1111

1212
## Discovery
1313

14-
Automatic discovery is not supported.
15-
Things must be manually configured.
14+
Dahua door stations are automatically discovered on the local network using the DHIP UDP multicast discovery protocol.
15+
The discovered thing is pre-configured with the device's IP address as `hostname`.
16+
`username` and `password` must be set manually after accepting the thing in the inbox.
17+
18+
**Note:** Auto-discovery relies on UDP multicast (`239.255.255.251:37810`) and therefore only works when openHAB and the Dahua devices are on the **same subnet**.
19+
Devices in a different subnet or VLAN will not be found automatically and must be added manually.
1620

1721
## Thing Configuration
1822

@@ -57,6 +61,9 @@ Single-button outdoor station.
5761

5862
#### Thing Configuration
5963

64+
When discovered automatically, the thing ID is based on the device serial number when available (e.g., `abc1234xyz56789`), and otherwise falls back to the device MAC address and then the hostname.
65+
For manual configuration, any unique ID can be used.
66+
6067
```java
6168
Thing dahuadoor:vto2202:frontdoor "Front Door Station" @ "Entrance" [
6269
hostname="192.168.1.100",

0 commit comments

Comments
 (0)