Macbook Battery State

Does anyone know a way to bring this in to HASS? I’d like to control when the charger is on depending on the current Macbook battery level.

Did you ever find a way?