Skip to content

v1.5.2

Choose a tag to compare

@tempus2016 tempus2016 released this 16 Nov 22:26
5dfb83f

1.5.2 makes the tracker work with a Zigbee2MQTT base topic that starts or ends with a space, such as Z2MQTT . MQTT allows spaces in topic names and Zigbee2MQTT uses its base_topic exactly as written, so a stray space typed long ago keeps working there. The tracker trimmed that space when it read its options, listened on Z2MQTT/# instead of Z2MQTT /#, and never saw the network. Thanks to @AndreyGrech for the clear report.

The fix landed in #34.

Fixed

  • A base topic with a leading or trailing space now works. Base topics in base_topics are used exactly as written, apart from slashes at either end, so Z2MQTT subscribes to Z2MQTT /# and every device, the bridge state and network scans are tracked. The app log shows a warning for any base topic that starts or ends with a space, so an accidental one is easy to spot. Blank and repeated entries are still dropped. (#34, #33)

    base_topics:
      - "Z2MQTT "
  • The Map tab's routing scan history and "What if it goes?" work for such a network. Home Assistant's ingress turns a space in the request into +, which the app didn't turn back, so both answered "Unknown network". (#34, #33)

  • z2m_panels matches a base topic with a space. Z2MQTT =45df7312_zigbee2mqtt links the right network; entries written with stray spaces around the topic still match as before. (#34, #33)

  • The integration's run_network_scan action accepts a base topic with a space. base_topic: "Z2MQTT " starts a scan on that network. A name that isn't a known base topic is still trimmed before it's checked, so zigbee2mqtt keeps working. (#34, #33)

Upgrading

Update the app from the app store. If your base topic has a space at the start or end, put it in base_topics on the app's Configuration tab. In the YAML editor, quote it (- "Z2MQTT "), because YAML drops unquoted trailing spaces. Updating the integration through HACS is only needed if you call run_network_scan with such a base topic. See the wiki for the app options.

Full changelog: v1.5.1...v1.5.2