Skip to content

Nested topics not detected in MQTT autodetect #437

@rmaeder

Description

@rmaeder

Describe the bug
switches that use nested topics, such as zigbee2mqtt/office/switch1, are not automatically detected.

To Reproduce
try to autodetect a switch whose topic is nested (contains a slash)

Expected behavior
it should detect the switch

caused by
The autodetect topic is zigbee2mqtt/+/action, which matches only a single level of nesting.
This should probably be zigbee2mqtt/#/action

Additional context
Switch manager 2.0.5
Home Asssistant 2026.5.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions