I am new to Indigo and am trying to recreate some functionality I had with Vera.
There I had a LUA script I wrote that when triggered:
Checked a variable to see if sonos had been paused in the previous n minutes. If so, resume. If not, then:
Depending on the day of the week, the time of that day, and what month (I.e. Christmas Music on Sunday's in December) play a certain Sonos favorite. Tunes on Saturday, morning drive show weekday mornings etc.
In LUA that was just one script.
What is the best way to do that on the Indigo platform? Set up many triggers with specific conditions?
Lone trigger with code that runs? Any pointers on how to do this kind of Sonos control from a Mac script?
Further, I use multiple triggers to do the same thing. Alarm disarmed with a certain code, voice to Alexa, zwave minimote, Lutron wall keypad...
Seems I can on,y have one trigger event per trigger. If each one needs five different options to account for different conditions, it can get quite messy. So I am thinking a code solution is ideal. Then I could just have five separate triggers that execute the samesingle action group(that calls code with a case statement or whatever it is in Python)