Announcement

Collapse
No announcement yet.

sunset and sunrise variables in Easytrigger expressions

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

    sunset and sunrise variables in Easytrigger expressions

    I know sunset and sunrise variables are available somewhere in HomeSeer, but I'd like to use them in an expression. This is to set color temperature of lights to a different value every few minutes, based on how far away from sunset or sunrise. I don't see sunset/sunrise listed as a replacement variable. Is there a way to access that from within Easytrigger expressions?

    And if I can find them, can I add and subtract those variables (to get a number of seconds since sunrise or until sunset, for example)?

    #2
    There are standard triggers:
    If the time is this before / after sunrise / sunset
    Won't those do what you want?
    Mike____________________________________________________________ __________________
    HS3 Pro Edition 3.0.0.548, NUC i3

    HW: Stargate | NX8e | CAV6.6 | Squeezebox | PCS | WGL 800RF | RFXCOM | Vantage Pro | Green-Eye | Edgeport/8 | Way2Call | Ecobee3 | EtherRain | Ubiquiti

    Comment


      #3
      I don't think scripting variables are available to Easytrigger, but you could use these in an event with Easytrigger. https://help.homeseer.com/help/HS3/s...#.time_related
      HomeSeer Version: HS3 Pro Edition 4.2.6.0
      Operating System: Microsoft Windows 10 Pro - Desktop

      Enabled Plug-Ins
      AK Google Calendar 3.0.0.45,AK Smart Device 3.0.0.6,AK Weather 4.0.1.77,AmbientWeather 3.0.1.9,Big5 1.38.0.0,BLBackup 2.0.63.0,BLGData 3.0.55.0,BLLock 3.0.38.0,BLPlex 2.0.22.0,BLUPS 2.0.26.0,Device History 3.2.0.2,EasyTrigger 3.0.0.74,HSBuddy 3.25.614.1,mcsMQTT 5.21.4.1,MeiHarmonyHub 3.1.0.22,NetCAM 3.0.0.14,PHLocation 3.0.1.109,Restart 1.0.0.7,SDJ-Health 3.1.0.3,SDJ-VStat 3.1.0.7,TPLinkSmartHome 19.10.7.1,UltraCID3 3.0.6681.34300,UltraSighthoundVideo3 3.0.5960.36744,,Z-Wave 3.0.2.0

      Comment


        #4
        Thanks for the suggestions!

        I already change the color temperature of the lights using sunset/sunrise standard triggers, but only with 4 events. It works fine but the change is a little obvious when it happens. I wanted to change them every 5 minutes, so that each individual change isn't noticeable, but if I used standard triggers, that would be over 100 events. I'd rather use some kind of expression.

        I haven't got into scripts yet but I should spend some time figuring it out, I think that's probably the best way to handle this since the scripting variables are exactly what I need for this.

        Comment


          #5
          I think you are on the right track to consider a script. One possibility that comes to mind would be a recurring event which runs a script that changes the light settings incrementally. I am not familiar with the commands to adjust color temperature of your lights, but if they allow a change as a percentage of the existing settings, then that is one possible way to achieve what you want with a relatively simple script.
          Mike____________________________________________________________ __________________
          HS3 Pro Edition 3.0.0.548, NUC i3

          HW: Stargate | NX8e | CAV6.6 | Squeezebox | PCS | WGL 800RF | RFXCOM | Vantage Pro | Green-Eye | Edgeport/8 | Way2Call | Ecobee3 | EtherRain | Ubiquiti

          Comment


            #6
            Not sure if you could achieve what you want with that but note that you can build schedule time ranges relatively to sunrise and sunset, see bottom of this post:
            https://forums.homeseer.com/forum/ul...41#post1347341

            Comment


              #7
              I did actually use those scheduled time ranges and ended up triggering events based on those, it's a little more convenient than doing the logic in the events themselves. But I'm still just triggering events with them, and each event sets the light to a specific color temperature. Is there a way to use scheduled time ranges as a variable in an expression?

              Comment

              Working...
              X