Announcement

Collapse
No announcement yet.

How to immediately dim a light turned on between a time period

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

    How to immediately dim a light turned on between a time period

    Hi,

    So I have a few lights that I want dimmed automatically to 1% when they are turned on regardless of what their previous dim state was between 10:30pm and sunrise (including if the light was on at the stroke of 10:30pm).

    I tried creating a event group, setting a condition for before sunrise but after 10:30pm, creating events with group condition true and device on for 0 seconds. No dice. Tried shifting the time past midnight (thinking maybe had to be the same date) and tried playing with the on for time condition, doesn't seem to make it work.

    Can anyone recommend a way to achieve this?

    #2
    Originally posted by Dgwharrison View Post
    Hi,

    So I have a few lights that I want dimmed automatically to 1% when they are turned on regardless of what their previous dim state was between 10:30pm and sunrise (including if the light was on at the stroke of 10:30pm).

    I tried creating a event group, setting a condition for before sunrise but after 10:30pm, creating events with group condition true and device on for 0 seconds. No dice. Tried shifting the time past midnight (thinking maybe had to be the same date) and tried playing with the on for time condition, doesn't seem to make it work.

    Can anyone recommend a way to achieve this?
    The simplest form would be an event for each light like this:

    Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	35.7 KB
ID:	1193249

    This event requires the same trigger twice, because HS begins and ends each day at Midnight. Using the same trigger and the two conditions above will allow the event to be true from 10:30PM until Midnight AND from Midnight until sunrise.

    If I was going to have a number of lights working on this schedule, I wold either create a virtual device that is turned on at 10:30PM and off at sunrise, then use the device as a condition, or use an Easy Trigger schedule. Either would work with a single trigger.

    This event has one problem that we had to overcome with our default lighting levels - during the period from 10:30 until sunrise, you can only have the lights at 1% or off. If you want more ilght, the event will set them back to 1%. If you are interested in how we structured the events look at this thread. While our solution is a little more complex than yours, the underlying mechanism to let you override the brightness will still work. It is a default enable virtual device that is turned off after the light is set to default allowing manual override and is turned on when the light is turned off so that it will default again when the light is turned on.
    Last edited by randy; November 27, 2017, 08:42 PM.
    HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

    Comment


      #3
      Hi thanks for the quick reply.

      Not quite what I wanted. So what you have there would set the light to 1% between 10:30 pm and sunrise just purely based on time.

      What I want to do is do that ONLY IF the device is either:
      1) on at 10:30 pm; or
      2) SWITCHED ON between 10:30pm and sunrise.

      I then have another event that switches the light off after 15 minutes. The idea being you wake up in the night, you switch the hallway lights on, they immediately go to the lowest settings (so as not to blow your eyes out) then if you forget to turn them off they turn themselves off (I have kids who leave them on).

      Comment


        #4
        Originally posted by Dgwharrison View Post
        Hi thanks for the quick reply.

        Not quite what I wanted. So what you have there would set the light to 1% between 10:30 pm and sunrise just purely based on time.
        That is not true. He has it that if the lights are turned on ("greater then off") between 10:30pm and sunrise. then dim them to 1%. They will not go from off to on at 10:30 automatically.

        Only thing you have added (wasnt on your first post) was to add a timer to shut off after 15 min. And that would be another event that says the same as above as far as time, but if the light have been on for 15min then turn off.

        Comment


          #5
          Originally posted by Dgwharrison View Post
          Hi thanks for the quick reply.

          Not quite what I wanted. So what you have there would set the light to 1% between 10:30 pm and sunrise just purely based on time.

          What I want to do is do that ONLY IF the device is either:
          1) on at 10:30 pm; or
          2) SWITCHED ON between 10:30pm and sunrise.

          I then have another event that switches the light off after 15 minutes. The idea being you wake up in the night, you switch the hallway lights on, they immediately go to the lowest settings (so as not to blow your eyes out) then if you forget to turn them off they turn themselves off (I have kids who leave them on).
          The event I posted above will set the light to 1% if it is turned on (set to greater than Off) between 10:30PM and sunrise, it will not do anything if the light is off. It also will not do anything at 10:30PM. The IF and OR IF are triggers which are only true if the light changes and becomes any value other than Off. If you want the light to adjust at 10:30PM if it is already on, then add another line to the event:

          Click image for larger version

Name:	Capture1.PNG
Views:	1
Size:	45.2 KB
ID:	1193250
          HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

          Comment


            #6
            Oh I see, so you can set the dim level independently of the on-off status. Got it.

            I can't try it right now but off the cuff I can see a problem with that, if I want to dim up manually to over ride, I wouldn't be able to because it would revert to 1% right?

            Comment


              #7
              Originally posted by Dgwharrison View Post
              Oh I see, so you can set the dim level independently of the on-off status. Got it.

              I can't try it right now but off the cuff I can see a problem with that, if I want to dim up manually to over ride, I wouldn't be able to because it would revert to 1% right?
              Yes, as I wrote in my first post above. A virtual device can be used to allow adjustment after the light is set to the default value of 1%.
              HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

              Comment


                #8
                Ah, righto, ok I think I can follow that. I'll try and get my head around it tonight.

                Comment


                  #9
                  It is simple. Create an On-Off virtual device. Here I called it Default. Use the device as a condition for all three triggers, only allowing the event to run if Default is On. At the end of the event turn Default Off. This will stop the event from running, allowing full manual control of the light. Create a second event that turns Default On when the light is turned Off. This will reset it so that the lights will go to 1% the next time.

                  Click image for larger version

Name:	Capture.PNG
Views:	1
Size:	84.0 KB
ID:	1193265
                  HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

                  Comment


                    #10
                    Hi again!

                    So I get all the logic there. Totally makes sense. Tried that first using group conditions; didn't work, tried it with time in the event conditions, didn't work; even tried creating three virtual devices for daytime, evening and night and that didn't work either. I got to the state in the screenshot below, at this time I had manually set the virtual device for the light and the virtual device for is night time to on. Still doesn't work.
                    Attached Files

                    Comment


                      #11
                      Just to be clear, a virtual device simply means you add a device, give it a name, floor and room if you like to and that's it right?

                      Comment


                        #12
                        Originally posted by Dgwharrison View Post
                        Just to be clear, a virtual device simply means you add a device, give it a name, floor and room if you like to and that's it right?
                        Yes. This thread will give you a head start.
                        HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

                        Comment


                          #13
                          What kind of dimmer switch are you using?


                          Sent from my iPhone using Tapatalk

                          Comment


                            #14
                            Originally posted by Kerat View Post
                            What kind of dimmer switch are you using?


                            Sent from my iPhone using Tapatalk
                            Good point! If it is a HomeSeer dimmer with Central Scene, the events can be triggered by a single press scene.
                            HS4 Pro, 4.2.19.0 Windows 10 pro, Supermicro LP Xeon

                            Comment


                              #15
                              Originally posted by rprade View Post
                              Good point! If it is a HomeSeer dimmer with Central Scene, the events can be triggered by a single press scene.
                              Yeah and if its a not an instant status switch.......

                              Comment

                              Working...
                              X