home-assistant / home-assistant/android
Android sensor "is_charging" shows state "unplugged" when Battery Optimization limit to 80% is activated
- Dominant language
- Kotlin
- Stars
- 3.9k
- Forks
- 1.1k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 81
Description
**Home Assistant Android app version(s):**
2025.5.3-full
**Android version(s):**
16
**Device model(s):**
pixel 6a
**Home Assistant version:**
2025.6.1
**Last working Home Assistant release (if known):**
This has started a long time ago, when Google introduced the Battery Optimization.
**Description of problem, include YAML if issue is related to notifications:**
Even though my android device is plugged into the charger, the sensor "is_charging" of the mobile Android app shows the state "unplugged" , when the charging-limit of 80% is reached.
This only happens, when Battery-Optimization is enabled in Android:
settings > battery > Battery state > optimized charging > charging limit 80% (Translated from german)
There are so many sensors describing the energy-state of the phone:
- Battery state
- Charger type
- Is charging
But none of them reliably show it the device is connected to a charger, once the charge-limit of 80% is reached.
**Companion App Logs:**
```
```
**Screenshot or video of problem:**

**Additional information:**
Contributor guide
Assessment
This issue has not been assessed yet.