Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Battery drain on 2024.11 #3228

Open
chaugan opened this issue Dec 4, 2024 · 15 comments
Open

Battery drain on 2024.11 #3228

chaugan opened this issue Dec 4, 2024 · 15 comments

Comments

@chaugan
Copy link

chaugan commented Dec 4, 2024

iOS device model, version and app version

Model Name: iPhone 14 Pro Max
Software Version: 18.1.1
App version: 2024.11

Home Assistant Core Version

2024.11.3

Describe the bug
Both build 2024.10 and 2024.11 has a severe battery drain. According to iOS battery statistics, during the last 24 hours, the app has been active in the background over 16 hours and used 38% of all battery.

To Reproduce

Expected behavior

Screenshots

Screenshots in Norwegian iOS:
IMG_0438

IMG_0439

Additional context

@bgoncal
Copy link
Member

bgoncal commented Dec 4, 2024

Duplicate #2429

@bgoncal bgoncal closed this as not planned Won't fix, can't repro, duplicate, stale Dec 4, 2024
@bgoncal bgoncal reopened this Dec 4, 2024
@bgoncal
Copy link
Member

bgoncal commented Dec 4, 2024

Which testflight build are you in?

@chaugan
Copy link
Author

chaugan commented Dec 4, 2024

I'm on Versjon: 2024.11 (2024.1012)

@bgoncal
Copy link
Member

bgoncal commented Dec 4, 2024

The background activity time is normal, since the app tries to stay alive for local push (in case you have it enabled) and to report sensors, not the percentage of battery used in abnormal, try to roll back to the version that was stable to you and see if it is still stable, then after 2 days upgrade again and wait another 2 days.

@chaugan
Copy link
Author

chaugan commented Dec 4, 2024

Thanks! I'll roll back to 2024.9.5 and see how it works.

@chaugan
Copy link
Author

chaugan commented Dec 6, 2024

The background activity time is normal, since the app tries to stay alive for local push (in case you have it enabled) and to report sensors, not the percentage of battery used in abnormal, try to roll back to the version that was stable to you and see if it is still stable, then after 2 days upgrade again and wait another 2 days.

Reporting back:

After downgrading to 2024.9.5 (2024.986), I saw the normal companion battery behaviour of below 3% battery usage and 16-17 hours background activity.

After upgrading to the latest release 2024.11 (2024.1012), the battery drain went back to the high figures and with the same background activity in hours.

That means that even though the background activity time is the same, the companion app uses more CPU when running in the background on the newer releases than I.e 2024.9.5.

@bgoncal
Copy link
Member

bgoncal commented Dec 6, 2024

Please use it for a few days, also try the latest TestFlight beta that I made available yesterday.

@bgoncal bgoncal added the battery label Dec 9, 2024
@chaugan
Copy link
Author

chaugan commented Dec 13, 2024

@bgoncal

Now tested:

RUNNING ON 2024.9.5

IMG_0496
IMG_0495

RUNNING ON 2024.12.1

IMG_0531
IMG_0530

@bgoncal
Copy link
Member

bgoncal commented Dec 13, 2024

Export your logs while on 2024.12.1 and submit here please https://forms.gle/Uoqz127Phx4mMTpS6

@bgoncal
Copy link
Member

bgoncal commented Dec 13, 2024

I'll only be able to check it next week, so for now, do you have "local push" enabled? If so, try disabling it to see if it improves.

@chaugan
Copy link
Author

chaugan commented Dec 13, 2024

What is local push?
I also are using one widget on the Lock Screen (also had it on 2024.9.5 without any problems and on several versions before that).

how do I export the logs you want?

@bgoncal
Copy link
Member

bgoncal commented Dec 13, 2024

Companion App Settings >> Your server name >> internal URL >> disable local push it if is enabled.

Also came to my mind that one new sensor was added in this app version "Audio output", try disabling it as well at:
Companion App Settings >> Sensors >> Audio Output >> toggle it off

And finally to export the logs you can go:
Companion app settings >> debugging >> export logs

@bgoncal
Copy link
Member

bgoncal commented Dec 16, 2024

I checked the comparion between versions and there is indeed an abnormality, I will investigate it this week, meanwhile please try the above to help evaluate the root cause if you have time.

@bgoncal
Copy link
Member

bgoncal commented Dec 16, 2024

@chaugan can you drop me a message in discord? (username: bgoncal2)

@chaugan
Copy link
Author

chaugan commented Dec 16, 2024

@bgoncal Done! Sent you a message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants