Convert results form String to Switch item

There’s a long related discussion here:

You can use a String item and associate it with a Switch item in your site map. The “ON” and “OFF” string states will update the visual Switch state (at least in the Basic UI).