HI I am trying to create a command_line Switch to control motion eye detection.
Switch works fine without a status check but I also want to reflect it status.
From the ssh running commands I can use a command to get the status
from ssh command line
Basically the command_state checks if the wget contains the word “ACTIVE”, in case it will return “true” which is a 0. And 0 means on. If not then it is off. Tested and this works well for me. Also using wget with -q makes the > /dev/null obsolete.
I would like to active the rec function if my alarm system is triggerd. And if the alarm is disarmed the rec should stop. Is it possible to do it with a switch?
hi
trying this with a switch for command_state but not sure why the switch keeps bouncing back to on position. any ideas?
below is my config for the switch. I have curl for on and off because that what i have been using before i ran in to this post explaining the command_state.