Command line binary sensor unknown error

Hi Guy’s,

I’m trying to run this command in HASS.IO. Log tells me nothing more than “command failed”

It’s working perfectly when run from the terminal. Any idea whats going on?

curl -k --silent “http://81.206.XX.XXX:2200/get_status.cgi?user=admin&pwd=XXXX” | grep -oc "alarm_status=1

Not sure, but I read somewhere that the grep version in hassio does not allow all parameters.

Found the solution.

curl -k --silent “http://81.206.XX.XXX:2200/get_status.cgi?user=admin&pwd=XXXX” | grep -c "alarm_status=1

is working. Now got a working movement sensor on my camera.

Thanks for the help metbril!

To improve my karma you can always like my answer and mark it as the solution. :wink: