Here is my Driver that I use for a virtual device in Hubitat for my Ring Doorbell. I use an Alexa Routine, triggered by Ring, to turn on this combined Switch/Motion device in Hubitat. It automatically turns itself back off to be ready for the next Ring motion event. It has worked flawlessly for many months.