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
metbril
(Robert 🇳🇱🇪🇺)
2
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!
metbril
(Robert 🇳🇱🇪🇺)
4
To improve my karma you can always like my answer and mark it as the solution.