dahua icon indicating copy to clipboard operation
dahua copied to clipboard

FYI: added DH-P5D-5F-PV - working in general

Open Masterz69 opened this issue 6 months ago • 3 comments

Recently added dual camera device DH-P5D-5F-PV. Integration added to HA "PT Lens" camera streams, but not "Fixed Lens". As well following message appears in log, probably related to streams count.

Let me know if somehow can help to looks into details.

This error originated from a custom integration.

Logger: custom_components.dahua
Source: custom_components/dahua/client.py:745
integration: Dahua (documentation, issues)
First occurred: 9 April 2025 at 07:34:08 (5 occurrences)
Last logged: 11 April 2025 at 18:12:38

too many values to unpack (expected 2)
Traceback (most recent call last):
  File "/config/custom_components/dahua/client.py", line 745, in stream_events
    on_receive(data, channel)
    ~~~~~~~~~~^^^^^^^^^^^^^^^
  File "/config/custom_components/dahua/__init__.py", line 457, in on_receive
    events = parse_event(data)
  File "/config/custom_components/dahua/dahua_utils.py", line 71, in parse_event
    key, value = key_value.split('=')
    ^^^^^^^^^^
ValueError: too many values to unpack (expected 2)

Masterz69 avatar Apr 12 '25 09:04 Masterz69