Best method of knowing when our phones are plugged in?

Ariela android client has a build in battery MQTT sensors that can send informations to HA like: battery level, health, temperature, charging state, even if the phone is charging wireless or by cable.