add battery plugin

add battery plugin