The setup on this worked great. The devices all work. When I incorporate a speak to device in "Rule Machine" I get an error. I'll copy the two log files here (minus some long ID cookie). I removed a couple of the ID's but did check for differences in the ID's in the log files and there were none.
Thanks,
Leon
Case 1: This is Passing Case: Sending Speak Command from Device
app:762019-06-29 12:11:38.326 debug Command = [uri:https://pitangui.amazon.com/api/behaviors/preview, headers:[Cookie:x-amzn-dat-gui-client-v=1.24.206077.0; skin=noskin; ubid-main=134-2403526-2311102; unique_id=Removed; s_cc=true; s_sq=%5B%5BB%5D%5D; csrf=146854901; s_vnum=1989436342362%26vn%3D3; session-id=135-7616146-3999539; session-id-time=2082787201l; s_ppv=55; s_nr=1557797105591-Repeat; s_dslv=1557797105594; x-wl-uid=REMOVED Stuff Here==;, Referer:https://alexa.amazon.com/spa/index.html, Origin:https://alexa.amazon.com, csrf:146854901, Connection:keep-alive, DNT:1], contentType:text/plain, body:{"behaviorId":"PREVIEW","sequenceJson":"{"@type":"com.amazon.alexa.behaviors.model.Sequence","startNode":{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"Alexa.Speak","operationPayload":{"deviceType":"A32DOYMUN6DTXA","deviceSerialNumber":"G090VC0990750B7H","locale":"en-US","customerId":"A3D1JDAZ5Z2FJG","textToSpeak":"Test"}}}","status":"ENABLED"}]
app:762019-06-29 12:11:38.283 debug Sending 'Test' to 'Office'
dev:432019-06-29 12:11:38.197 debug Speaking message = 'Test'
Case 2: This is the Failing Case using Rule Machine
dev:332019-06-29 12:14:59.492 error groovy.lang.StringWriterIOException: java.io.IOException: Stream closed on line 43 (deviceNotification)
app:762019-06-29 12:14:59.331 error 'speakMessage()': Error making Call (getMessage): Bad Request
app:762019-06-29 12:14:59.327 error 'speakMessage()': Error making Call (Status): 400
app:762019-06-29 12:14:59.324 error 'speakMessage()': Error making Call (Data): {"Message":null}
app:762019-06-29 12:14:58.629 debug Command = [uri:https://pitangui.amazon.com/api/behaviors/preview, headers:[Cookie:x-amzn-dat-gui-client-v=1.24.206077.0; skin=noskin; ubid-main=134-2403526-2311102; unique_id=Removed; s_cc=true; s_sq=%5B%5BB%5D%5D; csrf=146854901; s_vnum=1989436342362%26vn%3D3; session-id=135-7616146-3999539; session-id-time=2082787201l; s_ppv=55; s_nr=1557797105591-Repeat; s_dslv=1557797105594; x-wl-uid=REMOVED Stuff Here ==;, Referer:https://alexa.amazon.com/spa/index.html, Origin:https://alexa.amazon.com, csrf:146854901, Connection:keep-alive, DNT:1], contentType:text/plain, body:{"behaviorId":"PREVIEW","sequenceJson":"{"@type":"com.amazon.alexa.behaviors.model.Sequence","startNode":{"@type":"com.amazon.alexa.behaviors.model.OpaquePayloadOperationNode","type":"Alexa.Speak","operationPayload":{"deviceType":"A32DOYMUN6DTXA","deviceSerialNumber":"G090VC0990750B7H","locale":"en-US","customerId":"A3D1JDAZ5Z2FJG","textToSpeak":"Test "}}}","status":"ENABLED"}]
app:762019-06-29 12:14:58.509 debug Sending 'Test ' to 'Office'
dev:432019-06-29 12:14:58.458 debug Speaking message = 'Test '
app:772019-06-29 12:14:58.371 info Action: Speak on AlexaTTS Office: 'Test'
app:772019-06-29 12:14:58.300 info Garage Door Left Open: became True
app:772019-06-29 12:14:58.292 info --> Garage Car Door open [true]
app:772019-06-29 12:14:58.124 info Garage Door Left Open: Garage Car Door contact open
dev:422019-06-29 12:14:58.018 info Garage Car Door was opened
--- Live Log Started, waiting for events