TheTimeWalker / wallpanel-android

WallPanel is an Android application for Web Based Dashboards and Home Automation Platforms
https://wallpanel.xyz
Apache License 2.0
451 stars 45 forks source link

[BUG] Unreliable Wake and sleep commands #88

Open pravardhanreddy opened 1 year ago

pravardhanreddy commented 1 year ago

Describe the bug The Wake and sleep commands over MQTT don't work as expected. I am using my Fire HD10 as a HomeAssistant Kiosk. I have some camera streams on the dashboard, when I have this open the tablet doesn't go to sleep on sending the sleep command even after waiting for the auto sleep time set on the tablet. When the dashboard just shows some static stuff it works. so maybe the video stream is not allowing the screen to go to sleep.

As for the wake command, when i close the tablet using power button and try to wake it up using the MQTT command, it doesn't work, but if i send a sleep command first and then the wake command it works as expected.

To Reproduce

Smartphone (please complete the following information):

Shmnel commented 1 year ago

Same thing on Fire OS 7 on my Fire HD8 (Gen 7). I disabled all of the battery optimizations on the app and disabled wifi battery optimization and it's hit or miss if the MQTT request goes through.