frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Templates not supported for template selector of custom script

Open EnochPrime opened this issue 2 years ago • 3 comments

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

  1. Create script using template selector
  2. 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

image

EnochPrime avatar May 10 '22 02:05 EnochPrime

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.

github-actions[bot] avatar Aug 08 '22 03:08 github-actions[bot]

This is still an issue with 2022.8.2

EnochPrime avatar Aug 08 '22 03:08 EnochPrime

Still present in 2022.9.4

EnochPrime avatar Sep 16 '22 03:09 EnochPrime

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.

gjgeary avatar Sep 30 '22 18:09 gjgeary

Still present in 2022.12.8

EnochPrime avatar Jan 02 '23 22:01 EnochPrime

Filed a PR to fix.

karwosts avatar Jun 15 '23 22:06 karwosts