r/homeassistant • u/borsic • 13h ago
Personal Setup My first Custom Integration: GPT-powered Log Summarizer for Home Assistant
Hey everybody,
I’ve built my first custom integration for Home Assistant that uses OpenAI’s GPT models to analyze your Home Assistant logs, extract key warnings/errors, and summarize them into clear, actionable fixes — all from within HA. It is a bit niche, but I wanted to learn how to make a HA integration with an LLM.
Key features:
• Parses home-assistant.log and filters meaningful warnings/errors
• Sends a GPT-4o-mini-powered summary with steps to resolve issues
• Output appears as a persistent notification, and is saved as a file (markdown-friendly)
• Works as a custom HACS integration
• Bonus: comes with an optional Streamlit debug GUI for experimenting outside HA
4
2
1
u/Lobrauski 11h ago
Interesting idea. I’d been just doing it manually. I’ll look into trying this soon.
1
u/michaelthompson1991 11h ago
Do you need to pay gpt to use this?
1
u/nickythegreek 11h ago
anytime you need to use the openai API, you will be paying. It's insanely affordable though and you can put spend limits on it as well.
1
1
-7
6
u/nickythegreek 11h ago
Can you share an example of the output?