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?
Announcement
Collapse
No announcement yet.
How do I make something in an event loop until it reaches a certain point?
Collapse
X
-
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 3Mike____________________________________________________________ __________________
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
-
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
Comment