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?