Code: xxx=`echo '$QBW_DBUS_VERBOSE_OUTPUT' | tail -1 | cut -d \" -f 2`;if [ "$xxx" == "locked" ] ; then <action_if_locked>; else <action_if_unlocked>; fi Yup did that, but "locked" executed a command that activated on_sight, so now its counter command tucked inside "unlocked" never gets executed I'll get back to you with code
xxx=`echo '$QBW_DBUS_VERBOSE_OUTPUT' | tail -1 | cut -d \" -f 2`;if [ "$xxx" == "locked" ] ; then <action_if_locked>; else <action_if_unlocked>; fi