Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Web UI lacks configuration option for Home Assistant discovery #2042

Open
Forge36 opened this issue Sep 1, 2024 · 2 comments
Open

Web UI lacks configuration option for Home Assistant discovery #2042

Forge36 opened this issue Sep 1, 2024 · 2 comments

Comments

@Forge36
Copy link

Forge36 commented Sep 1, 2024

Is your feature request related to a problem? Please describe.
If the gateway becomes lost to Home Assistant and discovery is disabled it's not possible to re-enable via the web UI.

This makes re-enabling difficult as it requires knowing how to re-enable it via MQTT (or the Web UI console?)

Describe the solution you'd like
The discovery state is presented in "Information"
I'd like a visible toggle in "Configuration" (likely under "gateway")
to allow re-enabling discovery.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Per: https://community.openmqttgateway.com/t/stuggling-again-with-home-assistant-mqtt-discovery/2992/16

Send two command to <device>/commands/MQTTtoSYS/config

  1. {"disc":true,"save":true} to re-enable discovery
  2. {"cmd":"restart"}

Additional context
Consider adding these options as well
image

@puterboy
Copy link
Contributor

puterboy commented Sep 9, 2024

I think that is is a good suggestion and would be quite easy to add to the MQTT page.
In fact, personally, I think it makes more sense here than in HA as you should be able to turn it on or off regardless of what dashboards you have set up in HA (or even if you are using HA).

TBH, when I first started using OpenMQTTGateway and the HA MQTT Integration, I was confused that to turn on auto-discovery and automatically populate new devices, you need to make sure it is turned on both in OMG and in the HA MQTT Integration (to stop auto-creation of new devices you just need to disable one of them).

This was not at all obvious to me as a newbie.

Having an option to turn/on OMG auto-discovery in the OMG GUI would make a lot of sense.

@1technophile
Copy link
Owner

1technophile commented Sep 9, 2024

It makes sense to add it. I would like to find a way to reflect the parameters for each module comprehensively.
I think all the parameters could be exposed into the WebUI mainly. Instead of maintaining the web page for each parameters set manually, we could try to generate each web page depending on the parameters in SYSConfig, RFConfig, and BTConfig.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants