I am trying to trigger an automation from a webhook call from my internal network
triggers:
- trigger: webhook
webhook_id: "webhook_id"
variables:
phase: "{{'on' if trigger.data.phase == 'start' else 'off'}}"
However, when I try to call this, curl reports an error. From Windows I have
curl -X POST -H "Content-Type: application/json" -d '{ "phase": "start"}' https://[myha.lan]:8123/api/webhook_id
curl: (35) schannel: next InitializeSecurityContext failed: SEC_E_INVALID_TOKEN (0x80090308) - The token supplied to the function is invalid
From my TrueNAS (Linux) where I actually want it to work
curl -X POST -H "Content-Type: application/json" -d '{ "phase": "start"}' https://[myha.lan]:8123/api/webhook/webhook_id
curl: (35) OpenSSL/3.0.13: error:0A00010B:SSL routines::wrong version number
Maybe this is because there is no https? (I am running a bare-metal HAOS installation). But If I replace https with http, then there is no error, but also no effect. If indeed its an https issue -- what do I need to do to make this work internally (I have an HA Clooud subscription is that is necessary, but I would like to keep this internal)