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
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/#/actionAdditional context
Switch manager 2.0.5
Home Asssistant 2026.5.4