Page 4 of 4

Re: Turn screen Android tablet off when sleep/not home

Posted: Wednesday 08 July 2015 22:38
by G3rard
When you send a message with Pushover it's send by default to all devices. It's also possible to only send a message to one or more specific devices.
I am using LUA code for that, see http://www.domoticz.com/forum/viewtopic ... 821#p47296.

Re: Turn screen Android tablet off when sleep/not home

Posted: Thursday 09 July 2015 7:36
by roblom
Ah that's great. Switching the screen on an off with the pushover tasker plugin works great. I will see if I can use lua also to only send the message to the tablet.

Re: Turn screen Android tablet off when sleep/not home

Posted: Wednesday 29 July 2015 23:39
by Skorpion
I really like this functionality. Does anyone know of this is possible on a Windows tablet aswell? I searched the internet but I can't find a thing really. :(

Re: Turn screen Android tablet off when sleep/not home

Posted: Thursday 30 July 2015 19:01
by Raspberry Piet
Skorpion wrote:I really like this functionality. Does anyone know of this is possible on a Windows tablet aswell? I searched the internet but I can't find a thing really. :(
I assume this could be somehow possible with Eventghost installed on your Windows tablet.
Have not tried it myself as i don't have a Windows tablet, but i use Eventghost on my Windows pc.
(i use AutoRemote+Eventghost for several automation scenarios for my Android tablet/Android phone/Raspberry Pi/Windows pc)

Re: Turn screen Android tablet off when sleep/not home

Posted: Friday 07 August 2015 14:01
by Skorpion
Thanks for your reply!

I decided to use an Anroid rom on my windows tablet. I tried YouWAVE, but that wasn't working very well on my tablet. I've tested BlueStacks on PC but that wouldn't even install on my tablet because of it's specs. :roll: :lol: I will look into installing Android on this tablet, and if that doesn't work. I will probably end up buying another cheap tablet but with Android.

Re: Turn screen Android tablet off when sleep/not home

Posted: Monday 05 October 2015 14:57
by gerbenz
Hello,

Is that domoticz running on youre touch screen?
Or is it an app?

Re: Turn screen Android tablet off when sleep/not home

Posted: Monday 05 October 2015 15:02
by ThinkPad
Just the webpage of Domoticz, opened in Google Chrome (Android) and then used the 'Add to homescreen' option.

Re: Turn screen Android tablet off when sleep/not home

Posted: Thursday 07 January 2016 13:06
by timop
I had this and Tasker with my tablet
https://play.google.com/store/apps/deta ... n.detector
worked well, but then tablet broke down and I havent found new 10" cheap rooted one yet..

Re: Turn screen Android tablet off when sleep/not home

Posted: Sunday 02 October 2016 21:39
by joostnl
Still happy with your tablet ThinkPad? I'm looking for a similar type

Re: Turn screen Android tablet off when sleep/not home

Posted: Friday 20 January 2017 20:19
by tjabas
interesting thread.

i also have tried to get the screen to turn on and off with tasker, i also have pushover installed, but i cant understand how i should set tasker to receive push notifications from pushover.

im a total newbie when it comes to tasker, i really dont understand much from it.

is there anyone who could help me setting tasker to receive and turn on and off the screen on my tablet with pushover.

thanks.

Re: Turn screen Android tablet off when sleep/not home

Posted: Saturday 21 January 2017 10:45
by mongoose
Having a tablet on the wall is something im interested in.

I will be doing the following to turn the screen on and off.
Mysensors motion sensor and a relay between the power plug.

So my tablet will turn off after 5 mins of inactivity, but when motion is detected, cycle the power off then back on to the tablet.
Just an idea for anyone wanting to do it in hardware :)

Re: Turn screen Android tablet off when sleep/not home

Posted: Saturday 21 January 2017 10:57
by tjabas
mongoose wrote:Having a tablet on the wall is something im interested in.

I will be doing the following to turn the screen on and off.
Mysensors motion sensor and a relay between the power plug.

So my tablet will turn off after 5 mins of inactivity, but when motion is detected, cycle the power off then back on to the tablet.
Just an idea for anyone wanting to do it in hardware :)
sounds like a great idea, but i think its better to use tasker so you dont need the switch to turn off the power to the tablet, but your idea is alot easier than the tasker version.

Re: Turn screen Android tablet off when sleep/not home

Posted: Sunday 29 January 2017 14:42
by Sjaakios
tjabas wrote:interesting thread.

i also have tried to get the screen to turn on and off with tasker, i also have pushover installed, but i cant understand how i should set tasker to receive push notifications from pushover.

im a total newbie when it comes to tasker, i really dont understand much from it.

is there anyone who could help me setting tasker to receive and turn on and off the screen on my tablet with pushover.

thanks.
You could for instance use pushbullet for sending push messages, and integrate it with tasker using app push tasker (see here on how to: https://play.google.com/store/apps/deta ... sker&hl=nl)

However, pushbullet for me was not very reliable. Sometimes it took hours for a message to come trough, or it didn't come trough at all.. Resulting in that my tablet stayed off (=wife not happy).

Since yesterday i'm using Tasker Network Event Server. For now, seems really reliable!
You can do a get/post request to a certain url (i'm using lua), the event that is triggered you can filter on in tasker and preform your desired actions.

Re: Turn screen Android tablet off when sleep/not home

Posted: Sunday 29 January 2017 15:32
by elmortero
Another aproach would be activating adb over wifi in the tablet and send ADB commands. For example "adb shell input keyevent 26" emulates pressing the power button on your tablet, so it toggles the screen On/off

Verstuurd vanaf mijn SM-G903F met Tapatalk

Re: Turn screen Android tablet off when sleeping

Posted: Monday 19 June 2017 22:28
by jake
ThinkPad wrote:I just edited my post, see above you ;)

Turning screen off (locking) is now working. However, once locked i cannot get it to turn on/unlock again. That action is not available on my device according to Tasker.


Oh and a second task i have created is to control the screen brightness. As far as i know my tablet doesn't have a light intensity sensor. So i retrieve the value of the ABST-604 dusk/dawn sensor connected to domoticz.
If sensor = on = dark = screen brightness little bit lower
If sensor = off = light = screen brightness little bit higher

Will post some screenshots tomorrow, now time to sleep. Didn't have much sleep previous night due to new year's eve :P
@ThinkPad, can you help me out? I have my tablet with Dashticz turn on automatically with the app 'motion detector' and 'Turn Screen On'. However, this doesn't work in total darkness. In the same room I have a PIR sensor.

I am now able to set a Domoticz switch when the 'motion detector' has detected motion with help of the tablet camera, but I have no clue how to use the PIR sensor information to turn on the tablet when it is pitch dark (the tablet camera doesn't work at that time, of course).

How did you solve it with Tasker on the tablet to turn on the screen? I have seen documentation how to turn on the screen using Tasker with the camera. I need to replace that part of the 'camera' with a Domoticz switch information. I need to somehow send a push notification or another type of 'kick' to alert the tablet.