My Tado app alerts me when the batteries in it are low. I don't know what the API shows - so if I were you I'd just check if( $battery_state != "NORMAL" )