Skip to content

EZVIZ: Merging 2 cameras into the same device when ezviz api returns empty mac address #152939

@lliwog

Description

@lliwog

The problem

When I import my 2 EZVIZ cameras (Model CB5) using EZVIZ integration, both cameras are merged into a single device. Controls for both cameras are duplicated with the same name inside this device.

After some more analysis, I noticed that the issue is related to ezviz api which is returning empty mac address for both cameras. As a result they share the same empty connection identifier and are added as a same device in device registry.

if identifiers:
for identifier in identifiers:
if identifier in self._identifiers:
return self._identifiers[identifier]
if not connections:
return None
for connection in _normalize_connections(connections):
if connection in self._connections:
return self._connections[connection]
return None

What version of Home Assistant Core has the issue?

core-2025.9.4

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant OS

Integration causing the issue

ezviz

Link to integration documentation on our website

https://www.home-assistant.io/integrations/ezviz/

Diagnostics information

No response

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

This issue may be related to other closed issue: #97894 (EZVIZ integration mixing 2 cameras into the same device when they are the same model)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions