Comments (26)
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.
oh wow never checked that in battery settings but now it makes sense (iPhone 12 mini iOS 17.0.3)
from ios.
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?
from ios.
I have this issue too. 65 hours of background activity in 10 days..
from ios.
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.
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.
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.
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.
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.
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.
Disable Local Push if you do not want the app to do this. https://companion.home-assistant.io/docs/notifications/notification-local
from ios.
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.
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.
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.
from ios.
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.
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.
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.
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.
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.
Have the same issue.
from ios.
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.
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.
We can imagine to send a generic notification via Apple servers to reconnect local socket and get the real notification
from ios.
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.
Any update on this issue?
from ios.
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)
- App locks up for 15-20 seconds on launch HOT 23
- Background updates eventually hang HOT 32
- `Locale` sensitive test - `testBasicSensor()`
- 1
- git clone https://github.com/home-assistant/iOS.git cd iOS # you must do one of the following, but you do not need to do all of them: ## install cocoapods via homebrew, use that brew install cocoapods $(brew --prefix)/opt/ruby/bin/gem install cocoapods-acknowledgements pod install --repo-update ## install ruby via homebrew, use that brew install [email protected] $(brew --prefix)/opt/[email protected]/bin/bundle install $(brew --prefix)/opt/[email protected]/bin/bundle exec pod install --repo-update ## install ruby via rbenv, use that brew install rbenv ruby-build rbenv install bundle install bundle exec pod install --repo-update
- git clone https://github.com/home-assistant/iOS.git cd iOS # you must do one of the following, but you do not need to do all of them: ## install cocoapods via homebrew, use that brew install cocoapods $(brew --prefix)/opt/ruby/bin/gem install cocoapods-acknowledgements pod install --repo-update ## install ruby via homebrew, use that brew install [email protected] $(brew --prefix)/opt/[email protected]/bin/bundle install $(brew --prefix)/opt/[email protected]/bin/bundle exec pod install --repo-update ## install ruby via rbenv, use that brew install rbenv ruby-build rbenv install bundle install bundle exec pod install --repo-update
- Remove deprecated iOS 12 things HOT 1
- `size` job is run even for forks and always fails
- iOS assist shortcuts/intent not working with Google GenAI Conversation HOT 1
- Hide "Send Location" shortcut ? HOT 1
- background refresh is always disabled HOT 6
- Complications not showing up when editing watchface
- Update Popup Too Long Hiding the Okay button HOT 2
- MacOS App Unexpected Crash HOT 4
- “Swipe up bar” not transparent HOT 2
- Disconnected: Did not receive auth message within 10 seconds - Since the latest iOS app update HOT 30
- Check if BTLE device is connected HOT 1
- Blank Pages and freeze + OSError: [Errno 24] Too many open files since the last update 2024.3.0 HOT 13
- Actions not working in Shortcuts - Crashes App HOT 2
- Can not toggle Toggle in Location settings per Zone HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ios.