Ring Doorbell based on Date has Delay in Running


#1

1) Give a description of the problem
The piston takes between 2-3 minutes to ring the doorbell with all of the IF statements that determine which mp3 to play based upon a date. Without the IF statements, the doorbell rings in about 3 seconds. The IF statements must be the problem causing the delay from when the doorbell is pushed till when the sound occurs.

2) What is the expected behavior?
When the Ring doorbell is pushed, based on today’s date a specific mp3 is played via sonos speakers through Jishi’s Sonos http api using the clip feature.

3) What is happening/not happening?
When the Ring doorbell is pushed, the correct clip is playing, however it plays up between 2-3 minutes delayed.

4) Post a Green Snapshot of the pistonimage