1) Give a description of the problem
I have been trying to deduplicate my code by putting a single “Execute Piston” at the end of this piston. The variable gets set but nothing plays and it appears that the piston I attempt to execute gets ignored. The piston I am sharing here works, but I want to modify it to simplify the code. Also, as I enhance my “Alert Player” piston (I will likely add an attribute to turn on/off logging of the message played in Message Store), I do not want to modify all the instances I call it in this piston.
2) What is the expected behavior?
Assign appropriate value to textMessage at a certain time/date and fire another piston to play that message on a Sonos speaker.
3) What is happening/not happening?
The piston shown below works. All other permutations I have tried, such as evaluating whether there were contents in textMessage or using local variables to tell this piston when to fire the Alert Player piston have failed with the piston never firing. It always seemed like the portion of code that follows the “every” statements was being skipped.
4) Post a Green Snapshot of the piston
5) Attach any logs (From ST IDE and by turning logging level to Full)
No logs as the piston works. I am trying to optimize it.
I am also adding the other piston in case it might help this topic or others trying to do something similar.