Webhook not working (just downloads)

I made a new automation and set a new web hook as the trigger. I didn’t configure anything else.

When I open the API URL Safari wants to download.

http://mac-mini.local:8123/api/webhook/ZFuzFUTZfuzTFtfH

Am I doing something wrong here? I am aware that this works only locally.

That is expected.
When you do a GET request (what your browser does when going to a URL) it will get (download) the resulting page (which in this case is an empty file).

When that happened the trigger was OK, which means that it is working.

1 Like

Ok, but can I avoid this?

Not with a browser, that is just how they work.

Is there a better way of doing this?

The goal is to send an URL to HA which it then passes to a shell script.

Use the REST api to set the value of, e.g., a text helper to the value of the url