Announcement

Collapse
No announcement yet.

DISCUSSION: Alarm clock with early event triggering and no HST programming

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • TeleFragger
    replied
    This is cool!

    I just got my Concord 4 tied back in for sound through my alarm speaker... and thought of setting up stuff like this.
    I'm up at 5am and while I have events setup for outside lights..
    I thought of doing other things.

    I guess I am curious what the benefit of this would be vs a standard event for say..
    @5am, Dim hallway, kitchen lights @25%
    @5:15am, speak - Jeff should of left for work (may bother wife hah)

    but another for wife/kids.. knowing what time they need to be out..and up

    I was just going to do events but curios if my use would be better with this script setup?

    Leave a comment:


  • raymonvdm
    replied
    Is it possible to use this script on HS3 (Since the device id`s are changed)

    Code:
     	Error 3	Running script C:\Program Files\HomeSeer HS3\scripts\wake_up_alarmclock.vb :Exception has been thrown by the target of an invocation.->Does entry point Main exist in script? at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) at A.c17b105f989efe61e5979e67bec1ef734.cffd66cb0782c50126727e3fa75582d7a()

    Leave a comment:


  • Pierre
    replied
    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.)

    Leave a comment:


  • tome10
    replied
    but would involve more teh set and change. . .
    Sounds like a request for a 'Keypad' entry system. I think that's what he said. ;-)

    Leave a comment:


  • TechFan
    replied
    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, 03:53 AM.

    Leave a comment:


  • Pierre
    replied
    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 Files

    Leave a comment:


  • TechFan
    replied
    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.

    Leave a comment:


  • TechFan
    replied
    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.

    Leave a comment:


  • tome10
    replied
    Can someone with coding experience have a look at this?

    https://forums.homeseer.com/showthre...textbox+script

    Leave a comment:


  • TechFan
    replied
    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()

    Leave a comment:


  • TechFan
    replied
    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.

    Leave a comment:


  • S-F
    replied
    Can we get this for HS3?

    Leave a comment:


  • fungun
    replied
    Try this
    https://forums.homeseer.com/showthre...ht=alarm+clock

    Tim

    Leave a comment:


  • TechFan
    replied
    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?

    Leave a comment:


  • Person
    replied
    Test

    Leave a comment:

Working...
X