Page 1 of 1
Android Lock Screen button
Posted: Tuesday 05 July 2016 18:40
by jrich523
I havent really dug in to this much, but it should be possible, but might need to be in the app itself.
at any rate I have a group switch called 'bed time' which turns on/off the lights i need to get ready for bed. It would be nice if at a certain time a notification popped up on my phone where i could just click it and start the bedtime process. Much like the music players have the play /pause buttons. Im fairly sure you can do similar things with custom bottons.
Not sure how this would work out, probably as an lui/blocky action
thoughts?
Re: Android Lock Screen button
Posted: Wednesday 06 July 2016 10:01
by alfred_j_kwak
And your phone will be? Android, Apple, WP, Tizen, Ubuntu, Firefox?
Re: Android Lock Screen button
Posted: Wednesday 06 July 2016 12:47
by Thomasdc
love your idea!!
isnt this possilbe with 'tasker'? (android)
Re: Android Lock Screen button
Posted: Wednesday 06 July 2016 17:59
by jrich523
alfred_j_kwak wrote:And your phone will be? Android, Apple, WP, Tizen, Ubuntu, Firefox?
well my phone is android, and im sticking with it, so its really all i care about, but i imagine all those others support something similar

who knows tho, apple really locks down their stuff.
at any rate i could think of a lot of things to use that for. left the house, and lights are on, slap it on my screen to shut them off. hell ideally if i could track myself in the house (i swear i'll get there...) then i could use it to turn lights on (or tv, whatever) in whatever room im in. right now, sadly, it takes far to long to load up.
again no clue how this would/could be implemented, but it would be awesome

Re: Android Lock Screen button
Posted: Wednesday 06 July 2016 18:05
by jjnj
You can do this with custom clickable tasker notifications. Pretty sweet but difficult to figure it all out. Haven't had the time to get it to work yet
Verstuurd vanaf mijn LG-H850 met Tapatalk
Re: Android Lock Screen button
Posted: Wednesday 06 July 2016 18:18
by jrich523
there is an app call AutoNotification that helps create those notifications but i havent researched it enough to know if it will work for this.
also i found some examples
https://shashikaonline.com/2013/05/08/a ... h-actions/
Re: Android Lock Screen button
Posted: Thursday 07 July 2016 20:07
by RayAmsterdam
I use Llama (app like tasker), to trigger a switch in Domoticz through json http get when I am at home and charge the phone after 11pm (bed time).
Re: Android Lock Screen button
Posted: Thursday 07 July 2016 20:13
by jrich523
RayAmsterdam wrote:I use Llama (app like tasker), to trigger a switch in Domoticz through json http get when I am at home and charge the phone after 11pm (bed time).
Thats pretty neat, I assume you have it run a script, would you mind sharing that?
Does it pop up on the lock screen?
It looks like the location is all based on cell towers, which im not sure how far this will get you other than if im home or not.
This could be a good stop gap, i'll have to compare it to AutoNotifcation to see how it stacks up
Re: RE: Re: Android Lock Screen button
Posted: Thursday 07 July 2016 20:21
by RayAmsterdam
jrich523 wrote:RayAmsterdam wrote:I use Llama (app like tasker), to trigger a switch in Domoticz through json http get when I am at home and charge the phone after 11pm (bed time).
Thats pretty neat, I assume you have it run a script, would you mind sharing that?
Does it pop up on the lock screen?
It looks like the location is all based on cell towers, which im not sure how far this will get you other than if im home or not.
This could be a good stop gap, i'll have to compare it to AutoNotifcation to see how it stacks up
It is not scripted. In Llama you can define events with conditions and actions. I use my home's wifi, time and charging as condition (I always charge my phone when I go to sleep). The action is firing the http get (send the json to flip the switch in Domoticz) and setting the phone in silent mode. Completely automatic, no popups or whatever so.
Re: Android Lock Screen button
Posted: Thursday 07 July 2016 20:25
by jrich523
Mostly what im looking to do is turn the lights on when im ready for bed, which changes night to night (between 10-11) so really what im looking for is a button on the lock screen to turn the lights on/off. Would just make it show up on the lock screen around 9pm and then make it vanish after its been turned on and off.
however this app seems really cool and I can think of a few other things i could do with it
Re: Android Lock Screen button
Posted: Thursday 07 July 2016 21:52
by RayAmsterdam
As Thomasdc already said, this should be possible with Tasker. Check
this site for some examples.
Re: Android Lock Screen button
Posted: Thursday 07 July 2016 22:19
by jrich523
yeah I know there are tools that will do it, but it would be a pain to configure it per device. it would be nice if i could create events (lui scripts) that would control it on any phone connected in to the system, or perhaps any phone thats using the app.
Re: Android Lock Screen button
Posted: Thursday 07 July 2016 22:25
by RayAmsterdam
There has to be an app on each device to do this. A script can't do that on it's own within Android. Tasker however lets export your settings.
Re: Android Lock Screen button
Posted: Thursday 07 July 2016 23:02
by Thomasdc
jrich523 wrote:yeah I know there are tools that will do it, but it would be a pain to configure it per device. it would be nice if i could create events (lui scripts) that would control it on any phone connected in to the system, or perhaps any phone thats using the app.
you can make the tasker profile and events once on one phone and then just copy it to your other devices
first time it will probably take some time to figure out,
i dont know if you want to do it for each room , (you said you can know in which room your phone is and just that light switch to appear or something..à
but even so, you can make the lock screen butten a dummy switch and then let figure domoticz out in wich room your phone is to then turn on /off the right switch...
but i think just appearing just one button on your lock screen isnt that hard to figure out..
but even if you do it a little more complicated (that it has to know the actual status of the light or something) you just have to figure it out once, and then do a simple copy to the other devices

Re: Android Lock Screen button
Posted: Monday 11 July 2016 17:54
by jrich523
Thats a really good idea, I'll try screwing with that a bit.