HACS Integration Fails to Set Up After Restart: A Six-Layer Triage
You installed an integration via HACS or the Marketplace, restarted Home Assistant, and now it is missing, a card says failed to set up, or the log shows Setup failed or Error setting up entry. This guide narrows it through six layers: pending restart, version changes, logs, dependencies, conflicts and safe mode, and recovery. Fork by version: on HA 2026.11+ it was installed by the built-in Marketplace (Settings > Marketplace); on 2026.10- by classic HACS. The generic checks apply to both. Every path, status name, log line, and recovery order was checked against the official HACS site, HACS and the Marketplace, HACS dashboard docs, HACS update broke my HACS, HA update broke my HACS, HA configuration troubleshooting, HA restart options, and HA integration manifest docs.
One boundary first: failed to set up is a symptom, not a single cause - the code may not be active, a dependency failed, or versions mismatch. Do not start by deleting the folder and reinstalling; that deletes the evidence. Classify by layer, one yes-or-no question each. Safe-mode reasoning extends to HA Deployment Decisions; backup detail to Backup and Restore.
1. Layer one: "downloaded but not active" versus "real load failure"
The official HACS dashboard docs define Pending restart: the repository has been downloaded, but for the version to become active you need to restart Home Assistant. Such repositories generate a repair under System > Updates, and you can restart directly from there. A separate status, Pending update, means a new version is available; use Redownload.
The test: check the HACS dashboard Status filter. If it says Pending restart, this is not a load failure, just an incomplete restart - restart via the official path. Continue only if it persists after restart or turns into failed to set up.
State "restart" precisely. The HA restart options page gives the UI path: Settings > System, power icon top-right, Restart Home Assistant, then Restart. A configuration check runs first; if invalid, HA does not restart and shows a log-linked notification. During a backup the button reads Wait and restart. It distinguishes quick reload (YAML only, HA stays available) from restart (all integrations reload, running automations interrupted); a new YAML integration first needs a restart. On HAOS use ha core restart; the page also lists ha core restart --safe-mode - official commands.
2. Layer two: version changes - HA and HACS updates differ
Check the timeline: did HA just upgrade, or HACS just update? The docs give two different remedies; do not mix them.
- Old HACS with new HA. The HA update broke my HACS page describes it: older HACS, just-upgraded HA, HACS misbehaving. The official remedy is one line: Update HACS to the latest version.
- Broken after a HACS update. The HACS update broke my HACS page says that manually or via automation, the only recovery is restoring your previous setup from your backup, pointing to the official HA restore steps.
Present the version picture side by side. The HACS site and Marketplace page state that from HA 2026.11 HACS is built in as the Marketplace under Settings > Marketplace, nothing to download, with HA blocking the HACS custom integration from 2026.11; on upgrade the Marketplace migrates content automatically (installed items and entity IDs kept, /hacs bookmarks redirected). So first tell whether your item was installed by Marketplace or classic HACS; the layers below are common, the entry differs. The prerequisites page also requires HA 2024.4.1 or newer for standalone HACS - different forms, not a contradiction. Upgrade and rollback belong to HAOS Upgrade and Rollback.
3. Layer three: log evidence, get the error text first
The HA configuration troubleshooting page is blunt: warnings go into the logs; when an integration does not show up, look for related errors first, before trying steps. Official error texts to match:
Invalid config for 'example' at configuration.yaml, line 12: required key 'host' not provided- the config does not match what the integration expects: a missing required setting, misspelled option, or wrong type. Open that file at that line and fix against the integration's docs.Setup failed for 'example': Requirements for example not found- dependencies failed to install; see layer four.Unexpected error validating config- one integration's config validation crashed, often a custom integration. The official finder: search the full error forcustom_components/<name>/, then update that integration and report to its author if it stays.
The page also gives the log workflow. In Settings > Devices & services select the integration, Enable debug logging from its menu, reproduce, then Disable debug logging - turning it off downloads the log immediately, named like home-assistant_<integration>_<date and time>.log. Debug logging stays on if you restart Home Assistant once and turns off after the next restart, so it covers startup; choose Show logs for a live dialog. To keep logging on, set levels in configuration.yaml per the Logger integration. HACS prerequisites likewise list knowing how to access the HA log and enable debug logging as requirements.
The test: get the error text before talking about fixes. An error carrying a custom_components/ path has narrowed the scope to one third-party integration; stop guessing site-wide.
4. Layer four: dependencies stop the load
The HA integration manifest docs make the mechanism explicit: requirements is the list of Python packages an integration needs, in pip format and pinned to an exact version, like ["airgradient==0.10.0"]. HA installs them before loading the integration; if installing fails, the integration does not load. A custom integration should only list requirements not already part of HA. Related keys: dependencies names integrations that must load first, while after_dependencies names optional ones whose requirements are installed even if unconfigured.
The HA troubleshooting page "can't install dependencies" section gives the symptom Setup failed for ... Requirements for ... not found and one cause: no internet connection. Its order: confirm HA is online, restart it, check logs, then report with logs - "restart and check again", not "reinstall the integration".
Be honest about the limit: which package a third-party integration needs and which version its requirements pins live in that repository's manifest.json, not HACS or HA general docs; error wording changes between versions. This article invents no install command for a specific error code. Trust that repository's docs and on-site log; mark the finding needs-site-confirm.
5. Layer five: conflicts and safe mode
If dependencies are fine but it still will not start, consider two structural causes and verify both with the same tool.
One is a domain conflict. The HA integration file structure docs say HA looks in two places: <config directory>/custom_components/<domain> and homeassistant/components/<domain>; a custom integration with the same domain as a built-in one overrides it. That works, but you then stop getting updates and the manifest needs a version; choose a unique domain unless replacing a built-in. Also the HACS Existing Elements page says HACS will not scan the local file system for existing elements, for trust reasons - if HACS did not download it, its version is unknown, so existing elements must be re-downloaded via HACS. A hand-copied integration thus shows as "not found" in HACS: not a load failure, but HACS declining to claim it.
The other is a custom integration breaking startup. Use Restart in safe mode, defined by the HA restart options page: it starts without custom integrations and community frontend modules, to find the cause, and lasts until the next restart. UI path: Settings > System > power icon > More options > Restart Home Assistant in safe mode > Restart; on HAOS, ha core restart --safe-mode. The test: problem vanishes in safe mode, suspicion falls on custom integrations or community frontend modules; persists, it is not them - go back to logs and built-in integrations.
Conflict judgment can extend to MQTT Setup and Discovery, but that article covers discovery and gateway pairing.
6. Layer six: three recovery paths
By the official book, three actions match three cases:
- A third-party integration's own problem → update it to the latest version; if it persists, report it to that integration's author, not HACS or HA. The HACS dashboard docs say third-party element issues always go to the repository owner: use Open issue in the three-dots menu, choose New issue, and describe the problem in detail.
- Old HACS with new HA → update HACS to the latest version, the only official remedy.
- Broken right after a HACS update → restore your setup from a backup, the only official recovery, following HA's restore steps.
One habit prevents recurrence: record the error text, the custom_components/ path, the on-site HA version and that repository's version. The next identical error maps directly, without all six layers again.
7. Acceptance checklist before calling it done
- Symptom classified as Pending restart (not active) or failed to set up (load failure); former restarted via the repair under System > Updates
- Restart used the official path: Settings > System > power icon > Restart Home Assistant, and the configuration check passed
- Timeline recorded: did HA just upgrade, did HACS just update; old HACS + new HA goes to "update HACS", broken after HACS update goes to "restore backup"
- On-site form matched: 2026.11+ is built-in Marketplace (Settings > Marketplace); 2026.10- is standalone HACS (minimum 2024.4.1)
- Error text captured and matched: Invalid config for / Requirements for ... not found / Unexpected error validating config
- Debug log enabled, reproduced, disabled and downloaded per official steps, named like home-assistant_
_ .log - Full error searched for a custom_components/
/ path, narrowing to a specific third-party integration - requirements mechanism checked: pip format pinned, install failure blocks load, connectivity first then restart
- Safe-mode restart used: problem gone means custom integration or community frontend; still present means back to the built-in-integration line
- Third-party integration problem routed to its own issue tracker; specific package names and error wording marked needs-site-confirm
Each step answers one yes-or-no question. Do not fix "dependency install failed" and "third-party integration bug" in one round: one needs connectivity or a requirements fix, the other an update or author report, and they roll back differently. Walk the six layers by hand first, then consider a check card.