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.
- 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.
Related agent uses
Build a dinner-planning app from pantry and weather data
A non-coder used Codex to make a local meal-planning app that draws on kitchen stock, garden harvests, dietary limits, appliances, and the forecast.
Use Codex for everyday computer chores
People used Codex for research, file searches, slide edits, spreadsheet cleanup, and other routine work.
Use Codex to organize recipes and send a refill request
A communications professional used Codex to sort family-friendly recipes and message her sonβs doctor about a refill.
Post World Cup finals to a Signal group
A Claude Code agent monitored ESPN for finished World Cup games and relayed each final score to a three-person Signal chat with a validation step first.
Turn blood test PDFs into a charting app
A developer used Claude to convert MyChart lab PDFs into a browser tool that tracked values over time and marked out-of-range results.
Connect Claude to Apple Health and Fitbit
Set up Claude to read health data through MCP and ask about workouts, sleep, and meals.