Giter Site home page Giter Site logo

Comments (26)

tarantelklient avatar tarantelklient commented on June 17, 2024

Same problem on iPhone 14 Pro with iOS 17.0.3

EDIT: It seems like HA app runs some type of "music", because my headphones, which are connected to my iphone and mac, only focus on the iphone and do not switch to the mac if i start there any media.

from ios.

Simon-Design avatar Simon-Design commented on June 17, 2024

oh wow never checked that in battery settings but now it makes sense (iPhone 12 mini iOS 17.0.3)

from ios.

man55 avatar man55 commented on June 17, 2024

I have uninstalled the app for now because its background activity is eating up all my battery! I have to charge my iPhone in the middle of the day, which I have never done before.
When will this be fixed?

IMG_7990

from ios.

mr-derk avatar mr-derk commented on June 17, 2024

I have this issue too. 65 hours of background activity in 10 days..

from ios.

bgoncal avatar bgoncal commented on June 17, 2024

The time in the background doesn't correlate to battery usage, so it's normal to have 14h50m, but it's more interesting to see what's the battery usage (%)

from ios.

man55 avatar man55 commented on June 17, 2024

The time in the background doesn't correlate to battery usage, so it's normal to have 14h50m, but it's more interesting to see what's the battery usage (%)

Just look. Screenshot in first message.
The HA in the background eats up about 50% of the battery.
After prohibiting the application from running in the background in the iOS settings, the situation has improved noticeably, but you also have to kill the HA after each launch.

from ios.

bgoncal avatar bgoncal commented on June 17, 2024

Sorry, I missed that both were from your device. I will keep track of that, currently I don't see the same issue on my device, did you try to remove specific permissions and see if it improves? For example, just disable location permission for HA app

from ios.

Simon-Design avatar Simon-Design commented on June 17, 2024

I think it’s an iOS issue and not with the app.
I’m now on 17.2 beta and everything is back to normal

from ios.

zacwest avatar zacwest commented on June 17, 2024

It's possible the Local Push extension went haywire, generally this happens when there's low overall battery use and it percolates up to the top.

from ios.

man55 avatar man55 commented on June 17, 2024

I think it’s an iOS issue and not with the app. I’m now on 17.2 beta and everything is back to normal

Hmm, hundreds of other applications are installed and working, including background and geolocation, but the problem is only with HA.
And is this an iOS problem? But what kind of coincidence?

from ios.

zacwest avatar zacwest commented on June 17, 2024

Disable Local Push if you do not want the app to do this. https://companion.home-assistant.io/docs/notifications/notification-local

from ios.

man55 avatar man55 commented on June 17, 2024

Disable Local Push if you do not want the app to do this. https://companion.home-assistant.io/docs/notifications/notification-local

Thanks, but I need this feature, it's one of the best features. Maybe the developers will fix this better?

from ios.

bgoncal avatar bgoncal commented on June 17, 2024

I think it’s an iOS issue and not with the app. I’m now on 17.2 beta and everything is back to normal

Hmm, hundreds of other applications are installed and working, including background and geolocation, but the problem is only with HA. And is this an iOS problem? But what kind of coincidence?

Out of curiosity, what other apps with the same local push extension are you using? I can install them and see how it behaves on my phone too

from ios.

man55 avatar man55 commented on June 17, 2024

I don't see any problems with push. Again, I have disabled background updates and geolocation for the Companion app in the iOS settings, but I continue to receive push notifications. I don’t know what functionality might have stopped working, maybe I don’t use it. But now there is no such problem with huge battery consumption from HA.
So maybe the problem is not Local Push after all? But I still have to kill the Application after each opening, otherwise it will drain the battery again. This is a bug that needs to be fixed, and Local Push is not to blame.
IMG_8350

from ios.

ColinRobbins avatar ColinRobbins commented on June 17, 2024

I am also seeing very high battery drain, since upgrading to iOS 17.1 from HA.
Bizarrely the problem appears to be worse when the phone is switched to “Low Power Mode”, which I believe disables background refresh.
The problem is also worse when off the home network, and thus needing mobile data.

from ios.

Palmdale95 avatar Palmdale95 commented on June 17, 2024

Ran into the same problem just yesterday afternoon. It is really strange because there was no update done either on the app or the iPad or the iPhone or HA itself. All have the latest version installed.
It is really killing my devices battery.

from ios.

deviantintegral avatar deviantintegral commented on June 17, 2024

Local Push is not to blame

I was noticing high drain overnight (say, 2% an hour), and disabling local push eliminated it. With it off, my iPhone 12 mini can go several hours overnight not registering any change in battery charge.

It’s got me thinking there’s likely different issues here. For example, is it possible that there’s some wifi issue that can cause local push to use more battery? Or even something like Wifi 6 connections being able to go in a lower power mode than Wifi 5 connections?

I also wonder if we may be seeing the difference between devices with different battery sizes. My iPad Air has local push on, but it’s battery is so much larger that idle drain appears to be very low even with local push enabled.

from ios.

zacwest avatar zacwest commented on June 17, 2024

What do you have the Periodic Update value set to in app settings under Sensors? Local Push will also update sensors while it is connected. The system keeps the Local Push websocket connection going but it should just be used for push and it'll do sensor updates while alive.

from ios.

deviantintegral avatar deviantintegral commented on June 17, 2024

Sensors are currently set to 5 minutes.

I did also go through disabling all other functionality (location, background updates, etc) before I determined that local push was the issue.

from ios.

claudiobmgrtnr avatar claudiobmgrtnr commented on June 17, 2024

Have the same issue.

from ios.

mixman68 avatar mixman68 commented on June 17, 2024

Same issue for me this night from 90% at 01:00 to 75% at 08:00

Edit 09/01/2024 : disabling local push solve the issue

from ios.

codyc1515 avatar codyc1515 commented on June 17, 2024

It appears that the HA iOS keeps a websocket open the entire time that Local Push is enabled. Whether or not this is worth it for you depends (privacy vs battery life). I'm not sure that we can immediately solve this as it will depend on whether iOS can sleep or not while a websocket is open.

from ios.

mixman68 avatar mixman68 commented on June 17, 2024

We can imagine to send a generic notification via Apple servers to reconnect local socket and get the real notification

from ios.

codyc1515 avatar codyc1515 commented on June 17, 2024

The intent of the local push is to avoid sending notifications to Apple. The function you are describing where a dummy push is sent and then HA would poll was declined by Apple, as I recall.

from ios.

FabioEight avatar FabioEight commented on June 17, 2024

Any update on this issue?

from ios.

ednieuw avatar ednieuw commented on June 17, 2024

Same here on iPad. The apps also drains the battery to 0%. It should reduce activity when battery is below 20% but better not to use power when not in use.
Deleted the app and battery drainage stopped

from ios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.