add most of AE api, uncomment code for AE charging

build successfully locally