@Brons2 tasmota can now be done over the air using tuya convert. I was more afraid of damaging my plugs when prying them open then doing soldering. For switches and not dimmers or Dimmable bulbs, try this
The community might have something else, too.
You might also try creating a simulated alexa switch. It works with hubitat
And have alexa trigger a routine when the contact sensor is turned on or off
If you go with tasmota, I have tried many options and have found which ones are better than others.