-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script Entity ID not Updating when Changed #14140
Comments
Wanted to add to this, also experiencing the issue with 2022.11.1 |
Unfortunately... doesn't seem like anyone actually checks these. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Still ann issue. |
Yep, still an issue. |
Still an issue. |
still an issue |
I've the same issue on |
Still an issue. |
Hmm I cannot reproduce any case where a script is "lost". If I do what you did (new script -> edit in yaml -> change alias -> save), I see new scripts added with some kind of unique # as their unique_id and entity_id. But I don't see anything being overwritten.
Nevertheless, is this a different issue than what you originally posted, which I think involved renaming the entity ids of existing scripts, not modifying the alias of new scripts? Originally you mentioned:
Do you have any examples of this? Also the videos are very helpful in showing which particular UI elements and fields you are referring to. |
I guess the issue is fixed. I just checked and I saw that doesn't happen for me anymore. Previously this would result in Screen_Recording_20230607_064231_Home.Assistant.mp4'1686134532780':
alias: Test
sequence: []
'1686134545845':
alias: Fooscript
sequence: []
|
@Daniel-dev22 , in what sense is this related or a duplicate of #17571. |
Related in that there's issues with the Scripts UI resulting in bad entity IDs. If I update the alias in yaml it does not update the script entity id. If I update the alias in the UI it does update the script entity id. |
There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. |
Not stale. |
Still an issue. |
+1 |
+1 Happening for me with latest HA OS. Just recently moved from a docker container to dedicated machine, this is the cause of a lot of teething problems copying automations over from my old install. |
Still an issue. It makes me afraid to change entity_id at will. |
I know I previously said I didn't think it was possible, but I did find a sequence of steps that allowed me to overwrite an existing script by creating a new one. I have filed the specific steps as a new issue #20777. |
This still seems to be an issue. I don't know the circumstances but when I create a new script, save it and change its |
Same here. I see a discrepancy between the name of the service and the name of the entity. Looks like changing the id of the script changes only the name of the entity, but not of the service. Which is odd in the UI, as you see the name and icon of the service and not the script entity. |
still an issue today for me as well. Just migrated some services from scripts (yaml) and I just noticed the same - exactly as above. Took me a while to realise as it's only in the service tab the real script entity id is shown apparently - all other UI shows the updated name. Does anyone know how to force-update (or which file to update to make this change permanent)? |
for anyone else also having this issue - do you have a |
No includes here. |
I got
But I'm 99% sure that's the baseline configuration. |
only way I got this to be aligned is that I
This means other entities, such as fan for me would still use the old script names after I had done the migrate from yaml to UI on quite a few of these. |
Checklist
Describe the issue you are experiencing
If I create a script, rename the script entity id from the entities menu, the entity id is not renamed in the scripts.yaml.
The auto generator when you type will suggest the renamed entity_id and script name but it's not actually the correct entity id because when the script is called it says the script is not found.
Describe the behavior you expected
If a user renames a script entity_id from the entities page that it will update the script in scripts.yaml
Steps to reproduce the issue
...
What version of Home Assistant Core has the issue?
2022.10.4
What was the last working version of Home Assistant Core?
No response
In which browser are you experiencing the issue with?
No response
Which operating system are you using to run this browser?
No response
State of relevant entities
Problem-relevant frontend configuration
Javascript errors shown in your browser console/inspector
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: