Virtual contact in Alexa ACTION section

I'm still learning how to use Hubitat and I like it.

I have the skill installed in Alexa. I created a virtual contact in Hubitat and I'm able to see it in the WHEN section of Alexa routine. But when trying to set that contact switch in Alexa under ACTION it says This device is not currently supported. I thought I was able to use this kind of switch in the ACTION. Is it the case ? Or is there a driver for another virtual switch ?

Alexa is a little picky. Try this driver instead:

metadata {
	definition (name: "Virtual contact with Switch", namespace: "cw", author: "cwwilson08") {
		capability "Sensor"
		capability "Contact Sensor"
        capability "Switch"

def on() {
    sendEvent(name: "contact", value: "closed")
    sendEvent(name: "switch", value: "on")

def off() {
    sendEvent(name: "contact", value: "open")
    sendEvent(name: "switch", value: "off")

def installed() {

It works ! Thank you very much. Will be useful.