#can i reuse a webhook

1 messages · Page 1 of 1 (latest)

pseudo marsh
#

simple q

can i reuse a webhook in multiple automations

I have a service that sends notifications via webhooks. From my poking, it looks like i can only create a webhook when making an automation

can i use the same webhook endpoint in multiple automations so that i can have different automations fire off depending on the specific notification type -- like an automation to make my speakers make noise on error detected, and another automation to send a notification to mobile on success, etc

shrewd plover
#

The docs indicate that they're 1:1 (https://www.home-assistant.io/docs/automation/trigger/#webhook-trigger): Note that a given webhook can only be used in one automation at a time. That is, only one automation trigger can use a specific webhook ID.

However, it does seem to work having multiple automations with the same webhook ID and them all being triggered with a single webhook call. That may be going into unsupported territory, unless someone has info that the docs are outdated.

pseudo marsh
#

welp, guess that means it's time to.... EXPERIMENT

#

Either that or look at setting up a webhook via nodered and utilizing that to trigger automations depending on the input data, which seems unwieldly

strong barn
#

Why not have one automation that calls a bunch of scripts? Why does it need to be a bunch of automations?