Hi folks, hope you’re all having a lovely festive period time with family and friends.
I used to have all my automation and scripts in YAML. I finally made the move and imported them to the UI. This mostly went fine, some disappeared in the process, but nothing I couldn’t save from my backup.
However, one thing I’m finding is that I have inconsistencies between the old and new script names - this means that anything calling a script (for example a Lovelace button service call) is calling the incorrect script name.
For example …
… this script is called “script.hot_water_boost” when I view it from the Developer Tools / States pane.
It’s also “script.hot_water_boost” when I view it from Settings / Devices & Services / Entities pane.
It’s even “script.hot_water_boost” when I pull it up in Settings / Automations & Scenes / Scripts / Select Script / Three Dots / Information / Settings.
However … if I try to use “script.hot_water_boost” in my Lovelace dashboard button, it gives me an error saying that it can’t find that service to call.
If I edit my dashboard button …
… and let it autocomplete the name for me, I see that it’s actually called …
… script.hot_water_boost_2!
This works fine and calls the service correctly. The problem I have is I’d like to fix these so the script entity is named correctly (script.hot_water_boost_2, not script.hot_water_boost_2), but I can’t find anywhere to do that as Home Assistant think’s it’s already called that.
Has anyone come across this before, and does anyone know how I could go about correctly these script entity names?
Thanks very much as always!