Convert cover template to switch (boolean?)

Is it possible to convert a cover template to a switch?

To be able to control it via Alexa?