After starting a hassio addon with a web server, the Open Web UI button appears if the addon supports Ingress. This is an extremely useful function, however if the web service is not yet ready, you will simply see “502 Bad Gateway”
I feel there are 2 great ways to improve this.
-
Have hassio do a web call to the URL before presenting it to the user. If it returns 502, then give the user a pretty error message outlining that it probably isn’t done starting yet and below it have “Retry” and “Back” buttons.
-
Allow addon devs to implement a trigger for enabling the Open Web UI button. This way, the button is grayed out until ready. (Addons that don’t implement this can simply use the previous idea) The addon developer can define either a delay (5 seconds) or have hassio wait for a certain log output keyword such as “Web Service Started” or “Done”. This way, the user sees a grayed out button when starting, and then the button enables once the addon has fully loaded.
These changes would help round off the hassio addon experience and would prevent people from trying to research the 502 gateway error when all they need to do is wait a few more seconds.