Hey folks,
this is driving me nuts! I have been going over this for the past 3 hours…
Shell Script (/config/doubletake_doorbell.sh):
#!bash
curl --location 'http://IP:PORT/api/recognize/upload' --form files[]=@"$1"
shell command in configuration (path hardcoded for test):
shell_command:
send_doorbell_image: bash /config/doubletake_doorbell.sh /root/config/themes/ios-themes/herbstferien-193.jpg
Error message:
[homeassistant.components.shell_command] Error running command: `bash /config/doubletake_doorbell.sh /root/config/themes/ios-themes/herbstferien-193.jpg`, return code: 26
NoneType: None
When I execute the exact same command in the terminal (HA addon) it works.
Why is this not working when evoked via shell command in automation ?!
Please help me figure this out.
Bit of context:
My Nest doorbell can’t be configured in Frigate (no stream URL). So I want to send the event image to the double take REST API for face recognition.