detect charging status and do actions

turn on off state
change widget icon to intermediate color in this state