Why do I have unpredictable behavior when using the Activity.onWake callback?
If the control panel is woken up due to a hard key press, the Activity.onWake callback may only get called after execution of the actions or script associated with that hard key. A possible workaround is to associate a button script to those buttons, which can call the custom onWake method explicitly, prior to execution of the button’s action list.