Assuming you have the HA app installed you can just use the sensor found under Settings, Companion App, Manage Sensors, Battery Sensors, Charger type.
I'm not sure how quickly it updates but give it a try.
Assuming you have the HA app installed you can just use the sensor found under Settings, Companion App, Manage Sensors, Battery Sensors, Charger type.
I'm not sure how quickly it updates but give it a try.