I’ve restarted several times while correcting suffix problems introduced with an update to ESPHome.
For unknown reasons, updating ESPHome often, and with no pattern, will add a suffix (_2, _3 etc) to my entities. This breaks many automations and NodeRed flows. So, I fix them one at a time and restart Home Assistant between the fixes.
Strange…
Did you create the automation in YAML mode/in the .yaml file?
What I have done is to copy the yaml code in a txt file, delete the whole section for that automation in the .yaml file, restart HA (or at least the automations) and recreate the automation in the UI.
Also, be aware that if you have HA open in multiple tabs/windows, this can have strange behavior (at least, I have experienced that).
So, refreshing your browser/HA tab might be a good idea too. (before recreating the automation)