[Feature request]: Add Home Assistant discovery topic config option
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
- Create an optional home assistant discovery prefix config key
- Use the user-set discovery topic when publishing to the MQTT broker (or the default
homeassistantprefix if none is provided) instead of hardcoding thehomeassistantprefix 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
Also got this problem. Would be a great addition!
A workaround I can provide right now is resending the MQTT messages from the default topic to your custom topic. Home Assistant will store it, so you don't have to create a custom sensor.
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
Same problem here. I set up a custom discovery topic to connect two instances of HA. Please consider this option.
I understand there is a need for this feature. I'll make sure it's not closed again.
However, two weeks ago my twins were born so I currently have little to no time to develop any new features.
That being said; I'm happy to receive/review any PR's if people want to help out!
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
bump