I accidentally disabled a custom template switch with my fat fingers and now I can’t find it anywhere in the UI to re-enable it.
It probably wouldn’t have been possible, except I have gotten into the habit of adding a unique_id field for all my custom entities so that they play nicer with the rest of the UI. It backfired on me this time.
You should be able to go to the little three dot menu (not really three dots but a three line menu) at the top right of the devices or entities page and select to show disabled entities or devices from there.
The problem is that template switches and lights do not show up anywhere under “Settings” as far as I can see, enabled or not. I disabled the entity from the dev tools states page, and now it’s gone completely.
I assume you gave the template switch a unique_id in order to disable it thru the UI?
I just created a test template switch and I can’t disable it via the UI because it didn’t have a unique_id. I gave it a unique_id and then I could disable it thru the UI and it in fact disappeared from the entity list in the dev tools → states list
But it was in the entity list from “settings->devices & services → entities” once I filtered it from the menu I noted above. And I could re-enable from there.