Turn screen Android tablet off when sleep/not home

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

User avatar
G3rard
Posts: 669
Joined: Wednesday 04 March 2015 22:15
Target OS: -
Domoticz version: No
Location: The Netherlands
Contact:

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

Post 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.
Not using Domoticz anymore
roblom
Posts: 402
Joined: Wednesday 26 February 2014 15:28
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: the Netherlands
Contact:

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

Post 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.
Skorpion
Posts: 27
Joined: Thursday 15 January 2015 9:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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. :(
Raspberry Piet
Posts: 158
Joined: Saturday 11 January 2014 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: NL
Contact:

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

Post 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)
Skorpion
Posts: 27
Joined: Thursday 15 January 2015 9:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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.
gerbenz
Posts: 1
Joined: Monday 05 October 2015 14:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by gerbenz »

Hello,

Is that domoticz running on youre touch screen?
Or is it an app?
ThinkPad
Posts: 890
Joined: Tuesday 30 September 2014 8:49
Target OS: Linux
Domoticz version: beta
Location: The Netherlands
Contact:

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

Post by ThinkPad »

Just the webpage of Domoticz, opened in Google Chrome (Android) and then used the 'Add to homescreen' option.
I am not active on this forum anymore.
timop
Posts: 57
Joined: Sunday 03 January 2016 17:10
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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..
joostnl
Posts: 68
Joined: Wednesday 03 February 2016 19:22
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post by joostnl »

Still happy with your tablet ThinkPad? I'm looking for a similar type
tjabas
Posts: 564
Joined: Sunday 11 December 2016 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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.
User avatar
mongoose
Posts: 42
Joined: Friday 22 November 2013 10:43
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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 :)
tjabas
Posts: 564
Joined: Sunday 11 December 2016 13:51
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

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

Post 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.
Sjaakios
Posts: 37
Joined: Saturday 04 June 2016 23:41
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

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

Post 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.
elmortero
Posts: 247
Joined: Sunday 29 November 2015 20:46
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.9639
Location: Spain
Contact:

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

Post 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
jake
Posts: 742
Joined: Saturday 30 May 2015 22:40
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Contact:

Re: Turn screen Android tablet off when sleeping

Post 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.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests