Skip to content

[Feature request]: Add Home Assistant discovery topic config option #361

@RobertD502

Description

@RobertD502

Is your feature request related to a problem? Please describe

Home Assistant allows user to set a custom discovery prefix instead of the default homeassistant discovery topic. As it stands, only users that use the default Home Assistant auto-discovery prefix have MQTT devices/entities created.

Describe the solution you'd like

  1. Create an optional home assistant discovery prefix config key
  2. Use the user-set discovery topic when publishing to the MQTT broker (or the default homeassistant prefix if none is provided) instead of hardcoding the homeassistant prefix for all users (example of hardcoded prefix used here).

Describe alternatives you've considered

No alternatives are available which would allow users with a non-default discovery topic to utilize this add-on.
Only manual option would be for users to define the MQTT sensor and switch on their own.

Additional context

N/A

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