www.homeseer.com    
 

Go Back   HomeSeer Message Board > Developer Support > Scripts & Plug-Ins:Development and Libraries > Script & Plug-In Library Discussion

Script & Plug-In Library Discussion This forum is for discussing scripts that are posted in the Script Library. To keep the Script Libray as neat as possible, replies are not permitted in that forum. Please post questions, comments, scripts in process, etc. to this forum.

Reply
 
Thread Tools Display Modes
  #1  
Old January 11th, 2013, 12:40 AM
Person's Avatar
Person Person is offline
Seer Master
 
Join Date: Jul 2012
Location: Portland, OR
Posts: 501
DISCUSSION: Alarm clock with early event triggering and no HST programming

This is discussion thread for

http://board.homeseer.com/showthread.php?t=157454

Let me know if you have used the alarm clock, how it works and any suggestions for improvements ...

I am looking into building timer on the same principles.
Also into building self-contained installation script that would build virtual devices and all needed events in one shot.
Reply With Quote
  #2  
Old January 16th, 2013, 02:31 AM
Person's Avatar
Person Person is offline
Seer Master
 
Join Date: Jul 2012
Location: Portland, OR
Posts: 501
Test
Reply With Quote
  #3  
Old February 13th, 2017, 03:38 PM
TechFan's Avatar
TechFan TechFan is offline
Seer Master
 
Join Date: Oct 2013
Location: WA
Posts: 834
Hm. Interesting that no one else has posted that they have used your script. I was hoping to implement something like this (to turn the lights on gradually), but I was hoping not to need to manually create all the times. . .so I was trying a text box. . .but that hasn't been very user friendly. Still using this solution?
Reply With Quote
  #4  
Old February 13th, 2017, 05:54 PM
fungun's Avatar
fungun fungun is offline
Seer Master
 
Join Date: Apr 2004
Location: Iowa
Posts: 1,202
Try this
https://forums.homeseer.com/showthre...ht=alarm+clock

Tim
__________________
FB Page - https://www.facebook.com/pages/Capt-Tim/209398425902188

HSTouch Layouts - https://www.facebook.com/media/set/?...5902188&type=3

“No, I’m from Iowa. I only work in outer space.” – Captain Kirk
Reply With Quote
  #5  
Old February 13th, 2017, 06:08 PM
S-F's Avatar
S-F S-F is offline
OverSeer
 
Join Date: Jun 2012
Location: Goobertown AR 72450
Posts: 2,622
Can we get this for HS3?
__________________
Quote:
Originally Posted by rprade View Post
There is no rhyme or reason to the anarchy a defective Z-Wave device can cause
Reply With Quote
  #6  
Old February 13th, 2017, 07:50 PM
TechFan's Avatar
TechFan TechFan is offline
Seer Master
 
Join Date: Oct 2013
Location: WA
Posts: 834
I hadn't looked the script yet. . .did realize it was HS2. It looks like there are a few options options. I'll have to check them out in detail. I was hoping for something that didn't require me to build a custom interface for HSTouch. (IE, something I can set the alarm value from my Pebble with PebSeer.
Reply With Quote
  #7  
Old February 15th, 2017, 07:14 AM
TechFan's Avatar
TechFan TechFan is offline
Seer Master
 
Join Date: Oct 2013
Location: WA
Posts: 834
Quote:
Originally Posted by S-F View Post
Can we get this for HS3?
I got it mostly working by changing two calls in the SetEventTime Sub. Unfortunately even though the HS3 documentation I found says that the date value should be ignored in EventSetTimeTrigger, it still keeps setting the current date on the events. . .which seems to mean the alarm would only trigger once. . .so it would have to get reset each day to continue. Ok, found that the PDF I found linked to the Homeseer site must be out of date. . .because now you have to pass 1/1/1 as the date to ignore the date. . .I found that didn't work, but I got it to work if I set it as 1/1/0001. More testing later.

Original:

Code:
    IRef = hs.GetEventEx(WakeUpEvent)
    IRef.ev_time = FinalWakeUpTime
