MCrissDev / HANotify

Android actionable notifications for Home Assistant and Ariela client
36 stars 11 forks source link

Device tracker not updating #9

Open MTrab opened 5 years ago

MTrab commented 5 years ago

The device_tracker is only updating when opening up the app or activating a widget. I have turned off battery optimization for the app, but it's the same.

OS: Android 9 (OnePlus 5T)

Any ideas what to try?

MCrissDev commented 5 years ago

Hello, Sorry for responded so late, now i saw the post. Is the Ariela running in background? Do you have auto reconnect option enabled?

MTrab commented 5 years ago

Right now I have everything disabled - Arieal are f*cking up my battery. It get EXTREMELY hot and uses all power in a matter of a few hours, althou not updating the device tracker unless I open the app.

But yes, had auto reconnect enabled and auto start upon boot and update. Even tried setting the timeouts way higher than standard.

Right now I'm actually thinking whether it's worth it or not :/

MCrissDev commented 5 years ago

Hello, Please check if you are allowing Ariela to run in background. You may check this like: Settings -> Apps -> Ariela -> Battery -> Background activity. In the meantime i have in plan optimise this more so please stay tuned.

MTrab commented 5 years ago

As written - I have disabled Ariela as it is using all the battery in a few hours. My phone normally holds battery for 36-48 hours - with Ariela running in the background it holds aroung 8-10 hours!

MCrissDev commented 5 years ago

IF you disable it then Ariela will going to be very unstable. As alternative just use the exit function for now and Ariela will not going to use any battery(but also no updates of location - this will change very soon).

Still its very strange what happens on your phone. Can you tell me how much battery is Ariela draining? Also is the connection to HA stable or it disconnects frequently?

MTrab commented 5 years ago

I have no idea if it drops the connection - and I even raised the timeouts without any difference.

As for how much it drains - all of it as long as it's running, and the battery gets VERY hot.

MCrissDev commented 5 years ago

Something else should be happening there. Can you share Ariela logs so i can check them?

MTrab commented 5 years ago

Sent - not sure you can see anything.

MCrissDev commented 5 years ago

Thank you. I will check.

MCrissDev commented 5 years ago

Can you tell me how you close the app? By pressing home button or back button?

MTrab commented 5 years ago

Throwing it out - just like you'd close any app. I don't just minimize apps - it close them.

MCrissDev commented 5 years ago

Ok, so you close by pressing back button correct? Can you for now use the exit function from Ariela? In this way at least will not going to drain battery. The next update of Ariela will be able to update the device tracker even if the Ariela was closed using exit function. Its this ok for you?

MTrab commented 5 years ago

This is how to properly close an app on android, and this is how I do it: https://www.youtube.com/watch?v=Ek8YEuRuxV0