Alarm clock

Client tools or tools that can connect with Domoticz. Tools for Windows, iOS, Android, Linux etc.

Moderator: leecollings

Post Reply
Thomasdc
Posts: 133
Joined: Wednesday 11 March 2015 19:13
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Alarm clock

Post 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
D'rMorris
Posts: 138
Joined: Thursday 01 May 2014 9:01
Target OS: Raspberry Pi / ODroid
Domoticz version:
Location: Netherlands - Sittard
Contact:

Re: Alarm clock

Post 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 :(.
User avatar
StanHD
Posts: 347
Joined: Friday 12 July 2013 16:09
Target OS: Windows
Domoticz version:
Location: East Sussex, UK
Contact:

Re: Alarm clock

Post 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 :)
User avatar
StanHD
Posts: 347
Joined: Friday 12 July 2013 16:09
Target OS: Windows
Domoticz version:
Location: East Sussex, UK
Contact:

Re: Alarm clock

Post by StanHD »

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
Thomasdc
Posts: 133
Joined: Wednesday 11 March 2015 19:13
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: Alarm clock

Post 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!
domogijs
Posts: 99
Joined: Monday 17 August 2015 23:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Alarm clock

Post 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
Raspberry Pi3, RFlink, PiZigate, Yeelight, klikaanklikuit, Kodi, harmony hub, Zwave, ThermoSmart, XiaomiGateway (Aqara), Google home hub, roomba,
User avatar
StanHD
Posts: 347
Joined: Friday 12 July 2013 16:09
Target OS: Windows
Domoticz version:
Location: East Sussex, UK
Contact:

Re: Alarm clock

Post by StanHD »

In Tasker add an HTTP Get Task like this:

<Userassword@IPort>/json.htm?type=command&param=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.
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
domogijs
Posts: 99
Joined: Monday 17 August 2015 23:18
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Alarm clock

Post by domogijs »

StanHD wrote:In Tasker add an HTTP Get Task like this:

<UserImageassword@IPImageort>/json.htm?type=command&param=switchlight&idx=<idx>&switchcmd=On

Add this all to the top line labeled ServerImageort

Then add a Profile based upon the Day or Time item to trigger the switch.
Thanks!

Verstuurd vanaf mijn A0001 met Tapatalk
Raspberry Pi3, RFlink, PiZigate, Yeelight, klikaanklikuit, Kodi, harmony hub, Zwave, ThermoSmart, XiaomiGateway (Aqara), Google home hub, roomba,
maomanna
Posts: 94
Joined: Monday 30 November 2015 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Alarm clock

Post by maomanna »

but that command set lights on, no ramping/wakeuplight

any options to fix that?
User avatar
Egregius
Posts: 2589
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Alarm clock

Post 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.
maomanna
Posts: 94
Joined: Monday 30 November 2015 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Alarm clock

Post by maomanna »

Ah thats wonderfull!
But how do i use php scripts in domoticz? Put it in the dir /domoticz/scripts ?
User avatar
Egregius
Posts: 2589
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Alarm clock

Post by Egregius »

Check the link in my signature ;)
maomanna
Posts: 94
Joined: Monday 30 November 2015 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Alarm clock

Post by maomanna »

Can i run the php floorplan on another machine? Or is running on the rpi the best way?
User avatar
Egregius
Posts: 2589
Joined: Thursday 09 April 2015 12:19
Target OS: Linux
Domoticz version: v2024.7
Location: Beitem, BE
Contact:

Re: Alarm clock

Post by Egregius »

maomanna
Posts: 94
Joined: Monday 30 November 2015 16:21
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Alarm clock

Post 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
wmn79
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

Post 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?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest