EchoSpeaks/WebCore/Smartthings 'canned' greeting


#1

How do you use pre-composed greetings in WebCore (like sayCompliment() or sayBirthday(), etc)?
I wrote a lighting control based on motion then discovered you can send text to speech to an alexa device. I can send text to Alexa perfectly. Cannot figure out the Syntax to play a canned message

1) Give a description of the problem*
(PUT YOUR INFO HERE)

2) What is the expected behaviour?
play a canned greeting through echo dot

3) What is happening/not happening?
text-to-speech greeting work great -
What is the syntax for using the canned greetings? Welcome home, etc

**4) Post a Green Snapshot of the piston![image|45x37]

5) Attach logs after turning logging level to Full
|+1ms|╔Received event [Home].test = 1561939860761 with a delay of 3ms|
|—|---|
|+117ms|║RunTime Analysis CS > 29ms > PS > 10ms > PE > 80ms > CE|
|+121ms|║Runtime (51127 bytes) successfully initialized in 10ms (v0.3.10e.20190628) (118ms)|
|+123ms|║╔Execution stage started|
|+187ms|║║Comparison (time) 61860899 is_between (datetime) 1561950420000 … (datetime) 1561898640000 = false (12ms)|
|+190ms|║║Condition #5 evaluated false (57ms)|
|+192ms|║║Condition group #4 evaluated false (state did not change) (60ms)|
|+220ms|║║Comparison (time) 61860962 is_between (datetime) 1561950420000 … (datetime) 1561898640000 = false (11ms)|
|+223ms|║║Condition #63 evaluated false (26ms)|
|+225ms|║║Condition group #62 evaluated false (state did not change) (28ms)|
|+252ms|║║Comparison (time) 61860994 is_between (datetime) 1561898640000 … (datetime) 1561950420000 = true (11ms)|
|+255ms|║║Time restriction check passed|
|+257ms|║║Condition #79 evaluated true (28ms)|
|+269ms|║║Comparison (enum) inactive is (string) active = false (3ms)|
|+272ms|║║Condition #80 evaluated false (13ms)|
|+273ms|║║Condition group #78 evaluated false (state did not change) (45ms)|
|+299ms|║║Comparison (time) 61861043 is_between (datetime) 1561898640000 … (datetime) 1561950420000 = true (11ms)|
|+301ms|║║Time restriction check passed|
|+304ms|║║Condition #98 evaluated true (27ms)|
|+314ms|║║Condition #99 evaluated false (8ms)|
|+316ms|║║Condition group #90 evaluated false (state did not change) (39ms)|
|+342ms|║║Comparison (time) 61861086 is_between (datetime) 1561898640000 … (datetime) 1561950420000 = true (10ms)|
|+344ms|║║Time restriction check passed|
|+346ms|║║Condition #101 evaluated true (26ms)|
|+356ms|║║Comparison (enum) inactive is (string) inactive = true (2ms)|
|+359ms|║║Condition #102 evaluated true (11ms)|
|+360ms|║║Condition group #100 evaluated true (state did not change) (40ms)|
|+364ms|║║Cancelling statement #103’s schedules…|
|+396ms|║║Skipped execution of physical command [Hallway Bulb].off([]) because it would make no change to the device. (3ms)|
|+397ms|║║Executed [Hallway Bulb].off (7ms)|
|+406ms|║║Executed virtual command [Hallway Bulb].setVariable (4ms)|
|+418ms|║╚Execution stage complete. (296ms)|
|+420ms|╚Event processed successfully (420ms)|

REMOVE BELOW AFTER READING


#2

I believe this is not part of webCoRE, but instead part of the EchoSpeaks handler. Perhaps asking on that thread will get you quick replies.


#3

Thank you