1) Give a description of the problem
I created a piston that would speak the weather forecast every morning. This worked for some time and then quit after awhile. I did some testing this morning to see if I could figure out the cause. The piston is firing on the desired days and time, but no sound is played. I setup another piston to test and was able to get a string constant to be played, but if I use an expression with a variable, no sound is played. If I use two Speak Text commands, the first with a constant and the second using an expression with a variable, only the first test is spoken.
Has there been a change recently that would have broken the use of expressions with variables in Speak commands?
2) What is the expected behavior?
Using a Sonos speaker, the Speak text “The time is {$time}” would produce output sounds giving the current time.
3) What is happening/not happening?
Speak text “This is a test” works
Speak text “The time is {$time}” does not work
4) Post a Green Snapshot of the piston
5) Attach any logs (From ST IDE and by turning logging level to Full)
5/12/2018, 8:14:33 AM +691ms
+1ms ╔Received event [Switch Test].switch = on with a delay of 115ms
+86ms ║RunTime Analysis CS > 14ms > PS > 33ms > PE > 39ms > CE
+88ms ║Runtime (37297 bytes) successfully initialized in 33ms (v0.3.104.20180323) (87ms)
+89ms ║╔Execution stage started
+98ms ║║Comparison (enum) on changes_to (string) on = true (1ms)
+100ms ║║Cancelling condition #6’s schedules…
+100ms ║║Condition #6 evaluated true (5ms)
+101ms ║║Cancelling condition #1’s schedules…
+102ms ║║Condition group #1 evaluated true (state changed) (8ms)
+104ms ║║Cancelling statement #2’s schedules…
+118ms ║║Executed physical command [Light Bulb Bonus].on() (9ms)
+118ms ║║Executed [Light Bulb Bonus].on (11ms)
+121ms ║║Cancelling statement #7’s schedules…
+270ms ║║Executed physical command [Speaker Master Bath].playText([This is a test]) (142ms)
+270ms ║║Executed [Speaker Master Bath].playText (144ms)
+276ms ║║Calculating (string) The time is + (string) 8:14 A.M. >> (string) The time is 8:14 A.M.
+315ms ║║Executed physical command [Speaker Master Bath].playText([The time is 8:14 A.M., 50]) (35ms)
+316ms ║║Executed [Speaker Master Bath].playText (37ms)
+319ms ║║Cancelling statement #9’s schedules…
+323ms ║║Executed virtual command [Light Bulb Bonus].wait (1ms)
+324ms ║║Requesting a wake up for Sat, May 12 2018 @ 8:14:44 AM MDT (in 10.0s)
+328ms ║╚Execution stage complete. (239ms)
+330ms ║Setting up scheduled job for Sat, May 12 2018 @ 8:14:44 AM MDT (in 9.995s)
+338ms ╚Event processed successfully (338ms)