Page 1 of 1

Turn screen off on tablet with Domoticz switch.

Posted: Tuesday 17 January 2017 18:29
by tjabas
Hi!

As the topic says, is it possible to turn off a Android tablet screen in the same network as the Domoticz is located by turning on a switch in Domoticz?

That was a long question, but i hope you understand what i mean :)

Re: Turn screen off on tablet with Domoticz switch.

Posted: Tuesday 17 January 2017 19:24
by theolsen
I haven't used Android for years but IIRC it has power profiles.
If so you could set a profile for when on battery = screen off, when on mains power = screen always on.

then just have Domoticz toggle the plug socket that powers it?

Re: Turn screen off on tablet with Domoticz switch.

Posted: Tuesday 17 January 2017 19:39
by tjabas
theolsen wrote:I haven't used Android for years but IIRC it has power profiles.
If so you could set a profile for when on battery = screen off, when on mains power = screen always on.

then just have Domoticz toggle the plug socket that powers it?
Thats a great idea, i have the tablet on the wall and using Domoticz Android app to control my devices, and the screen is always on, i just trough that it could be turned off when we arent home, and this should ofcourse be automatic.
I have the burglar alarm connected to domoticz, so i can turn the alarm on/off using Domoticz, and trough that also be able to turn the screen on and off.

Re: Turn screen off on tablet with Domoticz switch.

Posted: Tuesday 17 January 2017 19:42
by theolsen
Glad to be of help.
There may be other ways...perhaps using an ssh call to the tablet but i reckon it would over complicate things.

Re: Turn screen off on tablet with Domoticz switch.

Posted: Thursday 19 January 2017 10:35
by ljoncz
While this isn't exactly a solution for you original request, maybe it will solve your requirement.
There is a solution that turns on tablet screen based on motion detection by the device's front camera.
I haven't tested it myself, but I will give it a try.
http://android.stackexchange.com/questi ... 0884#80884

Cheers
Lech

Re: Turn screen off on tablet with Domoticz switch.

Posted: Thursday 19 January 2017 11:17
by RayAmsterdam
This can be achieved with Tasker or Automate. With a proper plugin (e.g. Pushover) Tasker or Automate can listen to a command from Domoticz and lock your screen.

Re: Turn screen off on tablet with Domoticz switch.

Posted: Thursday 19 January 2017 12:46
by tjabas
RayAmsterdam wrote:This can be achieved with Tasker or Automate. With a proper plugin (e.g. Pushover) Tasker or Automate can listen to a command from Domoticz and lock your screen.
ok good , i actually use pushover with domoticz,
which one, tasker or automate ,is the easiest plugin to use for this thing i want?

Re: Turn screen off on tablet with Domoticz switch.

Posted: Thursday 19 January 2017 13:56
by RayAmsterdam
I use Automate. When you already use Pushover, it acts as plugin for Automate.

Turn screen off on tablet with Domoticz switch.

Posted: Friday 20 January 2017 11:17
by pvm
ljoncz wrote:While this isn't exactly a solution for you original request, maybe it will solve your requirement.
There is a solution that turns on tablet screen based on motion detection by the device's front camera.
I haven't tested it myself, but I will give it a try.
http://android.stackexchange.com/questi ... 0884#80884

Cheers
Lech
I enable the screen based on movement this works fine, I've used the description on this forum (did not check the one mentioned above)