Three icons for switch widget

Hi @all, in my dashboard I have a switch (on/off) for my vacuum roomba. I want that this switch has THREE icons:

  • one icon for charging,
  • one for ready (battery-level = 100%) and
  • one for working.

How can I do this?
It seems that there is no templating function for icons. Here is my workarround:

switch_Roomba:
widget_type: switch
title: Saugen
title2: “”
entity: vacuum.mcrobbi
icon_on: mdi-robot-vacuum
icon_off: {% if is_state(“vacuum.mcrobbi.battery_level”, “100”) %}
mdi-battery-charging-100
{% else %}
mdi-battery-charging-50
{% endif %}

Thanks in advanced - every idea is welcome:-)
Robert