Use Codex to troubleshoot your Home Assistant config

A Home Assistant add-on and integration let Codex inspect config files, fix automations, and update dashboards from scripts or Assist.

Done with CodexΒ· Intermediate

What they did
They installed a Home Assistant add-on that runs Codex CLI with read-and-write access to /config, plus a HACS integration that adds actions and entities. From scripts, automations, or Assist, they could launch non-interactive tasks to investigate failing automations, look for broken dashboard cards, and generate scripts. If Codex needed more detail, a reply action could continue the same task, and logs plus outputs were stored in /config/codex_tasks.
How it went
The example showed an Assist request where Codex changed a dashboard card and then sent a completion notification. The writeup did not include any success rate or timing figures. It also noted that users wanted image uploads and live progress, but those features were not available.
Tips
Because Codex can modify the entire config folder, review its changes before keeping them. Sign-in uses a device-code flow tied to a ChatGPT account, so API keys are not used and there are no per-token costs.

Try it yourself with Codex

Open my Home Assistant config at [config path]. Check why [automation name] is failing, including logs and entity references. Also inspect [dashboard name] for cards that point to missing entities, and draft fixes for both. Show me the proposed changes and wait for my approval before you apply any file edits or submit anything.

Fill in the [brackets]. Agents can make mistakes, so review anything before it is sent, paid or deleted.

2 more reports of this

Get 3 agent uses like this every morning

With the day's top AI news. Free, and one click to unsubscribe.