Vicare Heating - switch mode

Can someone give me a hint how to solve the following:
I have the Vicare Heating integration installed.
Now I want to create a switch, that

  1. Toggles between vicare_mode “dhw” and “dhwAndHeating”
  2. Shows the current state of the mode (dhw = Warm Water, dhwAndHeating = Warm Water & Heating"

I guess this is. trivial question but somehow I am struggling with that.
Thank you!