WallPanel-Project / wallpanel-android

This project is deprecated; try out this active fork: https://thanksmister.com/wallpanel-android/
Apache License 2.0
205 stars 26 forks source link

Make screen go to sleep #70

Open JAltberg opened 4 years ago

JAltberg commented 4 years ago

Hi!

Using this with a tablet on the wall and it's great. Thanks!

I'm using mqtt to wake the screen from the clock screen saver when someone is at the door. After some time I want it to go to sleep again. Ofcourse it does it by it self after some time (1 min or so). I want to send a command so it goes back to sleep (clock screen saver). It would be a much nicer automation for the screen.

Eg. wallpanel/mywallpanel/command/{"wake": false}

Maybe it's possible as is now? The command above didn't work (no problem with {"wake": true}). Think you get my point. Thanks!

lazynomad commented 3 years ago

I remember reading in Wallpanel doc that "wake":false cannot override default Android's sleep settings. It would be cool to have though.

I have a different problem. My Fire HD goes to sleep and I loose MQTT updates from Wallpanel. I had to tap screen, swipe up and click Wallpanel app again to bring it to foreground. If anyone has any suggestions on how to prevent this, please suggest.