Announcement

Collapse
No announcement yet.

How do I make something in an event loop until it reaches a certain point?

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

    How do I make something in an event loop until it reaches a certain point?

    I want to play bird sounds from my sonos in the morning and have it start low and gradually increase to a certain volume. I know that I can use EasyTrigger to set the device to increase the volume by, say +3. But how do I get it to do this every 5 minutes until it reaches volume 10?

    #2
    One way:
    Create a virtual device that is turned on by the event that starts playing the bird sounds.
    Create another event with a recurring trigger of 5 minutes
    - with a condition that your virtual device is on
    - and a condition that the volume is less than 10
    - with an action to increase the volume by 3
    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
      ..
      Attached Files

      Comment


        #4
        Instead of getting fancy you are only going to have 3 five minute intervals of sound. so you could
        1st event set volume to 3
        start playing the sound
        wait 5 minutes then start next event

        2nd event set volume to 6 (sound is already playing)
        wait 5 minutes then start next event

        3rd event set volume to 9 (add 3 and it goes over 10)
        wait 5 minutes then stop sound

        Comment


          #5
          This is what I came up with. I hope it works..

          Click image for larger version

Name:	screencapture-192-168-1-15-8000-events-html-2021-01-17-08_10_40.png
Views:	206
Size:	412.6 KB
ID:	1448763

          Comment

          Working...
          X