Battery usage

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.

1 Like

Did you ever manage to figure this one out? The companion app is just obliterating my phones battery non stop like 20% per day. I have minimum location accuracy set to 200m.

Not at this stage, I’ve just had to charge a lot more. I’ve turned off all the new sensors but that didnt help. Tried erasing HA application and resetting it up from scratch, no change either.

Some days are worse than others for some reason. Some days, I get almost what I would have prior to the update, some are really bad. The worst I’ve seen, as far as I can tell, HA blew through 60% of my battery in 1.5 hours. I couldn’t stop the drain, so after rebooting the phone, it seemed to go back to something reasonably normal.

Do you guys by chance have lovelace live view picture entity cards setup? If so there is a known issue about it. Check the app data usage that would be an indication about battery drain. Here is the issue: https://github.com/home-assistant/android/issues/979

Yeah I do but I also have the automatically close connection option checked in my user profile. I wasn’t however aware of the bug mentioned.

Actually I do as well. Would this update in the background though if not using the app? I saw the other user checked an option to disable background refresh so I may go and find out where to change that on my end and see if it helps at all. Thank you for the tip.

Edit: just checked and always close connection was checked on for me. Checked data usage and it’s fairly normal only around 10mb a day.

what sensors do you have enabled?

I have:

  • Phone State
  • Battery Level
  • Battery State
  • Is Charging
  • Wifi SSID
  • Geolocation (Single, background, zone all set to 200m)

The rest I’ve disabled. Today the battery usage is much better but still around 5%, but I can live with that over yesterday’s usage. Still pings for location quite often -> Samsung Location SDK is quite high as well. Would I set the minimum GPS accuracy higher or lower to test if battery usage improves? I was thinking higher such as 500m but that might send more notifications to the server.

accuracy only matters for what we SEND to home assistant…it wont stop the phone from receiving updates and then processing them…if anything you would lower the number to get less updates sent but that doesnt mean we wont request more location updates

I’m also experiencing some heavy battery drain with the HA android app.

Yesterday, I had a “default” configuration for sensors enabled on my Pixel 3, and the battery was drained 31% by the HA app after 16 hours use. After discovering that, I disabled ALL sensors and so far today the HA app has used 8% after 4 hours off the charger. On track for another 31-32% battery drain day with 0 sensors enabled. Any logical suggestions for me to try? I still have all the sensors disabled. Can I stop the sensor update worker service?

EDIT - I just disabled background data usage on the app with 8% usage on the app. Will update again later with feedback. The app has used 95 MB of data in the background in only 2 days. whew That’s a lot of data for a few sensor updates.

The data usage also contains the webview data such as your lovelace cards and the entire frontend and backend calls etc.

As background data usage?

it takes about 5 min for the frontend to close the connection so if you have cameras on the home screen those can add up.

I have all sensors disabled. Something is seriously broken. App version 2.5.0-full running on Android 9.

Remove camera live view cards until the bug is fixed.

My data usage doesn’t seem abnormally high, but will try disabling the camera views.

it could be low but since the connection isnt being dropped its causing issues unfortunately :frowning:

On my wife’s phone with Android 6, I noticed much more consumption than my Android 9. With only location sensors turned on (no live view from cameras). It seems to connect to GPS too often despite the phone being at home all the time. Is there any way to do this? Battery consumption is up to 40% throughout the day