Time active to HomeAssistant


I’m trying to get my daily Time Active from several machines to display them in HomeAssistant.
Can someone suggest the best way to accomplish this. I’ve created a python script to total up my aw-watcher-afk events but the logs aren’t accurate on mac. Is there an API call I can make to get this info?

Thank you.