This guide explains how to use the new diagnostic features to identify why the Web UI gets stuck.
As soon as the script loads (before the page is fully ready), it will try to update the status text to:
JavaScript is executing... waiting for DOM ready
What this tells us:
- ✅ If you see this text: JavaScript IS executing in your browser
- ❌ If you still see "Preparing status...": JavaScript is NOT executing (browser blocking it)
Open your browser's Developer Tools (F12) and check the Console tab for messages:
[INIT] Script block executing immediately
[INIT] Successfully updated status-detail element
Web UI loaded
URL: <your url>
Path: <your path>
Hash: <any fragment>
[API] Fetching status from: <status api url>
[API] Status response received: 200 OK
[API] Fetching components from: <components api url>
[API] Components response received: 200 OK
CRITICAL: DOMContentLoaded handler failed- JavaScript error during initializationCRITICAL: Failed to attach DOMContentLoaded listener- Browser security blocking JavaScriptUnsafe API path detected- URL generation problemFailed to load components: <error>- API call failed
If errors occur, a diagnostic panel will appear automatically showing:
- Timestamp of each step
- Error messages with details
- Suggestions for fixing the issue
You can also manually show/hide the diagnostic panel by clicking the toggle button.
In Developer Tools, go to the Network tab and look for:
GET /api/status- Should return 200 with JSON containingstatus,components_count,readyGET /api/components- Should return 200 with JSON containing array of components
If these requests don't appear: JavaScript is not making API calls (could be URL issue or execution problem)
- Pull the latest changes from the
copilot/analyse-webui-logsbranch - Restart the Home Assistant Sentry add-on
- Wait for it to fully start (check add-on logs)
Access the Web UI via any method:
- ✅ Local:
http://homeassistant.local:8123/936f27fd_ha_sentry(via HA ingress) - ✅ Direct:
http://<ha-ip>:8099(direct to add-on) - ✅ Remote: Via Nabu Casa Cloud URL
Look at the status text under the "Home Assistant Sentry" heading. Within 1 second, it should change from:
Preparing status...
to:
JavaScript is executing... waiting for DOM ready
Press F12 (or Cmd+Option+I on Mac) to open Developer Tools
- Look for
[INIT]messages - Look for
[API]messages - Look for any error messages (red text)
- Copy ALL console output
- Refresh the page if needed
- Look for requests to
/api/statusand/api/components - Click on each request to see:
- Status code (should be 200)
- Response body (should be JSON)
- Any error messages
In Home Assistant:
- Go to Settings → Add-ons → Home Assistant Sentry
- Click the "Log" tab
- Look for lines containing:
web_server - DEBUG - Web UI accessed from: web_server - DEBUG - Request path: / web_server - DEBUG - Request path: /api/status web_server - DEBUG - Request path: /api/components
Please provide:
- What status text you see (exact text)
- Full console output (copy/paste)
- Network tab screenshot showing API requests (or lack thereof)
- Add-on logs showing web server access (last 50 lines)
- How you accessed the UI (local ingress, direct, or Nabu Casa)
- Status text changes immediately to "JavaScript is executing..."
- Console shows
[INIT]and[API]messages - Network tab shows
/api/statusand/api/componentsrequests - Add-on logs show corresponding requests
- Eventually shows "X components loaded" status
- Status text stays "Preparing status..."
- No console messages
- No network requests
- Possible causes:
- Content Security Policy blocking JavaScript
- Browser security settings
- Ad blocker interfering
- Proxy/ingress stripping JavaScript
- Status text changes to "JavaScript is executing..."
- Console shows
[INIT]messages - Console shows
[API]messages with errors - Network tab may show failed requests or no requests
- Possible causes:
- Incorrect URL generation (ingress path issue)
- CORS blocking requests
- Proxy not forwarding API requests
- Status text progresses through initialization
- Console and network show successful API calls
- Status shows "No integrations found" or "0 components"
- Possible causes:
- Dependency graph build failed
- Integration paths incorrect
- Race condition during graph building
Symptoms: Status never changes from "Preparing status...", no console messages
Solutions:
- Disable ad blockers for Home Assistant domain
- Check browser console for security errors
- Try a different browser
- Access via local ingress instead of Nabu Casa
Symptoms: JavaScript runs but no API requests appear
Solutions:
- Check Home Assistant ingress configuration
- Verify add-on is running on correct port (8099)
- Check for proxy/reverse proxy configuration issues
- Try direct access on port 8099
Symptoms: API works but shows 0 components
Solutions:
- Check add-on logs for dependency graph build errors
- Verify
enable_dependency_graph: truein configuration - Check custom_integration_paths if configured
- See "No Integrations Found" error message in UI for specific guidance
If diagnostics show something unexpected, please open a GitHub issue with:
- All information from Step 6 above
- Screenshots of browser console and network tab
- Add-on configuration (sanitize any sensitive data)
- Home Assistant version and installation type (OS, Container, Core, Supervised)
The diagnostic information will help us quickly identify and fix the root cause!