how to add battery level parameter

how to add battery level like a parameter into the traccar devices state, I have a suntech device installed and everything works perfect, but I would like to get the battery level of the device, how can I do it? thank you.