Convert HS to RGB in template


in an automation I’d like to convert a Hue color value into an RGB value to feed to my RGB light. However I’ve yet to find a workable solution.
One function I’ve found possibly helpful, but is not available in templating : homeassistant.util.color.color_hs_to_RGB().

is it possible to access more modules in templating?


I’m pretty sure the light component will take any of rgb_color, hs_color or xy_color for any light, because internally it converts everything to hs_color. At least that’s the way I read the code.