explaingit

doanlong1412/ha-optimizer

Analysis updated 2026-05-18

72HTMLAudience · generalComplexity · 2/5

TLDR

A Home Assistant add-on that finds and safely cleans up leftover entities, broken automations, and database bloat in your smart home setup.

Mindmap

mindmap
  root((HA Optimizer))
    What It Does
      Entity cleanup
      Automation scanning
      Anomaly detection
    Tech Stack
      Home Assistant
      HACS
      HTML
    Use Cases
      Database cleanup
      Automation repair
      System monitoring
    Audience
      Home Assistant users
      Home automation hobbyists

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Scan a Home Assistant setup for leftover entities from removed devices.

USE CASE 2

Find automations that silently broke because they reference deleted devices.

USE CASE 3

Reduce database size by identifying sensors that write updates too frequently.

USE CASE 4

Monitor add-on CPU and RAM usage alongside real-time system resource gauges.

What is it built with?

Home AssistantHACSHTML

How does it compare?

doanlong1412/ha-optimizerassyoucandy/telemt-server-guideclarkemedia/email-signature-generator
Stars726777
LanguageHTMLHTMLHTML
Setup difficultymoderateeasy
Complexity2/53/51/5
Audiencegeneralops devopsgeneral

Figures from each repo's GitHub metadata at analysis time.

In plain English

HA Optimizer is a custom integration for Home Assistant, the popular open-source home automation platform. Over time, a Home Assistant setup accumulates clutter: devices get removed but their software records (called entities) linger, automations break silently, and the internal database grows large because some sensors write updates too frequently. HA Optimizer automatically scans for all of these problems and gives you a safe way to clean them up. The main scanner categorizes every lingering entity by risk level so you know what is safe to remove. Rather than deleting things immediately, it uses a soft-delete approach: items are disabled and moved to a trash bin first, where they can be restored if needed, and only permanently removed after a configurable number of days. It also analyzes the recorder database (which stores historical sensor data) to find which entities write the most and whether those writes are useful. A dashboard analyzer checks UI panels for cards referencing entities that no longer exist. An automation analyzer scans for automations that act on deleted devices. An anomaly detection feature compares today's system behavior against a rolling 30-day history to flag unusual spikes in database writes or automation activity. A built-in add-on manager shows all installed Home Assistant add-ons with live CPU and RAM usage, and real-time system resource gauges appear at the top of every tab. The interface supports 12 languages and 11 visual themes. It installs via HACS (the Home Assistant Community Store) and requires Home Assistant 2023.1 or newer.

Copy-paste prompts

Prompt 1
Help me install HA Optimizer through HACS on my Home Assistant instance.
Prompt 2
Scan my Home Assistant setup with HA Optimizer and explain the risk levels it finds.
Prompt 3
Show me how HA Optimizer's soft-delete trash bin works before permanently removing entities.
Prompt 4
Help me interpret HA Optimizer's anomaly detection results for unusual database writes.
Prompt 5
Walk me through fixing dashboard cards that HA Optimizer flags as referencing deleted entities.

Frequently asked questions

What is ha-optimizer?

A Home Assistant add-on that finds and safely cleans up leftover entities, broken automations, and database bloat in your smart home setup.

What language is ha-optimizer written in?

Mainly HTML. The stack also includes Home Assistant, HACS, HTML.

Who is ha-optimizer for?

Mainly general.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.