Did you manage to wake-up the phone without waking the screen?
looks quite good. the screen sometimes wakes up very shortly. but for now i would say it works.
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.
something still doesn’t work when reading out notifications :-(, I’m looking for the problem.
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.
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.
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 :-).