I have a mix of automatically created automations and ‘hand made’.
At some point in the later revisions of HA, some of them stopped appearing in alphabetical order.
an example:
I’m not sure, but it seems to be happening if I rename the automation.
This makes it rather complicated to find the automations.
So why does this happen, and how do I fix it?
I’ve started moving quite a few of them to node-red, so the problem gets less and less, but it’s still really odd?
Strange. I don’t normally look at Configuration > Automations but I just checked and the list of automations is sorted alphabetically on both my production server (0.103.2) and my test server (0.107.6).
I have 3 automations with an id and the rest do not have an id. Nevertheless, all of the automations appear alphabetically sorted in Configuration > Automations. Therefore it can’t be using id to sort them.
Configuration -> Automations (Automation Editor), to be precise.
Well, mine are sorted alphabetically (I’m on 0.107.6 ).
Do you know that you can go to Developer Tools -> States and filter your entities by entering automation.? Does it show the automations in the same order?
By the way, there you can quickly filter them by state, too, to show only those that are off, for example
Or type an automation’s name if you need to find it quickly.
Ah… never did that.
Well, if there is no search and it changed the way it works the only option I see is to create a feature request for either sort automations (alphabetically or else, with some options) or add search option.
Alternatively, use Ctrl-F
if you don’t define IDs for you automations when you create them in Editor (and I presume you don’t), it generates ID for you and then uses it for sorting. And it does not change it if you change the name. That’s probably why you see this behaviour.
so adding sorting criteria to the Editor sounds sensible for people using it.