Android Lock Screen button
Moderators: leecollings, remb0
-
- Posts: 63
- Joined: Monday 18 January 2016 21:43
- Target OS: Windows
- Domoticz version: 3.5196
- Location: Seattle, WA
- Contact:
Android Lock Screen button
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?
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?
[ Domoticz 3.5196 | Win10 | AeoTec Z-Stick Gen5 ]
-
- Posts: 110
- Joined: Friday 20 September 2013 18:49
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2.3530
- Location: Finland
- Contact:
Re: Android Lock Screen button
And your phone will be? Android, Apple, WP, Tizen, Ubuntu, Firefox?
-
- Posts: 133
- Joined: Wednesday 11 March 2015 19:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Contact:
Re: Android Lock Screen button
love your idea!!
isnt this possilbe with 'tasker'? (android)
isnt this possilbe with 'tasker'? (android)
-
- Posts: 63
- Joined: Monday 18 January 2016 21:43
- Target OS: Windows
- Domoticz version: 3.5196
- Location: Seattle, WA
- Contact:
Re: Android Lock Screen button
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 similaralfred_j_kwak wrote:And your phone will be? Android, Apple, WP, Tizen, Ubuntu, Firefox?

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

[ Domoticz 3.5196 | Win10 | AeoTec Z-Stick Gen5 ]
Re: Android Lock Screen button
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
Verstuurd vanaf mijn LG-H850 met Tapatalk
-
- Posts: 63
- Joined: Monday 18 January 2016 21:43
- Target OS: Windows
- Domoticz version: 3.5196
- Location: Seattle, WA
- Contact:
Re: Android Lock Screen button
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/
also i found some examples
https://shashikaonline.com/2013/05/08/a ... h-actions/
[ Domoticz 3.5196 | Win10 | AeoTec Z-Stick Gen5 ]
-
- Posts: 115
- Joined: Sunday 11 January 2015 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Android Lock Screen button
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).
-
- Posts: 63
- Joined: Monday 18 January 2016 21:43
- Target OS: Windows
- Domoticz version: 3.5196
- Location: Seattle, WA
- Contact:
Re: Android Lock Screen button
Thats pretty neat, I assume you have it run a script, would you mind sharing that?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).
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
[ Domoticz 3.5196 | Win10 | AeoTec Z-Stick Gen5 ]
-
- Posts: 115
- Joined: Sunday 11 January 2015 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: RE: Re: Android Lock Screen button
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.jrich523 wrote:Thats pretty neat, I assume you have it run a script, would you mind sharing that?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).
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
-
- Posts: 63
- Joined: Monday 18 January 2016 21:43
- Target OS: Windows
- Domoticz version: 3.5196
- Location: Seattle, WA
- Contact:
Re: Android Lock Screen button
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
however this app seems really cool and I can think of a few other things i could do with it
[ Domoticz 3.5196 | Win10 | AeoTec Z-Stick Gen5 ]
-
- Posts: 115
- Joined: Sunday 11 January 2015 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Android Lock Screen button
As Thomasdc already said, this should be possible with Tasker. Check this site for some examples.
-
- Posts: 63
- Joined: Monday 18 January 2016 21:43
- Target OS: Windows
- Domoticz version: 3.5196
- Location: Seattle, WA
- Contact:
Re: Android Lock Screen button
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.
[ Domoticz 3.5196 | Win10 | AeoTec Z-Stick Gen5 ]
-
- Posts: 115
- Joined: Sunday 11 January 2015 16:40
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Android Lock Screen button
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.
-
- Posts: 133
- Joined: Wednesday 11 March 2015 19:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Contact:
Re: Android Lock Screen button
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

-
- Posts: 63
- Joined: Monday 18 January 2016 21:43
- Target OS: Windows
- Domoticz version: 3.5196
- Location: Seattle, WA
- Contact:
Re: Android Lock Screen button
Thats a really good idea, I'll try screwing with that a bit.
[ Domoticz 3.5196 | Win10 | AeoTec Z-Stick Gen5 ]
Who is online
Users browsing this forum: No registered users and 1 guest