ps5-mqtt icon indicating copy to clipboard operation
ps5-mqtt copied to clipboard

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

Open RobertD502 opened this issue 2 years ago • 8 comments

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

RobertD502 avatar Jan 02 '24 18:01 RobertD502

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.

nwpr avatar Feb 01 '24 22:02 nwpr

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

github-actions[bot] avatar Mar 03 '24 00:03 github-actions[bot]

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

github-actions[bot] avatar Apr 03 '24 00:04 github-actions[bot]

Same problem here. I set up a custom discovery topic to connect two instances of HA. Please consider this option.

MrIcemanLE avatar May 13 '24 07:05 MrIcemanLE

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!

FunkeyFlo avatar May 13 '24 09:05 FunkeyFlo

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

github-actions[bot] avatar Jun 13 '24 00:06 github-actions[bot]

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

github-actions[bot] avatar Jul 14 '24 01:07 github-actions[bot]

bump

RobertD502 avatar Jul 16 '24 18:07 RobertD502