Excellent supercapacitor and sensor performance of robust cobalt phosphinate ferrocenyl organic framework materials achieved by intrinsic redox and structure properties.