Page 1 of 1
Alarm clock
Posted: Tuesday 12 May 2015 13:13
by Thomasdc
Hi!
I thought it would be nice to be able to let domoticz do something when your alarm clock goes off..
so maybe play some music to wake you up, lights goes on slowly,...
But alarmclocks must be easy to use and edit times
I really like the standard alarmclock in android phones..
but it would be nice if there is an easy to use app that can launch a json link to activate a 'wake up' scenario?
is there anyone who has good experiences with something like this?
its just more out curiosity that i ask it, and maybe for future projects. But i think that there are people who would like something like this. Someone who already use a good alarmclock app/solutions for this that they can share their experiences with other people on here.
(I know you could just use the 'timers' in domoticz.. but i think that is to complex.. if you want to edit a time, or disable an alarm (on a holyday) or if you wake up 10 min before the alarm goes off.. then it should be easy to cancel the alarm (like in android lolipop) )
regards,
Thomas
Re: Alarm clock
Posted: Tuesday 12 May 2015 13:30
by D'rMorris
Don't have an Android device, but maybe Tasker is something that you can use? If only we had Tasker on Ios as well

.
Re: Alarm clock
Posted: Tuesday 12 May 2015 15:49
by StanHD
I am using Tasker with Voice control for many of my Domoticz switches as well as with my Moto 360 watch. It works very well indeed. So I just checked and created a task that puts on the bedroom light when an alarm triggers from the standard Android Clock application. It's a standard function of Tasker and was straight forward to set up. I will test it later when I get home and report back

Re: Alarm clock
Posted: Tuesday 12 May 2015 22:02
by StanHD
Yep, works a treat.
Re: Alarm clock
Posted: Thursday 14 May 2015 22:56
by Thomasdc
StanHD wrote:I am using Tasker with Voice control for many of my Domoticz switches as well as with my Moto 360 watch. It works very well indeed. So I just checked and created a task that puts on the bedroom light when an alarm triggers from the standard Android Clock application. It's a standard function of Tasker and was straight forward to set up. I will test it later when I get home and report back

StanHD wrote:Yep, works a treat.
Thanks for all the replies!
I had no idea that Tasker can do so much! seems it's really a must have app for home automation!
Re: Alarm clock
Posted: Saturday 17 October 2015 23:38
by domogijs
StanHD wrote:Yep, works a treat.
Can you show what you did in tasker? I tried but can't find out what to do.
Greets gijs
Verstuurd vanaf mijn A0001 met Tapatalk
Re: Alarm clock
Posted: Sunday 18 October 2015 10:33
by StanHD
In Tasker add an HTTP Get Task like this:
<User

assword@IP

ort>/json.htm?type=command¶m=switchlight&idx=<idx>&switchcmd=On
Add this all to the top line labeled Server

ort
Then add a Profile based upon the Day or Time item to trigger the switch.
Re: Alarm clock
Posted: Sunday 18 October 2015 10:34
by domogijs
StanHD wrote:In Tasker add an HTTP Get Task like this:
<User

assword@IP

ort>/json.htm?type=command¶m=switchlight&idx=<idx>&switchcmd=On
Add this all to the top line labeled Server

ort
Then add a Profile based upon the Day or Time item to trigger the switch.
Thanks!
Verstuurd vanaf mijn A0001 met Tapatalk
Re: Alarm clock
Posted: Tuesday 22 December 2015 23:38
by maomanna
but that command set lights on, no ramping/wakeuplight
any options to fix that?
Re: Alarm clock
Posted: Wednesday 23 December 2015 0:36
by Egregius
I created a function in my php script that sets a dimmer every minute +1%
The function it self is activated by a 'wake' appointment in my GCal.
This is the stuff that handles wake/sleep dimmers:
Code: Select all
//Wake/Sleep dimmers
$items = array('eettafel','zithoek','tobi','kamer');
foreach($items as $item) {
if(${'D'.$item}!='Off') {
$action = $mc->get('dimmer'.$item);
if($action == 1) {
$level = floor(${'Dlevel'.$item}*0.95);
Dim(${'DI'.$item},$level,$item);
if($level==0) $mc->set('dimmer'.$item,0);
} else if($action == 2&&date('i')%2==1) {
$level = ${'Dlevel'.$item}+1;
if($level>30) $level = 30;
Dim(${'DI'.$item},$level,$item);
if($level==30) $mc->set('dimmer'.$item,0);
}
}
}
I basically set a variable. If variable = 0 = do nothing (normal operation). If variable = 1 slowly dim the lights (5% every minute). If variable = 2 slowly add +1% until 30% is reached.
Re: Alarm clock
Posted: Wednesday 23 December 2015 8:47
by maomanna
Ah thats wonderfull!
But how do i use php scripts in domoticz? Put it in the dir /domoticz/scripts ?
Re: Alarm clock
Posted: Wednesday 23 December 2015 9:04
by Egregius
Check the link in my signature

Re: Alarm clock
Posted: Wednesday 23 December 2015 17:19
by maomanna
Can i run the php floorplan on another machine? Or is running on the rpi the best way?
Re: Alarm clock
Posted: Wednesday 23 December 2015 17:25
by Egregius
Re: Alarm clock
Posted: Wednesday 20 January 2016 13:35
by maomanna
I made a wiki how to setup a Wakeuplight with a random Zwave dimmer.
It may work with 433mhz.
See
https://www.domoticz.com/wiki/Wakeuplight
Re: Alarm clock
Posted: Thursday 21 January 2016 0:02
by wmn79
I use
Morning Routine for this. You can choose to run a tasker task or open a url when you switch off the alarm. Any suggestions for IOS alternatives for this?