igorgladkov / rotini

Project Rotini (alpha)
44 stars 0 forks source link

Turn on screen and activate certain tab when state of an item is changed... #75

Open TommySharpNZ opened 8 years ago

TommySharpNZ commented 8 years ago

I'm thinking of having a tab which shows a number of security cameras around my home. What would be super cool is that when motion is detected by a camera then my tablet on the wall would switch on it's screen and go to the tab that shows the cameras.

I can setup a switch in OpenHAB that will get updated when movement is detected.

So the main requirements would be....

anordvall commented 8 years ago

I need this one as well! I guess the Android screen can not be turned on from the app (?) but rather an in-app screensaver could be turned off when a widget (such as a motion-sensor) would get updated.

If the specific widget would update I would also like to see the screensaver delay get reset, so e.g. the screensaver would start x minutes after the last movement.

Also see #38 for related discussion.

frode commented 8 years ago

Technically it's possible to turn on the device screen from the app. It's already being done by Tasker + plugin (secure settings)

I can image that this would be practical for house security, a PIR sensor detects movement and your tablet is near by the entrance, you get an active screen and use Rotini to deactivate the alarm.

TommySharpNZ commented 8 years ago

Hey @igorgladkov, you had any more thought on turning the screen off after x seconds/minutes and then back on based on some form of external input or even movement detected by the camera?

I'm about to mount my tablet on the wall so this would be a cool feature for that! The tablet does have "double tap the screen" to turn on the screen but it would be so cool if it could turn on as I walk past it.

smar000 commented 8 years ago

@TommySharpNZ You can achieve the screen off/on effect using a combination of Taskerand Motion Detector, both apps from the Google Play store.

anordvall commented 8 years ago

Using Tasker and Motion Detector is still a workaround. It adds additional cost and perhaps even requires a rooted device (?). Also, this request includes possibility to switch to a certain tab (should perhaps also be sitemap) and this is afaik not possiblel through Tasker.

As far as I can see, it should be a fairly quick thing for @igorgladkov to implement, so I have big hopes :) If Rotini can not actually control screen on/off, at least Rotini can launch its own screensaver. Default should be completely black I would say, but options could be to show a clock, etc etc..

tiny-tinker commented 8 years ago

+1 For this. I would love to have this as well. I'm worried that on this cheapy tablet I'll burn the screen if I have it on all the time.

spacemanspiff2007 commented 8 years ago

My last tablet burnt the screen showing the openhab webpage. So +1 for the possibility to switch the screen off and on through an item.

SierraNL commented 8 years ago

Great idea, for security cams, motion detectors and such, but you could also use it for certain notifications.

psixilambda commented 8 years ago

Yes great addition. Could be used for doorbells as well to make sure to show the front camera feed when item state changed to "bell ringing".