Skip to content

Configurable autodiscovery_topic_prefix #248

@gbonny1982

Description

@gbonny1982

Feature Description

I'm using a (Docker) container for hm2mqtt.

Currently only the data MQTT_TOPIC_PREFIX is configurable.
It would be nice to have the AUTODISCOVERY_TOPIC_PREFIX configurable as well.
I have a general autodiscovery topic, not named after a system like "homeassistant", which is currently the unconfigurable default for hm2mqtt.

In most publishers you are able to configure the autodiscovery topic, like solaredge2mqtt, zigbee2mqtt, zwave-js-ui do and subscribers like Domoticz and HomeAssistant are configurable as well.

What would be workable is:
When AUTODISCOVERY_TOPIC_PREFIX is NOT SET it takes the default "homeassistant"
When AUTODISCOVERY_TOPIC_PREFIX is SET, it takes what is set. :)

Device Model (optional)

No response

Firmware Version (optional)

No response

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