Renaming entities issues

I created a bunch of scripts using yaml. Not the visual editor. Because of this it named by script entitites things like script.1676117253803 etc

I prefer slightly more logical entity names for when i’m using it so i went into entities view and renamed the entities manually to logical names like script.stop script.play etc.

When I tried to call these scripts from my dashboard, they wouldnt work and gave errors that no script.stop etc can be found. But running the script from the scripts section works.

I then went to the config folder and opened scripts.yaml and can see that in this file all scripts still have their old entity names. How do I resolve this?

Change the names in the script.yaml

1 Like

Will do that, thanks. Wasnt sure that was the correct approach, thats it. Had read somewhere that automations.yaml file also shouldnt be manually edited and should be done via the automations section only hence was a bit cautious. Is it a bug that the entity name edits arent making it to scripts.yaml or you think I’m doing something wrong?

As far as I know scripts written in yaml are not editable in Ui

1 Like