thecowan / wallpanel-android

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

screenOn to False on screensaver #113

Open Limych opened 5 years ago

Limych commented 5 years ago

Is your feature request related to a problem? Please describe.

I could not find the opportunity to determine through MQTT the launch of the screensaver.

Describe the solution you'd like

I think it will be correct if, during its operation, the screenOn variable switches to False.

skylord123 commented 5 years ago

I would prefer this be implemented as another attribute called "screensaver" or something. Technically the screen is on it just is using the screensaver so this makes more sense.

thanksmister commented 5 years ago

The screen saver is already set using a timer, is it necessary to have an additional command to turn it on? This will also only work for the internal screensaver, not the devices build in screensaver such as Android's DayDream.

skylord123 commented 5 years ago

@thanksmister We are talking about reporting the screensaver active state over MQTT or the REST API. This way we know if the screensaver is currently on or not. This is not talking about triggering the screensaver.

I want to use this to refresh the page on the tablet occasionally but only when the device is using the screensaver. I also have a couple other ideas of what I can use this value for.