pyscript
pyscript copied to clipboard
Feature Request: Webhook support
I dont know if this is easily achievable, but i think it would provide useful, if functions could be triggered via a webhook, just like native automations.
Sometimes the data received via a webhook needs to be processed in some way that is easier in python as compared to an automation. Unfortunately webhooks themselves dont emit an event on which i could trigger.
My current workaround is an automation triggered via webhook, which then calls a service defined in pyscript. However, I only having to define the webhook in pyscript would provide useful.
I also need Webhook trigger in pyscript, It's a very useful function. Thanks!