Skip to content

Provide the ability to set the mqtt %prefix% values #310

@frank-pet

Description

@frank-pet

prefix1, prefix2, and prefix3 are hard coded. There should be a mechanism to provide user supplied prefixes, as this is sometimes necessary to fit tasmota devices into previously implemented topic hierarchies.

These constants currently appear in three places in the python scripts:

UI/dialogs/main.py:417:                        ) and possible_topic not in ("tele", "stat", "cmnd"):
mqtt.py:18:             DEFAULT_PREFIXES = ["tele", "stat"]
tasmota/device.py:47:         self.topic_prefixes = TopicPrefixes("cmnd", "stat", "tele")

This would be a new feature.

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