Battery usage

The Home Assistant app is now accounting for 16% of battery usage on my Android 7 tablet, even though I have scarcely used it. Is anyone else experiencing this?

What sensors do you have enabled? You may want to go in the settings and disable the ones that you don’t need. In the beginning new sensors were automatically enabled but that is no longer the case after the latest release.

Sorry, don’t understand. Normal battery usage for an Android app is around 2%. Even the screen is only using 18%. For what it’s worth, though, they’re nearly all disabled.

Yes on my phone it uses 1-2% by the end of the day. The sensors update in the background and there is now a foreground service that allows the update to be more reliable instead of doze forcing it to be killed until the next time the app was started.

On my Android phone the Home Assistant app is using around 3% of the battery. I notice that the Play Store update which was installed yesterday on the tablet has not gone through yet on the phone. Could the update have something to do with it? I’m pretty sure this issue has only come up in the last 24 hours. Normally the battery saver on the tablet complains about anything that’s hogging more than about 5% and the HA app has never been an issue before.

There’s now a foreground sensor worker that will run while your tablet is sleeping, it grabs data from the sensors on a 15-minute periodic interval and sends them to HA as a foreground service. Try turning off some sensors like the light sensor or proximity on the tablet. The sensors before were all enabled once created so you would’ve had to have turned them off manually after updating the app. The new ones added in the last release are off by default, in fact the default setting now is for all to be disabled with the exception of battery.

Since the update prior to the latest one (2.1.0?), I too have had serious issues with battery. I used to be able to get a day from the phone, now I find I have to charge it in the arvo, and then put it back on in the evening or it will go flat.

HA app battery use can sit anywhere between 8-20% for the day. Its gotten better after turning off all the sensors that were enabled by default, but still not great. With the default sensors enabled (post update, everything was turned on) it was at that 20% mark.

Running it on a Pixel 2 with Android 10 installed, and only the location sensor, battery sensor and wifi sensor enabled.

I have every sensor enabled on my pixel 4 XL and the app only uses 1-2% by the end of the day.

I have now disabled every sensor and battery usage is back to normal. Not sure what this says about the quality of the HA app. :face_with_raised_eyebrow:

@Stiltjack if you paid attention to what I said up above that we had left all sensors enabled by default in one release and had corrected that in the other. I can tell you that on my pixel 4 xl with every single sensor enabled I hardly ever see the app register on my device at the end of the day. Battery usage will vary from device to device which was why I recommended you check the sensors. Not every device has the same set of sensors and not every device has the same manufacturer. Rest assured future sensors are not enabled by default so this will not be an issue.