dahua
dahua copied to clipboard
Dahua Integration Bandwidth Issue
Issue Summary
I'm experiencing a significant bandwidth usage issue when using the Dahua integration in Home Assistant. The NVR model is Dahua DH-XVR5116HS-I3. The NVR is not on my local network, and the internet connection connected to it is limited in bandwidth.
Problem Details
- I can see the streams in HA without issues.
- The problem is that it apparently uses a large amount of bandwidth, as shown in the attached chart.
- The chart shows significant upload traffic on the NVR's network when I have the cameras enabled in HA. The labels on the chart are in Persian, but I can provide further details if needed. Each mark in vertical axis goes up by 1000 MB.
- I have 11 cameras, and all of them are added individually. I am only using the camera stream main entities and not any of the sensor-related functionalities.
- The NVR logs show numerous login/logout entries with the username/password used by this integration, indicating excessive reconnections.
Expected Behavior
- The integration should not keep the streams alive when not actively being viewed or recorded, as this unnecessarily consumes bandwidth.
Steps to Reproduce
- Add multiple cameras to the Dahua integration in HA.
- Monitor the network usage on the NVR’s network while the integration is active.
- Check the NVR logs for excessive login/logout events.
Additional Information
- HA OS: 15.2
- HA Core: 2025.5.1
- Dahua integration version: 0.9.72
- NVR Firmware version: 4.001.0000004.2.R,build:2025-01-23 20:46:14
- Network conditions: Limited bandwidth connection, not on the local network.
Attachments
- Bandwidth usage chart with upload spikes.