You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bundles/org.openhab.binding.dahuadoor/README.md
+11-1Lines changed: 11 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ VTO2202 is a single-button outdoor station; VTO3211 is a dual-button outdoor sta
30
30
| username | text | Yes || Username to access the device |
31
31
| password | text | Yes || Password to access the device |
32
32
| snapshotPath | text | Yes || Linux path where image files are stored (e.g., /var/lib/openhab/door-images) |
33
+
| maxImages | integer | No | 20 | Maximum number of timestamped snapshots to keep (0 disables cleanup). For VTO3211 this applies per button. |
33
34
| useHttps | boolean | No | false | Use HTTPS (port 443) for snapshot and door-open requests. Enable if the device has HTTPS turned on in its network settings. When disabled, plain HTTP (port 80) is used. |
34
35
| enableWebRTC | boolean | No | false | Enables local go2rtc sidecar management and publishes a `webrtc-url` channel. |
35
36
| go2rtcPath | text | No || Absolute path to the go2rtc binary (required when `enableWebRTC=true`). |
@@ -44,6 +45,12 @@ VTO2202 is a single-button outdoor station; VTO3211 is a dual-button outdoor sta
44
45
| localSipPort | integer | No | 5060 | Local UDP SIP listening port. |
45
46
| sipRealm | text | No | VDP | SIP authentication realm (default for Dahua VTO devices). |
46
47
48
+
**Snapshot persistence:**
49
+
The binding stores snapshots in `snapshotPath` and reloads the latest snapshot on startup to restore the `door-image` channels.
50
+
For VTO2202, the latest file is `Doorbell.jpg` and timestamped files are named `Doorbell_YYYY-MM-DD_HH-mm-ss.jpg`.
51
+
For VTO3211, the latest files are `Doorbell-1.jpg` and `Doorbell-2.jpg`, with timestamped files named `Doorbell-1_YYYY-MM-DD_HH-mm-ss.jpg` and `Doorbell-2_YYYY-MM-DD_HH-mm-ss.jpg`.
52
+
Timestamped files are capped by `maxImages` (0 disables cleanup).
53
+
47
54
**Note on SIP configuration:**
48
55
To enable SIP call signaling, set `enableSip=true` and configure at least one value in `sipExtension`.
49
56
If your VTO requires a dedicated SIP password, set `sipPassword`; otherwise the binding uses `password`.
Intercom operation is implemented with WebRTC via the `go2rtc` binary.
186
195
It converts the Dahua RTP audio/video stream into browser-compatible WebRTC. The audio stream is transcoded using `ffmpeg`. Hence both tools are needed.
187
196
When `enableWebRTC=true`, the binding starts everything automatically when a call is received.
188
-
The binding registers itself at the VTO. Define one or more terminals (for example `9901#2` or `9901#2,9901#3`, type `public`) and list those accounts in `sipExtension` as a comma-separated list. Use the matching `sipPassword` (single password for all accounts).
197
+
The binding registers itself at the VTO similar to a VTH device. Create one or more SIP terminals in the VTO menu (type `public`) for the number of parallel connections you expect (for example `9901#2`, `9901#3`, `9901#4`), then list those accounts in `sipExtension` as a comma-separated list. Use the matching `sipPassword` (single password for all accounts).
189
198
You can try Dahua's default password for initial testing, but do not use it in production. Consult your VTO manual for setup details.
Copy file name to clipboardExpand all lines: bundles/org.openhab.binding.dahuadoor/src/main/java/org/openhab/binding/dahuadoor/internal/DahuaDoorBaseHandler.java
Copy file name to clipboardExpand all lines: bundles/org.openhab.binding.dahuadoor/src/main/java/org/openhab/binding/dahuadoor/internal/DahuaDoorConfiguration.java
+1Lines changed: 1 addition & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -30,6 +30,7 @@ public class DahuaDoorConfiguration {
Copy file name to clipboardExpand all lines: bundles/org.openhab.binding.dahuadoor/src/main/java/org/openhab/binding/dahuadoor/internal/DahuaVto2202Handler.java
Copy file name to clipboardExpand all lines: bundles/org.openhab.binding.dahuadoor/src/main/java/org/openhab/binding/dahuadoor/internal/DahuaVto3211Handler.java
thing-type.config.dahuadoor.vto2202.hostname.description = Hostname or IP address of the device
41
41
thing-type.config.dahuadoor.vto2202.localSipPort.label = Local SIP Port
42
42
thing-type.config.dahuadoor.vto2202.localSipPort.description = Local UDP port for SIP client (default 5060). Must be unique per thing if multiple SIP clients are used.
43
+
thing-type.config.dahuadoor.vto2202.maxImages.label = Max Images
44
+
thing-type.config.dahuadoor.vto2202.maxImages.description = Maximum number of timestamped snapshots to keep (0 disables cleanup)
thing-type.config.dahuadoor.vto3211.hostname.description = Hostname or IP address of the device
75
77
thing-type.config.dahuadoor.vto3211.localSipPort.label = Local SIP Port
76
78
thing-type.config.dahuadoor.vto3211.localSipPort.description = Local UDP port for SIP client (default 5060). Must be unique per thing if multiple SIP clients are used.
79
+
thing-type.config.dahuadoor.vto3211.maxImages.label = Max Images
80
+
thing-type.config.dahuadoor.vto3211.maxImages.description = Maximum number of timestamped snapshots to keep per button (0 disables cleanup)
0 commit comments