Skip to content

Latest commit

 

History

History
138 lines (96 loc) · 4.86 KB

File metadata and controls

138 lines (96 loc) · 4.86 KB

Home Assistant Ingress URL Information

Correct URL Format

The correct ingress URL format for Home Assistant add-on notifications and frontend navigation is:

/hassio/ingress/<addon_slug>

For Home Assistant Sentry, this is:

/hassio/ingress/ha_sentry

URL Format Details

Frontend Navigation URL (Notifications & Links)

  • Format: /hassio/ingress/<addon_slug>/
  • Used for: Notification links, frontend navigation, sidebar panels
  • Keeps the Home Assistant interface chrome (header, sidebar)
  • Example: /hassio/ingress/ha_sentry/

Backend Proxy URL (Internal Use)

  • Format: /api/hassio_ingress/<token>/
  • Used for: Backend API requests, internal proxying
  • This is what the frontend uses internally after routing
  • Not typically used directly in user-facing links

Common Misconceptions

❌ Incorrect Formats for Notifications

Some users may attempt URLs like:

  • /api/hassio_ingress/ha_sentry (backend proxy route, may not work in notifications)
  • /936f27fd_ha_sentry/ingress (older/different format)
  • /ha_sentry/ingress (missing path prefix)

These formats may NOT work correctly in notification markdown links.

✅ Correct Usage

The add-on uses the Home Assistant frontend ingress URL format for all notification links:

  1. In notification links: /hassio/ingress/ha_sentry?mode=whereused&component=mosquitto
  2. In web UI access: Accessible via the "Sentry" panel in the sidebar
  3. Direct access: Settings → Add-ons → Home Assistant Sentry → Open Web UI

Note: The add-on code generates /hassio/ingress/ URLs for user-facing links. The backend /api/hassio_ingress/ route is used internally by Home Assistant's frontend router.

How to Access the Web UI

Method 1: Sidebar Panel (Recommended)

  1. Look for the "Sentry" panel in your Home Assistant sidebar
  2. Click it to open the dependency visualization interface
  3. The dependency graph may take up to 60 seconds to build on first access

Method 2: Add-on Page

  1. Go to SettingsAdd-onsHome Assistant Sentry
  2. Click the Open Web UI button
  3. This opens the same interface as the sidebar panel

Method 3: Direct URL (Advanced)

Navigate to: http://your-homeassistant.local:8123/hassio/ingress/ha_sentry

Replace your-homeassistant.local:8123 with your Home Assistant URL.

Troubleshooting

"Loading components..." Never Finishes

If the web UI shows "Loading components..." for more than 60 seconds:

  1. Check Add-on Logs:

    • Go to Settings → Add-ons → Home Assistant Sentry → Log
    • Look for "Dependency graph built successfully" message
    • If not present, look for error messages
  2. Common Causes:

    • Dependency graph is still building (can take 60+ seconds on first run)
    • Integration paths are not accessible
    • File system permissions issues
  3. Solutions:

    • Wait 60 seconds and refresh the page
    • Check that enable_dependency_graph: true in configuration
    • Review add-on logs for specific error messages

404 Error When Accessing Web UI

If you get a 404 error:

  1. Verify Add-on is Running:

    • Check that the add-on is started
    • Verify logs show "Dependency tree visualization started successfully"
  2. Verify Configuration:

    • Check that enable_web_ui: true in configuration
    • Ensure ingress: true in config.yaml (should be default)
  3. Try Alternative Access Methods:

    • Use the sidebar panel instead of direct URL
    • Use "Open Web UI" button from add-on page

Technical Details

Why This URL Format?

Home Assistant's ingress system provides secure, authenticated access to add-on web interfaces without exposing additional ports. The /api/hassio_ingress/<slug> format:

  • Routes through Home Assistant's authentication
  • Works with SSL/TLS if configured
  • No additional port forwarding needed
  • Consistent across all add-ons

URL Fragment Support

The web UI supports deep linking via both query parameters and URL fragments:

  • Query Parameters (preferred for notifications):

    • Dependencies: /hassio/ingress/ha_sentry?mode=dependency&component=component_name
    • Where Used: /hassio/ingress/ha_sentry?mode=whereused&component=component_name
    • Impact Analysis: /hassio/ingress/ha_sentry?mode=impact&component=comp1,comp2,comp3
  • URL Fragments (backward compatibility):

    • Dependencies: /hassio/ingress/ha_sentry#dependency:component_name
    • Where Used: /hassio/ingress/ha_sentry#whereused:component_name
    • Impact Analysis: /hassio/ingress/ha_sentry#impact:comp1,comp2,comp3

Query parameters are preferred for notification links as they are more reliably preserved by Home Assistant's notification system.

Related Documentation