Changed to:
Code:
    IRef = hs.GetEventRefByName(WakeUpEvent)
    hs.EventSetTimeTrigger(IRef,CDate("1/1/0001 " & FinalWakeUpTime))
    hs.SaveEventsDevices()
Reply With Quote
  #8  
Old February 15th, 2017, 11:39 PM
tome10 tome10 is offline
Seer Deluxe
 
Join Date: Sep 2016
Location: Arkansas
Posts: 266
Can someone with coding experience have a look at this?

https://forums.homeseer.com/showthre...textbox+script
Reply With Quote
  #9  
Old February 16th, 2017, 02:32 AM
TechFan's Avatar
TechFan TechFan is offline
Seer Master
 
Join Date: Oct 2013
Location: WA
Posts: 834
Quote:
Originally Posted by tome10 View Post
Can someone with coding experience have a look at this?

https://forums.homeseer.com/showthre...textbox+script
Hopefully someone else can help. I definitely haven't tried that yet.
Reply With Quote
  #10  
Old February 16th, 2017, 04:43 AM
TechFan's Avatar
TechFan TechFan is offline
Seer Master
 
Join Date: Oct 2013
Location: WA
Posts: 834
Quote:
Originally Posted by S-F View Post
Can we get this for HS3?
Hm. So I have this working in HS3. . .but only tested with the WebUI and PebSeer from my Pebble. Works nicely, except it is going to get overwhelming if too many alarm times are setup in the status pairs. I haven't created that many virtual devices, but it is going to take a while to get all times added as pairs. Also, I don't see a way to reorder pairs. . .they don't sort automatically in value order in the WebGUI or from my Pebble. . .they are in the order they were added.

HS3Touch is broken on both of my iOS devices, but it seems to work on a test android tablet. I do like that I don't have to build a custom screen like it appears is required for the other alarm clock setup I ran into.
Reply With Quote
  #11  
Old February 17th, 2017, 11:50 AM
Pierre's Avatar
Pierre Pierre is offline
Seer Master
 
Join Date: Jan 2001
Location: Strasbourg FRANCE
Posts: 524
icons

Congratulations for this work.
I have something equivalent running, having two devices for each alarmclock (one for Hour, one for minute).
I just wanted to share some icons.
Attached Images
    
__________________
Visit zee e-maison : http://www.e-maison.com
Reply With Quote
  #12  
Old February 17th, 2017, 01:20 PM
TechFan's Avatar
TechFan TechFan is offline
Seer Master
 
Join Date: Oct 2013
Location: WA
Posts: 834
Quote:
Originally Posted by Pierre View Post
Congratulations for this work.
I have something equivalent running, having two devices for each alarmclock (one for Hour, one for minute).
I just wanted to share some icons.
Thanks. Those look nice. Seeing those icons makes me wonder about "silencing"/"snoozing" this type of alarm. . .do you do that?

I can see how doing two devices would allow easier setup (only have to setup minutes range in one and hours range in the other), but would involve more to set and change. . .

Last edited by TechFan; February 19th, 2017 at 04:53 AM.
Reply With Quote
  #13  
Old February 17th, 2017, 10:18 PM
tome10 tome10 is offline
Seer Deluxe
 
Join Date: Sep 2016
Location: Arkansas
Posts: 266
Quote:
but would involve more teh set and change. . .
Sounds like a request for a 'Keypad' entry system. I think that's what he said. ;-)
Reply With Quote
  #14  
Old February 18th, 2017, 03:39 AM
Pierre's Avatar
Pierre Pierre is offline
Seer Master
 
Join Date: Jan 2001
Location: Strasbourg FRANCE
Posts: 524
In my setup, the alarm clock project is still "in project" because of the lousy HSTouch, an particularly the drop list problem for Android.
Snoozing should not be a problem by scripting using delayed event, but since my wakeup routine is somehow complicate, I am not sure wether I should delay everything or part of it ( shut of the radio for XX minutes, but having breakfast at the normal schedule for ex.)
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On

Forum Jump


All times are GMT -4. The time now is 01:27 PM.


Copyright HomeSeer Technologies, LLC