With new improvements to the automations UI, there are descriptions with built-ins that could be extended to scripts. For example, testing an entitie’s state resolves to: “Confirm Great Room TV Watching is on”.
Currently when executing a script, it only calls out "Script: ".
Proposal: Add to the script syntax a new field (e.g. service_description_template
). The new field would support a templating that has access to the service call’s input fields. The desired output is to provide action specific verbage that describes what a specific script does.
For example instead of “Script: Area Scene Selector”, it would be possible to template:
“Set Dining Room scene to Movie, allow scene to get brighter”
The underlying template would take inputs of the area
, scene_mode
, allow_darker
, and allow_brighter
to render the natural langue description that would go into the UI.