I would also like to thank you for that script.
Let me tell you my situation.
I have a number of Amcrest cameras that send out an email when they detect motion.
It's very easy to add another cc to the email list.
I want to use that email to change a virtual motion sensor to "active".
Should be simple, right?
I checked and the following is my webhook to turn a virtual motion sensor to active:
https://cloud.hubitat.com/api/00a5a796-5e99-4614-XXXX-2e831f6b4a1a/apps/2083/devices/3433/active?access_token=XXXX0f1e-bd6c-413d-ac1c-afbc9553XXXX