Apple Script Curl command OR HA webhook not processing?

So I’ve got 4 separate Apple Script files to process motion detection from my POE Cameras from within SecuritySpy on my Mac…

do shell script "curl -d “” “http://192.168.1.79:8123/api/webhook/driveway_ss_trigger_1"”
do shell script "curl -d “” “http://192.168.1.79:8123/api/webhook/front_porch_ss_trigger_1"”
do shell script "curl -d “” “http://192.168.1.79:8123/api/webhook/back_porch_ss_trigger_1"”
do shell script "curl -d “” “http://192.168.1.79:8123/api/webhook/garage_ss_trigger_1"”

, but only the garage script actually runs. I’ve executed the automations within HA and they function correctly, but the webhook ID doesn’t seem to be coming through except for the garage one mentioned. The scripts are identical except for their name and separate files.

One note, from within Script Editor on my Mac Pro, I can “play” the garage script and it functions fine, whereas the others will not. I don’t know how to troubleshoot whether the Mac isn’t processing the Script or Curl command correctly, or whether it’s HA and it’s handling of the webhook ID once it gets there.

I turned on logger: in my configuration.yaml file and it brought my HA to a crawl with too many entries. I changed it to…

logger: 
  default: warning
  logs: 
    homeassistant.components.automations: debug
    homeassistant.components.webhook: debug
    homeassistant.components.switch: debug

and this is all it posts…

2020-07-14 23:23:44 DEBUG (MainThread) [homeassistant.components.webhook] Handling webhook POST payload for driveway_ss_trigger_1
2020-07-14 23:27:40 DEBUG (MainThread) [homeassistant.components.webhook] Handling webhook POST payload for front_porch_ss_trigger_1
2020-07-14 23:35:37 DEBUG (MainThread) [homeassistant.components.webhook] Handling webhook POST payload for garage_ss_trigger_1

notice that the garage_ss_trigger_1 is not a line item, yet it functions perfectly. Thoughts anyone?

So I went into Terminal on Mac and entered the curl command, and it executed. Went back into File Editor on HA and found this line in the debug for the appropriate time stamp…

2020-07-15 00:46:20 DEBUG (MainThread) [homeassistant.components.webhook] Handling webhook POST payload for driveway_ss_trigger_1

So if I’m thinking about this correctly, the curl command is getting to HA. HA is recognizing the webhook, but it is not executing. I can manually execute the automation in the Configuration and it works. here is the excerpt from the automations.yaml file…

- id: '1593209500332'
  alias: ss_driveway_motion
  description: Activate lights on SS driveway camera motion
  trigger:
  - platform: webhook
    webhook_id: driveway_ss_trigger_1
  condition:
  - after: sunset
    before: sunrise
    condition: sun
  - condition: state
    entity_id: switch.shelly_shsw_1_115f00
    state: 'off'
  action:
  - device_id: e6629ba0af684d6890b50f41079b5a4d
    domain: switch
    entity_id: switch.shelly_shsw_1_115f00
    type: turn_on
  - delay: 00:10:00
  - device_id: e6629ba0af684d6890b50f41079b5a4d
    domain: switch
    entity_id: switch.shelly_shsw_1_115f00
    type: turn_off

What am I missing?

I tried something similar with SecuritySpy using the HTTP POST command, which is essentially the same thing as your method. I got an unrecognized web hook error. The difference may be because I’m using Home Assistant Cloud. I ended up generating web hooks via the cloud app. This results in all SecuritySpy actions having to go through the Internet to get to HA running on the same MacOS image. I use Docker to run HA so that may have an impact.