Script Idea: Wake up every x minutes, check for messages, go to sleep if there are no new ones

Did you manage to wake-up the phone without waking the screen? :pray:

1 Like

looks quite good. the screen sometimes wakes up very shortly. but for now i would say it works.

2 Likes

I hope the notification stuff is working now.
I will test it in the next hours.

if you like, here is the project. I look forward to your feedback.

3 Likes

something still doesn’t work when reading out notifications :-(, I’m looking for the problem.

1 Like

so i’m happy for now.

  • the display stays off while the script is running (i dim the baklight to 0).
  • quiet hours function works the phone stays asleep.
  • If an alarm is set until the next wake-up, the phone is started 1 minute before and stays awake.
  • when a notification is received, the configured notification action is started (display on or led).
  • If the phone is woken up by pressing a button, the brightness is reset to the old value and the phone remains switched on.

Last Minute Bug solved.

4 Likes

If anyone knows how I could read out if the button has been pressed i could set this as a stop condition and turn on the display just in case you try to turn on the phone while the script is running.

1 Like

I am quite satisfied with the updated version.
pre and post are cleanly secured against each other, no more stupid sleeps code und logging aufgeräumt and a few other things :-).

2 Likes