[Solved] - IOS App & apple Watch - Scripts run

hi
I tried using HA application version no. 2024.9 and beta 2024.11.2 to run scripts on iphone.
Premise: if I launch the script from the dashboard, everything works. Execution also takes place if I launch the script from the administration area.

HA App
I created a widget on iphone and assigned the script. When the widget button is pressed, the script is not launched. There is no trace of any run attempt on the dashboard.

Apple Watch
Same, I have assigned the script to ‘Settings → Apple Watch → Configuration’ and the behaviour is the same.

Is there any particular setting that needs to be made?
thanks
IOS 18.1

solved.
The script ID did not match in reality.
Although in development tools → states I saw the correct ID name, inside the scripts.yml file the ID was something else entirely.

compared to automations where the id is numeric and generated, for scripts the ID is the name that is assigned the first time in creation.
If you rename the script and adjust the script.xyz suffix in the script settings, it does not change within the file.