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

    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.

    #2
    Test

    Comment


      #3
      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?

      Comment


        #4
        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

        Comment


          #5
          Can we get this for HS3?
          Originally posted by rprade
          There is no rhyme or reason to the anarchy a defective Z-Wave device can cause

          Comment


            #6
            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.

            Comment


              #7
              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()

              Comment


                #8
                Can someone with coding experience have a look at this?

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

                Comment


                  #9
                  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.

                  Comment


                    #10
                    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.

                    Comment


                      #11
                      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
                      Visit zee e-maison : http://www.e-maison.com

                      Comment


                        #12
                        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 19, 2017, 03:53 AM.

                        Comment


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

                          Comment


                            #14
                            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.)
                            Visit zee e-maison : http://www.e-maison.com

                            Comment


                              #15
                              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()

                              Comment

                              Working...
                              X