I have a new idea for new automation. I want to track when I’m awake from my sleep using my phone screen. I have the habit of checking my phone when I wake up. If the screen is on, zanzito will publish to the broker with the value ‘on’. If it is on for more than a minute during certain time, it will trigger the automation such as starting the coffee machine.
Some time ago I analyzed for a while the possibility of sending infos about user’s activity, precisely the status of the screen and, possibly, the foreground app.
If I remember well, Android understandably doesn’t allow per se the collection of such information from a background app or service (for privacy and security reasons).
Nonetheless I might come up with a solution… we’ll see…
Hi,
yes it’s interesting. I’m a little bit worried about the possibile impact on battery, because Activity detection activates the accelerometer continuously (although at low energy). Noted