Alarm clock
Moderator: leecollings
-
- Posts: 133
- Joined: Wednesday 11 March 2015 19:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Contact:
Alarm clock
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
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
-
- Posts: 138
- Joined: Thursday 01 May 2014 9:01
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands - Sittard
- Contact:
Re: Alarm clock
Don't have an Android device, but maybe Tasker is something that you can use? If only we had Tasker on Ios as well
.

- StanHD
- Posts: 347
- Joined: Friday 12 July 2013 16:09
- Target OS: Windows
- Domoticz version:
- Location: East Sussex, UK
- Contact:
Re: Alarm clock
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
- Posts: 347
- Joined: Friday 12 July 2013 16:09
- Target OS: Windows
- Domoticz version:
- Location: East Sussex, UK
- Contact:
Re: Alarm clock
Yep, works a treat.
Domoticz Main - Intel nuc, Windows, RFXTRX433E. Lan Relay Boards, Aeon Z-Stick Gen 5, Evohome HGI80, Milight WiFi, MySensors Ethernet Gateway, Harmony Hub
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
-
- Posts: 133
- Joined: Wednesday 11 March 2015 19:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Contact:
Re: Alarm clock
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!
-
- Posts: 99
- Joined: Monday 17 August 2015 23:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Alarm clock
Can you show what you did in tasker? I tried but can't find out what to do.StanHD wrote:Yep, works a treat.
Greets gijs
Verstuurd vanaf mijn A0001 met Tapatalk
Raspberry Pi3, RFlink, PiZigate, Yeelight, klikaanklikuit, Kodi, harmony hub, Zwave, ThermoSmart, XiaomiGateway (Aqara), Google home hub, roomba,
- StanHD
- Posts: 347
- Joined: Friday 12 July 2013 16:09
- Target OS: Windows
- Domoticz version:
- Location: East Sussex, UK
- Contact:
Re: Alarm clock
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.
<User


Add this all to the top line labeled Server

Then add a Profile based upon the Day or Time item to trigger the switch.
Domoticz Main - Intel nuc, Windows, RFXTRX433E. Lan Relay Boards, Aeon Z-Stick Gen 5, Evohome HGI80, Milight WiFi, MySensors Ethernet Gateway, Harmony Hub
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
Python:- Broadlink RM2, Sonos
HA-Bridge - Amazon Echo / Alexa
-
- Posts: 99
- Joined: Monday 17 August 2015 23:18
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Alarm clock
Thanks!StanHD wrote:In Tasker add an HTTP Get Task like this:
<Userassword@IP
ort>/json.htm?type=command¶m=switchlight&idx=<idx>&switchcmd=On
Add this all to the top line labeled Serverort
Then add a Profile based upon the Day or Time item to trigger the switch.
Verstuurd vanaf mijn A0001 met Tapatalk
Raspberry Pi3, RFlink, PiZigate, Yeelight, klikaanklikuit, Kodi, harmony hub, Zwave, ThermoSmart, XiaomiGateway (Aqara), Google home hub, roomba,
-
- Posts: 94
- Joined: Monday 30 November 2015 16:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Alarm clock
but that command set lights on, no ramping/wakeuplight
any options to fix that?
any options to fix that?
- Egregius
- Posts: 2589
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Alarm clock
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:
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.
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);
}
}
}
-
- Posts: 94
- Joined: Monday 30 November 2015 16:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Alarm clock
Ah thats wonderfull!
But how do i use php scripts in domoticz? Put it in the dir /domoticz/scripts ?
But how do i use php scripts in domoticz? Put it in the dir /domoticz/scripts ?
- Egregius
- Posts: 2589
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Alarm clock
Check the link in my signature 

-
- Posts: 94
- Joined: Monday 30 November 2015 16:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Alarm clock
Can i run the php floorplan on another machine? Or is running on the rpi the best way?
- Egregius
- Posts: 2589
- Joined: Thursday 09 April 2015 12:19
- Target OS: Linux
- Domoticz version: v2024.7
- Location: Beitem, BE
- Contact:
Re: Alarm clock
To keep the info together: http://www.domoticz.com/forum/viewtopic ... 476#p66476
-
- Posts: 94
- Joined: Monday 30 November 2015 16:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Alarm clock
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
It may work with 433mhz.
See https://www.domoticz.com/wiki/Wakeuplight
-
- Posts: 27
- Joined: Monday 13 April 2015 23:19
- Target OS: NAS (Synology & others)
- Domoticz version: 3.5033
- Location: Amsterdam, The Netherlands
- Contact:
Re: Alarm clock
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?
Who is online
Users browsing this forum: No registered users and 1 guest