Find Where a Home Assistant Entity Is Used

See every place an entity id is used before you delete or rename it: the file, the line and the line itself. Choose your config folder (YAML files, packages, dashboards and the .storage folder) and your Node-RED flows. Your files are read on your device and never uploaded.

Choose your files

or drop them anywhere on this page. Add Node-RED's flows.json the same way, before or after.

Your browser may say it will "upload" a folder: that is its usual wording. The files are only read here, on your device. secrets.yaml is never opened.

What it reads, and what it does not

Questions

How do I find where an entity is used in Home Assistant?

Choose your config folder above, then type the id in the search box. Each place is listed with its file and line, and a short path to it: the automation's name, the dashboard, view and card, or the Node-RED flow and node.

Home Assistant warns about an unknown entity, or "Unable to find referenced entities". Where does it come from?

Search for the id the message names to see every file that still uses it. With the .storage folder included, every id that is used but missing from your entity registry is flagged, so the flagged list shows all of them at once.

Does it read dashboards made in the UI?

Yes. Home Assistant keeps them in the .storage folder, in files named lovelace and lovelace.dashboard_ followed by a name. The folder is hidden on some computers: on a Mac, press Cmd+Shift+. in the file picker to show it, or choose those files by hand.

Where is my Node-RED flows.json?

With the Node-RED add-on it is in the add-on's own config folder, addon_configs/a0d7b954_nodered/flows.json (older versions kept it in the node-red folder inside your config). You can also export your flows from Node-RED (Menu, Export, All flows, Download) and add that file here.

Is it safe to delete an entity that is not used anywhere here?

Nothing in the files you chose depends on it. Other things still can: its history and statistics, voice assistants, and add-ons or integrations whose settings are not in these files.

Can it rename an entity id everywhere?

It shows every line that would change, before and after, and gives you a changed copy of each file. You put the copies back yourself, after renaming the entity in Home Assistant.