frontend
frontend copied to clipboard
Templates not supported for template selector of custom script
Checklist
- [X] I have updated to the latest available Home Assistant version.
- [X] I have cleared the cache of my browser.
- [X] I have tried a different browser to see if it is related to my browser.
Describe the issue you are experiencing
When attempting to write a template string in a template selector of a custom script the UI reports "The UI does not support templates, you can still use the YAML editor." This occurs for the Call service
action in both the automation and scripts editors as well as the Services page in the Developer Tools.
Describe the behavior you expected
The UI to allow template strings to be written like the template trigger or condition.
Steps to reproduce the issue
- Create script using template selector
- Write template string in the template selector field
What version of Home Assistant Core has the issue?
2022.5.3
What was the last working version of Home Assistant Core?
No response
In which browser are you experiencing the issue with?
Brave 1.38.111 (Chromium 101.0.4951.54)
Which operating system are you using to run this browser?
Linux Mint 20.3
State of relevant entities
No response
Problem-relevant frontend configuration
alias: New Script
fields:
message:
name: Template
required: true
selector:
template: null
sequence: []
Javascript errors shown in your browser console/inspector
No response
Additional information
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. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.
This is still an issue with 2022.8.2
Still present in 2022.9.4
2022.9.7 also. I am trying to put together some scripts with service calls that will require some templating. It is frustrating that this is documented to work, but actually doesn't in practice. I would like to confirm that this issue is not longer considered stale.
Still present in 2022.12.8
Filed a PR to fix.