Template Sensor for forecast icon

Would a Template Sensor be the most appropriate way to map from OpenWeatherMap condition state values to the mdi icons for a Mushroom Template card?

e.g. ‘partlycloudy’ ~ ‘mdi:weather-partly-cloudy’

2023.9: template sensors from the UI