Giter Club home page Giter Club logo

Comments (2)

DyArt avatar DyArt commented on June 15, 2024 1

But if you are using HomeAssistant its preferable to start all topics concerning HA start with homeassistant with autodiscovery otherwise it will check all the data over the MQTT, also MQTT what is not needed for HA. So my situation in HA is that autodiscovery works only with topics starting with homeassistant. When I change the base topic to mqtt_base_topic": "homeassistant-zigbee2mqtt then autodiscovery doesn't work anymore.

Edit: Just notice that the topic prefix is not the topicname but just an prefix and so your solution should work

Edit: Just tested and it works in this way

from hassio-zigbee2mqtt.

ciotlosm avatar ciotlosm commented on June 15, 2024

@DyArt this is a bug on how MQTT topics are parsed here: https://github.com/Koenkk/zigbee2mqtt/blob/master/lib/controller.js#L341 which assumes you have the command in third spot for config messages.

You can get around this by using "mqtt_base_topic": "homeassistant-zigbee2mqtt" instead of what you're currently using.

@Koenkk I think there should be a restriction to avoid users using / in their base_topic and throw an error on startup.

from hassio-zigbee2mqtt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.