Code Monkey home page Code Monkey logo

Comments (17)

Johboh avatar Johboh commented on August 16, 2024

It should eventually sync, within an hour or so after you have set the alarm. It does not sync directly due to WorkManager scheduling. Can you confirm that it eventually syncs?

from hassalarm.

TychoWerner avatar TychoWerner commented on August 16, 2024

Will test it now, set my alarm with the app closed, will check to see if it updated.

from hassalarm.

TychoWerner avatar TychoWerner commented on August 16, 2024

I’ve let it to sync all night, but it won’t sync with the app closed. The moment I opened hassalarm it goes.

I have a Huawei P Smart

from hassalarm.

Johboh avatar Johboh commented on August 16, 2024

Ok, then I have to look into it.
And you haven't set it to not allow background work?

from hassalarm.

TychoWerner avatar TychoWerner commented on August 16, 2024

Hi @Johboh

I have found Battery Optimization and I have removed HASSAlarm from it and it still seems like it won't update unless the app is in the background.

Will check in about an hour to see if it still has gone thru.

Thanks for making this though.

from hassalarm.

TychoWerner avatar TychoWerner commented on August 16, 2024

Hi @Johboh

I have found Battery Optimization and I have removed HASSAlarm from it and it still seems like it won't update unless the app is in the background.

Will check in about an hour to see if it still has gone thru.

Thanks for making this though.

Waited an hour for it to sync but I haven't gotten it to sync actually.
I have WiFi on and mobile data as well; the second I open the app itself it sync's instantly.

from hassalarm.

oxan avatar oxan commented on August 16, 2024

I'm also experiencing this issue. Did you manage to find a solution?

from hassalarm.

TychoWerner avatar TychoWerner commented on August 16, 2024

I'm also experiencing this issue. Did you manage to find a solution?

I haven't found a solution yet :/

from hassalarm.

Johboh avatar Johboh commented on August 16, 2024

Sorry, I haven't had a chance to look at this yet.
@oxan, what device do you have?

from hassalarm.

oxan avatar oxan commented on August 16, 2024

I'm using a OnePlus 6, stock firmware, Android 9.

from hassalarm.

Johboh avatar Johboh commented on August 16, 2024

So I think I know what this is. I'm using a strict policy for the background task to not waste battery, so the job will only run when the device is on wifi and connected to a charger, and then within hours. I can change this so its not that strict.

from hassalarm.

Johboh avatar Johboh commented on August 16, 2024

@oxan @TychoWerner
I pushed a new version new that is more aggressive in job scheduling. A job should be scheduled within 1h after changing the alarm clock value.
Also, what alarm clock app are you using?

from hassalarm.

weado avatar weado commented on August 16, 2024

Hi,
I the same issue on my Samsung S8. after change my alarm time on my phone, I have to lauch the Hassalarm app to send the new information to my HA.
unfortunately, It's the same with your last version.

Do not hesitate if you want some help to try (Sorry I don't know develop)

from hassalarm.

Johboh avatar Johboh commented on August 16, 2024

@weado can you verify that you don't have any kind of task killer installed? And that you don't have battery optimization enabled for the hassalarm app (i.e disable it for this app)? Did you also wait up to one hour after changing the time? The job is scheduled to run within one hour.
Given the above, can you also test with another alarm clock? For example the Alarm Clock Xtreme or the Google stock alarm clock.

from hassalarm.

weado avatar weado commented on August 16, 2024

Hello,
I'm sorry my last message, but I didn't understand that I need to have to wait a little time (until 1 hour) to HassAlarm send the informations to HA.
Thank you for this app !

from hassalarm.

Johboh avatar Johboh commented on August 16, 2024

Yes its not obvious :) I will add an "about" section in the app with some documentation.

from hassalarm.

Johboh avatar Johboh commented on August 16, 2024

I'm closing this. Please reopen if there are still issues with this and I will look into it.

from hassalarm.

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.