Announcement

Collapse
No announcement yet.

Trying to randomize light on/off

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

    Trying to randomize light on/off

    I've been staring at the User Guide trying to figure out how to make this work.

    Basically the light turned on fine, but it's been about an hour and the light hasn't turned off. Am I doing something wrong? Can someone help, please?

    What I think it should do is:

    If the light has been off for at least 2 minutes then turn the light on at least once randomly from 0 - 15 minutes.
    If the light has been on for at least 2 minutes then turn the light off at least once randomly from 0 - 15 minutes which is actually 2 - 17 minutes.


    #2
    It looks correct to me.
    Could you set the log level to Debug, restart the plug-in, then wait at least 30 minutes, and post the logs here.
    Thanks

    Comment


      #3
      Yes, I turned on debug a bit ago. Is it showing the On event triggering correctly but the Off event not triggering at all?

      I did manually turn the light off and sure enough shortly after it turned on again, but not off.

      To create the Off event I "copied" the On event and made changes. I'll try re-create the Off from scratch.

      May-17 2:18:34 PM EasyTrigger DEBUG Restarting timer with interval=724079ms
      May-17 2:18:34 PM EasyTrigger DEBUG Firing event 157
      May-17 2:16:09 PM EasyTrigger DEBUG Device 481 value changed from 100 to 0
      May-17 2:16:08 PM EasyTrigger DEBUG Device 22 value changed from 255 to 0
      May-17 2:16:08 PM EasyTrigger DEBUG Device 23 value changed from 255 to 0
      May-17 2:16:08 PM EasyTrigger DEBUG Device 497 value changed from 2 to 0
      May-17 2:16:08 PM EasyTrigger DEBUG Device 486 value changed from 100 to 0
      May-17 2:16:07 PM EasyTrigger DEBUG Device 18 value changed from 255 to 0
      May-17 2:14:52 PM EasyTrigger DEBUG Device 481 value changed from 0 to 100
      May-17 2:14:51 PM EasyTrigger DEBUG Device 22 value changed from 0 to 255
      May-17 2:14:51 PM EasyTrigger DEBUG Device 23 value changed from 0 to 255
      May-17 2:14:51 PM EasyTrigger DEBUG Device 497 value changed from 0 to 2
      May-17 2:14:51 PM EasyTrigger DEBUG Device 486 value changed from 0 to 100
      May-17 2:14:51 PM EasyTrigger DEBUG Device 18 value changed from 0 to 255
      May-17 2:14:49 PM EasyTrigger DEBUG Device 490 value changed from 0 to 100
      May-17 2:14:49 PM EasyTrigger DEBUG Device 86 value changed from 0 to 1
      May-17 2:14:48 PM EasyTrigger DEBUG Device 88 value changed from 0 to 2
      May-17 2:09:44 PM EasyTrigger DEBUG Restarting timer with interval=529421ms
      May-17 2:09:44 PM EasyTrigger DEBUG Firing event 157
      May-17 2:08:30 PM EasyTrigger DEBUG Device 482 value changed from 0 to 100
      May-17 2:08:30 PM EasyTrigger DEBUG Device 55 value changed from 0 to 99
      May-17 2:08:30 PM EasyTrigger DEBUG Device 56 value changed from 0 to 99
      May-17 2:08:30 PM EasyTrigger DEBUG Device 500 value changed from 0 to 2
      May-17 2:08:30 PM EasyTrigger DEBUG Device 205 value changed from 0 to 255
      May-17 2:08:30 PM EasyTrigger DEBUG Restarting timer with interval=74375ms
      May-17 2:08:30 PM EasyTrigger DEBUG Firing event 157
      May-17 2:07:29 PM EasyTrigger DEBUG Device 17 value changed from 75 to 77
      May-17 2:06:03 PM EasyTrigger DEBUG Device 403 changed
      May-17 2:06:01 PM EasyTrigger DEBUG Device 454 value changed from 1 to 131
      May-17 2:06:01 PM EasyTrigger DEBUG Device 403 value changed from 0 to 7
      May-17 2:05:56 PM EasyTrigger DEBUG Device 55 value changed from 99 to 0
      May-17 2:05:56 PM EasyTrigger DEBUG Device 56 value changed from 99 to 0
      May-17 2:05:56 PM EasyTrigger DEBUG Device 500 value changed from 2 to 0
      May-17 2:05:56 PM EasyTrigger DEBUG Device 205 value changed from 255 to 0
      May-17 2:05:56 PM EasyTrigger DEBUG Device 482 value changed from 100 to 0
      May-17 2:03:09 PM EasyTrigger DEBUG Restarting timer with interval=321013ms
      May-17 2:03:09 PM EasyTrigger DEBUG Firing event 157
      May-17 1:49:15 PM EasyTrigger DEBUG Restarting timer with interval=833939ms
      May-17 1:49:15 PM EasyTrigger DEBUG Firing event 157
      May-17 1:48:48 PM EasyTrigger DEBUG Device 86 value changed from 1 to 0
      May-17 1:48:48 PM EasyTrigger DEBUG Device 490 value changed from 100 to 0
      May-17 1:48:48 PM EasyTrigger DEBUG Device 88 value changed from 2 to 0

      Comment


        #4
        I think it's working now after I deleted and re-created the Off event.
        Thanks for the quick response.

        Comment


          #5
          yeah the copy may have screw up things.

          when you start the plug-in or modify an event, you should see in the logs that the plug-in picked up the random triggers:

          something like:
          Code:
          Random trigger UID={0} evRef={1} atLeast={2} noMore={3}
          Random trigger UID={0} evRef={1} atLeast={2} noMore={3}
          
          Found 2 random triggers
          make sure you see both your events

          Comment


            #6
            I think I have handle on this now.... but I do have one question.

            Obviously this is going to be used to simulate occupancy when I'm on vacation, which is maybe once per year. I thought I would be able to disable the events to stop the random triggers until I turned on my Vacation mode.

            But I notice the triggers keep firing even when the event is disabled, which I'm sure is an HS3 thing, you fire the triggers, HS3 decides whether to execute the event.

            Is there a way to idle the trigger engine until I want it to start going? I will have 6 of these things running and it seems a waste to be firing triggers for the 51 weeks of the year every 15 mins when I don't need them.

            Thanks

            Comment


              #7
              Originally posted by andyf View Post

              But I notice the triggers keep firing even when the event is disabled, which I'm sure is an HS3 thing, you fire the triggers, HS3 decides whether to execute the event.

              Is there a way to idle the trigger engine until I want it to start going? I will have 6 of these things running and it seems a waste to be firing triggers for the 51 weeks of the year every 15 mins when I don't need them.

              Thanks
              I don't think there is a way to know if an event is disabled at the plug-in level, so I don't think I can avoid to fire the trigger.
              But honestly I would not be too concerned to let it run all year long, it doesn't take a lot of resources...

              Comment


                #8
                Thanks for that. It is working very well.

                Comment


                  #9
                  Hi Spud,

                  I just discovered your plug-in and I am considering purchasing it for this very reason, to randomize some lights when on vacation. Is there a virtual switch that can be used as a condition in the events so they only happen when the virtual switch is on? My old system, Vera, had such a capability and I used that for home/away modes to control events.

                  Thanks.

                  Comment


                    #10
                    Originally posted by ufd108 View Post
                    Hi Spud,

                    I just discovered your plug-in and I am considering purchasing it for this very reason, to randomize some lights when on vacation. Is there a virtual switch that can be used as a condition in the events so they only happen when the virtual switch is on? My old system, Vera, had such a capability and I used that for home/away modes to control events.

                    Thanks.
                    Just create a virtual device, name it and include it in your events as a condition. See this thread on virtual devices.

                    https://forums.homeseer.com/showthread.php?t=181973
                    HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

                    Comment

                    Working...
                    X