Turn screen off on tablet with Domoticz switch.

Post Reply
tjabas
Posts: 149
Joined: Sunday 11 December 2016 14:51
Target OS: Raspberry Pi
Domoticz version:
Contact:

Turn screen off on tablet with Domoticz switch.

Post by tjabas » Tuesday 17 January 2017 19:29

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 :)

theolsen
Posts: 98
Joined: Wednesday 31 July 2013 11:15
Target OS: -
Domoticz version:
Contact:

Re: Turn screen off on tablet with Domoticz switch.

Post by theolsen » Tuesday 17 January 2017 20:24

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?

tjabas
Posts: 149
Joined: Sunday 11 December 2016 14:51
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Turn screen off on tablet with Domoticz switch.

Post by tjabas » Tuesday 17 January 2017 20:39

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.

theolsen
Posts: 98
Joined: Wednesday 31 July 2013 11:15
Target OS: -
Domoticz version:
Contact:

Re: Turn screen off on tablet with Domoticz switch.

Post by theolsen » Tuesday 17 January 2017 20:42

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.

ljoncz
Posts: 3
Joined: Thursday 12 January 2017 11:15
Target OS: NAS (Synology & others)
Domoticz version:
Contact:

Re: Turn screen off on tablet with Domoticz switch.

Post by ljoncz » Thursday 19 January 2017 11:35

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

RayAmsterdam
Posts: 189
Joined: Sunday 11 January 2015 17:40
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Turn screen off on tablet with Domoticz switch.

Post by RayAmsterdam » Thursday 19 January 2017 12:17

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.

tjabas
Posts: 149
Joined: Sunday 11 December 2016 14:51
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Turn screen off on tablet with Domoticz switch.

Post by tjabas » Thursday 19 January 2017 13:46

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?

RayAmsterdam
Posts: 189
Joined: Sunday 11 January 2015 17:40
Target OS: Raspberry Pi
Domoticz version:
Contact:

Re: Turn screen off on tablet with Domoticz switch.

Post by RayAmsterdam » Thursday 19 January 2017 14:56

I use Automate. When you already use Pushover, it acts as plugin for Automate.

pvm
Posts: 870
Joined: Tuesday 17 June 2014 22:14
Target OS: NAS (Synology & others)
Domoticz version: Stable
Location: NL
Contact:

Turn screen off on tablet with Domoticz switch.

Post by pvm » Friday 20 January 2017 12:17

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)
Synology NAS, PI3, ZWave, Xiamo zigbee devices, BTLE plant sensor

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest