Skip to content

Feature: Support device discovery on multiple Z2MQTT networks #3

@macpit

Description

@macpit

Original issue: Sian-Lee-SA#421

Problem

Discovery only works with the default MQTT base topic from the blueprint (e.g., zigbee2mqtt/+/action). Users with a second Z2MQTT instance using a different base topic (e.g., zigbee2mqtt_garage/+/action) cannot discover devices.

Workaround

Manual topic entry already works — users can type the full topic manually.

Proposed Fix

Add a "Custom MQTT base topic" option in the identifier auto-discovery dialog.

Affected Files

  • custom_components/switch_manager/models.py (start_discovery)
  • frontend/src/dialogs/identifier-auto-discovery.ts

Effort

Medium (4-8h)


Migrated from original repo

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions