Curl command error after moving to Hass.io

Hi guys,

I moved my configs over to my new HASS.IO installation. All is cool but i am getting the below errors for all my Foscam 9821. My Foscam 8910 using the MJPEG component is running fine. What gives? Any guidance would be appreciated.

2017-08-17 00:33:37 ERROR (SyncWorker_11) [homeassistant.components.switch.command_line] Command failed: curl -k --silent “https://192.168.1.XXX:XXX/cgi-bin/CGIProxy.fcgi?cmd=getMotionDetectConfig&usr=####&pwd=####” | grep -oP “(?<=isEnable>).*?(?=)”

Keep in mind that shell commands run in the account of the HA user. If you moved from a standard HA install to HASS.io, chances are your user account for HA changed as well (IDK for sure as I don’t use HASS.io). So you may need to add the HASS.io user to sudoers list.

Cool cool, will try that @rpitera. Thank you for the lead. :slight_smile:

1 Like

Ahh no dice, the user changed to root of course. Plus the other curl commands used to control the camera are still working. I think the issue falls in the grep command itself but am not sure how to fix it.

Hi @highfi13g,

maybe this can help you: Problem with curl and HASS.IO (solved)

1 Like