SmartThings Community

[RELEASE] Echo Speaks

echo
smartapp_voice
project_alerts
project_voice

(Anthony S.) #1897

what about the logs of when the server sends the cookieData to the smartApp?


(Brooke) #1898

I think you mean the Heroku Logsā€¦which are here:

2019-01-07T00:18:57.734683+00:00 app[web.1]: 1-7-2019 - 12:18:57am debug: Alexa Login Status: There was an error

2019-01-07T00:18:57.883724+00:00 app[web.1]: 1-7-2019 - 12:18:57am info: ** ServerVersion Sent to SmartThings Cloud Endpoint Successfully! **

2019-01-07T00:18:57.742679+00:00 heroku[router]: at=info method=GET path="/config" host=echo-speaks-cujrsehiu.herokuapp.com request_id=f85184b3-242e-4c47-a3e4-41155fef4f98 fwd=ā€œ173.35.157.202ā€ dyno=web.1 connect=1ms service=12ms status=304 bytes=348 protocol=https

2019-01-07T00:18:58.042479+00:00 app[web.1]: 1-7-2019 - 12:18:58am info: ** ServerVersion Sent to SmartThings Cloud Endpoint Successfully! **

2019-01-07T00:18:58.730840+00:00 heroku[router]: at=info method=GET path="/proxy" host=echo-speaks-cujrsehiu.herokuapp.com request_id=e851202d-bec8-4ae3-9447-db943b25e7a1 fwd=ā€œ173.35.157.202ā€ dyno=web.1 connect=1ms service=109ms status=200 bytes=23322 protocol=https

2019-01-07T00:18:59.210948+00:00 heroku[router]: at=info method=GET path="/ap/uedata?ld&v=0.202579.0&id=AFS0Y9G7HEB7HW0QGVYR&sw=1920&sh=1080&vw=1904&vh=929&m=1&sc=AFS0Y9G7HEB7HW0QGVYR&ue=3&bb=162&cf=183&be=312&pc=402&tc=-177&na_=-177&ul_=-6&ul=-6&rd=-1546820339571&rd=-1546820339571&fe=-175&lk_=-175&lk=-175&co=-175&co=-175&sc=-1546820339571&rq_=-174&rs_=-8&rs=33&dl=-3&di_=314&de_=314&_de=315&dc=401&ld=401&_ld=-1546820339571&ntd=-1&ty=0&rc=0&hob=2&hoe=4&ld=402&t=1546820339973&ctb=1&rt=cf:4-0-3-1-1-0-1__ld:14-5-3-2-3-0-0&csmtags=aui|aui:aui_build_date:3.18.16-2018-12-22|aui:aui_build_date:3.18.5-2018-04-12|fls-na&viz=visible:3&pty=AuthenticationPortal&spty=MobileSignInApplication&pti=undefined&tid=AFS0Y9G7HEB7HW0QGVYR&aftb=1" host=echo-speaks-cujrsehiu.herokuapp.com request_id=c3f05eb6-e8e4-485a-9b75-e5d7f4209244 fwd=ā€œ173.35.157.202ā€ dyno=web.1 connect=1ms service=19ms status=404 bytes=502 protocol=https

2019-01-07T00:18:59.272250+00:00 heroku[router]: at=info method=GET path="/ap/uedata?at&v=0.202579.0&id=AFS0Y9G7HEB7HW0QGVYR&m=1&sc=adblk_no&pc=480&at=480&t=1546820340051&csmtags=adblk_no&pty=AuthenticationPortal&spty=MobileSignInApplication&pti=undefined&tid=AFS0Y9G7HEB7HW0QGVYR&aftb=1" host=echo-speaks-cujrsehiu.herokuapp.com request_id=a5824b71-8f40-4731-8a25-3bb2e09e07a6 fwd=ā€œ173.35.157.202ā€ dyno=web.1 connect=1ms service=3ms status=404 bytes=502 protocol=https

2019-01-07T00:18:59.552272+00:00 heroku[router]: at=info method=GET path="/ap/uedata?at&v=0.202579.0&id=AFS0Y9G7HEB7HW0QGVYR&ctb=1&m=1&sc=AFS0Y9G7HEB7HW0QGVYR&pc=747&at=747&t=1546820340318&csmtags=csm-feature-touch-enabled:false&pty=AuthenticationPortal&spty=MobileSignInApplication&pti=undefined&tid=AFS0Y9G7HEB7HW0QGVYR&aftb=1" host=echo-speaks-cujrsehiu.herokuapp.com request_id=4b1488ba-0869-4dd6-80d6-01f4031a5646 fwd=ā€œ173.35.157.202ā€ dyno=web.1 connect=1ms service=10ms status=404 bytes=502 protocol=https

2019-01-07T00:18:59.609795+00:00 heroku[router]: at=info method=GET path="/ap/uedata?at&v=0.202579.0&id=AFS0Y9G7HEB7HW0QGVYR&ctb=1&m=1&sc=AFS0Y9G7HEB7HW0QGVYR&pc=754&at=754&t=1546820340325&pty=AuthenticationPortal&spty=MobileSignInApplication&pti=undefined&tid=AFS0Y9G7HEB7HW0QGVYR&aftb=1&ui=2" host=echo-speaks-cujrsehiu.herokuapp.com request_id=86351e38-1754-418a-91ae-3f826e0af901 fwd=ā€œ173.35.157.202ā€ dyno=web.1 connect=1ms service=7ms status=404 bytes=502 protocol=https

2019-01-07T00:19:02.971948+00:00 heroku[router]: at=info method=GET path="/cookie-success" host=echo-speaks-cujrsehiu.herokuapp.com request_id=6b385fcb-e419-44ce-b144-35a2230380bf fwd=ā€œ173.35.157.202ā€ dyno=web.1 connect=1ms service=7ms status=200 bytes=1220 protocol=https


(Anthony S.) #1899

no i mean the smartapp logs under the IDEā€¦


(Brooke) #1900

c03b4b47-68d6-46c4-b8cb-48403086487c 7:26:12 PM: debug appUpdateNotify() | on: (true) | appUpd: (false) | actUpd: (false) | grpUpd: (false) | echoDevUpd: (false) | servUpd: (false) | getLastUpdMsgSec: 100000 | state?.updNotifyWaitVal: 7200

c03b4b47-68d6-46c4-b8cb-48403086487c 7:26:12 PM: debug missPollNotify() | on: (true) | wait: (3600) | getLastDevicePollSec: (840) | misPollNotifyWaitVal: (900) | getLastMisPollMsgSec: (100000)

c03b4b47-68d6-46c4-b8cb-48403086487c 7:26:12 PM: debug getOk2Notify() | smsOk: false | pushOk: true | pushOver: false || daysOk: true | timeOk: true | modesOk: true

c03b4b47-68d6-46c4-b8cb-48403086487c 7:25:43 PM: debug sendMsg: Sent Push Message (Echo Speaks Amazon Login Issue: Amazon Cookie Has Expired or is Missing!!! Please login again using the Heroku Web Config pageā€¦)

c03b4b47-68d6-46c4-b8cb-48403086487c 7:25:43 PM: debug getOk2Notify() | smsOk: false | pushOk: true | pushOver: false || daysOk: true | timeOk: true | modesOk: true

c03b4b47-68d6-46c4-b8cb-48403086487c 7:25:43 PM: trace sendMsg() | msgTitle: Echo Speaks Amazon Login Issue, msg: Amazon Cookie Has Expired or is Missing!!! Please login again using the Heroku Web Config pageā€¦, showEvt: true

c03b4b47-68d6-46c4-b8cb-48403086487c 7:25:43 PM: warn Amazon Cookie Has Expired or is Missing!!! Please login again using the Heroku Web Config pageā€¦

c03b4b47-68d6-46c4-b8cb-48403086487c 7:25:43 PM: warn Cookie Data has been cleared and Device Data Refreshes have been suspendedā€¦

c03b4b47-68d6-46c4-b8cb-48403086487c 7:25:43 PM: trace clearCookieData()

c03b4b47-68d6-46c4-b8cb-48403086487c 7:25:43 PM: trace clearCookieData()

c03b4b47-68d6-46c4-b8cb-48403086487c 7:25:43 PM: warn Echo Speaks Authentication is no longer validā€¦ Please login again and commands will be allowed again!!! | Method: (getEchoDevices)

c03b4b47-68d6-46c4-b8cb-48403086487c 7:25:31 PM: trace serverVersion Received: 2.1.1

c03b4b47-68d6-46c4-b8cb-48403086487c 7:25:31 PM: info Cookie Data has been Updatedā€¦ Re-Initializing SmartApp and to restart polling in 10 secondsā€¦

c03b4b47-68d6-46c4-b8cb-48403086487c 7:25:31 PM: trace storeCookieData Request Receivedā€¦

c03b4b47-68d6-46c4-b8cb-48403086487c 7:25:24 PM: trace serverVersion Received: 2.1.1

c03b4b47-68d6-46c4-b8cb-48403086487c 7:25:24 PM: trace getCookieData() Request Receivedā€¦

c03b4b47-68d6-46c4-b8cb-48403086487c 7:25:24 PM: warn Cookie Data has been cleared and Device Data Refreshes have been suspendedā€¦

c03b4b47-68d6-46c4-b8cb-48403086487c 7:25:24 PM: trace clearCookieData()

c03b4b47-68d6-46c4-b8cb-48403086487c 7:25:24 PM: trace getCookieData() Request Receivedā€¦

c03b4b47-68d6-46c4-b8cb-48403086487c 7:25:24 PM: trace serverVersion Received: 2.1.1

c03b4b47-68d6-46c4-b8cb-48403086487c 7:25:24 PM: trace getCookieData() Request Receivedā€¦

c03b4b47-68d6-46c4-b8cb-48403086487c 7:21:39 PM: debug appUpdateNotify() | on: (true) | appUpd: (false) | actUpd: (false) | grpUpd: (false) | echoDevUpd: (false) | servUpd: (false) | getLastUpdMsgSec: 100000 | state?.updNotifyWaitVal: 7200

c03b4b47-68d6-46c4-b8cb-48403086487c 7:21:39 PM: debug missPollNotify() | on: (true) | wait: (3600) | getLastDevicePollSec: (840) | misPollNotifyWaitVal: (900) | getLastMisPollMsgSec: (100000)

c03b4b47-68d6-46c4-b8cb-48403086487c 7:21:39 PM: debug getOk2Notify() | smsOk: false | pushOk: true | pushOver: false || daysOk: true | timeOk: true | modesOk: true

c03b4b47-68d6-46c4-b8cb-48403086487c 7:21:39 PM: debug appUpdateNotify() | on: (true) | appUpd: (false) | actUpd: (false) | grpUpd: (false) | echoDevUpd: (false) | servUpd: (false) | getLastUpdMsgSec: 100000 | state?.updNotifyWaitVal: 7200

c03b4b47-68d6-46c4-b8cb-48403086487c 7:21:39 PM: debug missPollNotify() | on: (true) | wait: (3600) | getLastDevicePollSec: (840) | misPollNotifyWaitVal: (900) | getLastMisPollMsgSec: (100000)

c03b4b47-68d6-46c4-b8cb-48403086487c 7:21:39 PM: debug getOk2Notify() | smsOk: false | pushOk: true | pushOver: false || daysOk: true | timeOk: true | modesOk: true

c03b4b47-68d6-46c4-b8cb-48403086487c 7:19:15 PM: debug sendMsg: Sent Push Message (Echo Speaks Amazon Login Issue: Amazon Cookie Has Expired or is Missing!!! Please login again using the Heroku Web Config pageā€¦)

c03b4b47-68d6-46c4-b8cb-48403086487c 7:19:15 PM: debug getOk2Notify() | smsOk: false | pushOk: true | pushOver: false || daysOk: true | timeOk: true | modesOk: true

c03b4b47-68d6-46c4-b8cb-48403086487c 7:19:15 PM: trace sendMsg() | msgTitle: Echo Speaks Amazon Login Issue, msg: Amazon Cookie Has Expired or is Missing!!! Please login again using the Heroku Web Config pageā€¦, showEvt: true

c03b4b47-68d6-46c4-b8cb-48403086487c 7:19:15 PM: warn Amazon Cookie Has Expired or is Missing!!! Please login again using the Heroku Web Config pageā€¦

c03b4b47-68d6-46c4-b8cb-48403086487c 7:19:15 PM: warn Cookie Data has been cleared and Device Data Refreshes have been suspendedā€¦

c03b4b47-68d6-46c4-b8cb-48403086487c 7:19:15 PM: trace clearCookieData()

c03b4b47-68d6-46c4-b8cb-48403086487c 7:19:15 PM: warn Echo Speaks Authentication is no longer validā€¦ Please login again and commands will be allowed again!!! | Method: (getEchoDevices)

c03b4b47-68d6-46c4-b8cb-48403086487c 7:19:04 PM: trace serverVersion Received: 2.1.1

c03b4b47-68d6-46c4-b8cb-48403086487c 7:19:04 PM: info Cookie Data has been Updatedā€¦ Re-Initializing SmartApp and to restart polling in 10 secondsā€¦

c03b4b47-68d6-46c4-b8cb-48403086487c 7:19:04 PM: trace storeCookieData Request Receivedā€¦

c03b4b47-68d6-46c4-b8cb-48403086487c 7:19:04 PM: info Cookie Data has been Updatedā€¦ Re-Initializing SmartApp and to restart polling in 10 secondsā€¦

c03b4b47-68d6-46c4-b8cb-48403086487c 7:19:04 PM: trace storeCookieData Request Receivedā€¦

c03b4b47-68d6-46c4-b8cb-48403086487c 7:18:58 PM: warn Cookie Data has been cleared and Device Data Refreshes have been suspendedā€¦

c03b4b47-68d6-46c4-b8cb-48403086487c 7:18:58 PM: trace clearCookieData()

c03b4b47-68d6-46c4-b8cb-48403086487c 7:18:58 PM: trace serverVersion Received: 2.1.1

c03b4b47-68d6-46c4-b8cb-48403086487c 7:18:57 PM: trace getCookieData() Request Receivedā€¦

c03b4b47-68d6-46c4-b8cb-48403086487c 7:18:57 PM: trace serverVersion Received: 2.1.1

c03b4b47-68d6-46c4-b8cb-48403086487c 7:18:57 PM: trace getCookieData() Request Receivedā€¦

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:50 PM: debug sendMsg: Sent Push Message (Echo Speaks Amazon Login Issue: Amazon Cookie Has Expired or is Missing!!! Please login again using the Heroku Web Config pageā€¦)

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:50 PM: debug getOk2Notify() | smsOk: false | pushOk: true | pushOver: false || daysOk: true | timeOk: true | modesOk: true

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:50 PM: trace sendMsg() | msgTitle: Echo Speaks Amazon Login Issue, msg: Amazon Cookie Has Expired or is Missing!!! Please login again using the Heroku Web Config pageā€¦, showEvt: true

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:50 PM: warn Amazon Cookie Has Expired or is Missing!!! Please login again using the Heroku Web Config pageā€¦

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:50 PM: warn Cookie Data has been cleared and Device Data Refreshes have been suspendedā€¦

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:50 PM: trace clearCookieData()

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:50 PM: trace clearCookieData()

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:50 PM: warn Echo Speaks Authentication is no longer validā€¦ Please login again and commands will be allowed again!!! | Method: (getEchoDevices)

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:50 PM: debug Updated with settings: [broadcastVolume:30, resetService:false, optOutMetrics:false, pushoverEnabled:false, useHeroku:true, broadcastParallel:true, appDebug:true, refreshSeconds:60, autoCreateDevices:true, createTablets:false, broadcastMessage:This is a test of the Echo speaks broadcast system!!!, resetCookies:false, sendAppUpdateMsg:true, refreshCookie:false, createOtherDevices:false, appTrace:false, regionLocale:en-US, createWHA:true, sendMissedPollMsg:true, stHub:SmartThings Hub, amazonDomain:amazon.com, usePush:true, autoRenameDevices:true]

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:41 PM: info Cookie Data has been Updatedā€¦ Re-Initializing SmartApp and to restart polling in 10 secondsā€¦

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:41 PM: trace storeCookieData Request Receivedā€¦

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:41 PM: trace serverVersion Received: 2.1.1

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:38 PM: debug appUpdateNotify() | on: (true) | appUpd: (false) | actUpd: (false) | grpUpd: (false) | echoDevUpd: (false) | servUpd: (false) | getLastUpdMsgSec: 100000 | state?.updNotifyWaitVal: 7200

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:38 PM: debug missPollNotify() | on: (true) | wait: (3600) | getLastDevicePollSec: (840) | misPollNotifyWaitVal: (900) | getLastMisPollMsgSec: (100000)

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:38 PM: debug getOk2Notify() | smsOk: false | pushOk: true | pushOver: false || daysOk: true | timeOk: true | modesOk: true

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:38 PM: debug appUpdateNotify() | on: (true) | appUpd: (false) | actUpd: (false) | grpUpd: (false) | echoDevUpd: (false) | servUpd: (false) | getLastUpdMsgSec: 100000 | state?.updNotifyWaitVal: 7200

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:38 PM: debug missPollNotify() | on: (true) | wait: (3600) | getLastDevicePollSec: (840) | misPollNotifyWaitVal: (900) | getLastMisPollMsgSec: (100000)

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:38 PM: debug getOk2Notify() | smsOk: false | pushOk: true | pushOver: false || daysOk: true | timeOk: true | modesOk: true

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:37 PM: trace getCookieData() Request Receivedā€¦

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:37 PM: trace getCookieData() Request Receivedā€¦

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:37 PM: trace serverVersion Received: 2.1.1

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:36 PM: warn Cookie Data has been cleared and Device Data Refreshes have been suspendedā€¦

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:36 PM: trace clearCookieData()

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:36 PM: trace getCookieData() Request Receivedā€¦

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:36 PM: trace clearCookieData()

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:36 PM: trace serverVersion Received: 2.1.1

c03b4b47-68d6-46c4-b8cb-48403086487c 7:16:36 PM: trace serverVersion Received: 2.1.1

c03b4b47-68d6-46c4-b8cb-48403086487c 7:15:48 PM: warn Echo Speaks Authentication is no longer validā€¦ Please login again and commands will be allowed again!!! | Method: (getEchoDevices)

c03b4b47-68d6-46c4-b8cb-48403086487c 7:15:48 PM: debug Updated with settings: [broadcastVolume:30, resetService:false, optOutMetrics:false, pushoverEnabled:false, useHeroku:true, broadcastParallel:true, appDebug:true, refreshSeconds:60, autoCreateDevices:true, createTablets:false, broadcastMessage:This is a test of the Echo speaks broadcast system!!!, resetCookies:false, sendAppUpdateMsg:true, refreshCookie:false, createOtherDevices:false, appTrace:false, regionLocale:en-US, createWHA:true, sendMissedPollMsg:true, stHub:SmartThings Hub, amazonDomain:amazon.com, usePush:true, autoRenameDevices:true]


(David) #1901

Send me a receipt and an e-mail address. If it will make you go away Iā€™ll personally refund your donation.


(JIm) #1902

image

Mine still isnā€™t working. I never get this image, where is it at? Iā€™m wondering if my Alexa login is not getting done. I never get asked for it.


(ocpd+adhd+alz+md+hfa+fms+lol=me :)) #1903

OMG, so true. Sorry, man.

Now, one more thingā€¦


#1904

Ok, I might be late to the party, but I have a couple questions.

The new version notifications show a new version, like normal, but now it shows a heroku version. Does we have to do something new to update of is the notification just different?

I went to look at the docs and its on the new site. Looks nice. Anyway, I now see an install method of GitHub integration. Is there an integration with GitHub now? I opened the link but it looks like the same install and I do not see any integration. I just want to be sure before I upgrade. I know things like webcore ARE integrated in GitHub, which makes it super easy to update, but I did not see it for Echo Speaks.

Thanks!


(Anthony S.) #1905

https://tonesto7.github.io/echo-speaks-docs/#/docs/updates/serverUpdate


(Jarrett Campbell) #1906

Like others, I was having problems getting the new updates to work. I ended up punting, uninstalling, and re-installing the SmartApp and Server completely and now have this working again from WebCoRE commands (However, note, the Broadcasts test page still does not work for me).

I just wanted to point out that when redeploying the Heroku server I ran into a situation where one of the configVars was not defined. The regionLocale setting was left blank and is a required field. I went into the github code and discovered the correct setting should be ā€œen-USā€ and added this in, and the server seemed to deploy properly and my system is working via WebCoRE commands.

Just wanted to note that issue for @tonesto7 and any other users it might impact. Also, I see that the Brodcasts test message is ā€œexperimental.ā€ Should I expect that to be working properly or do I have an issue with my install?


(Anthony S.) #1907

the only scenario where i see this happening is if a version lower than 2.1.1 of the smartapp was used to deploy the server


(Jarrett Campbell) #1908

Yes, I think I must have deployed it with 2.1.0 and then later upgraded to 2.1.1. Should I redeploy the server again now with 2.1.1 @tonesto7


(Anthony S.) #1909

yes the new server creates a refreshable cookie


#1910

Please keep your 2 cents to yourself, whatā€™s this, America First for IoT? :wink:

Just kidding, but we really appreciate Tonestoā€™s efforts to deploy his wonderful work for us Italians as well.


#1911

Thanks.

What about the Github integration? Does it exist or is it just a mention in the documentation?


(Anthony S.) #1912

All of my app support the github integrationā€¦ Just add my repo to the IDE

tonesto7
master
echo-speaks

Iā€™m going to update the documentation right now with better details


#1913

I just tried to upgrade. I put in the smartapp code and published fine. I then tried to do the handler and this is the error I get when I click save:

groovy.lang.MissingMethodException: No signature of method: script_app_metadata_fd5ba9eb_c7f9_4746_8985_6245f5be3b0e.metadata() is applicable for argument types: (script_app_metadata_fd5ba9eb_c7f9_4746_8985_6245f5be3b0e$_run_closure1) values: [script_app_metadata_fd5ba9eb_c7f9_4746_8985_6245f5be3b0e$_run_closure1@6fc6c2c8]
Possible solutions: getMetadata(), getState(), setState(java.lang.Object), metaClass(groovy.lang.Closure) @line 20 (run)


(Tony Fleisher) #1914

This should be added to the docs


(Ron Talley) #1915

This isnā€™t found in the Wiki, or at least that I could see. Was looking for the same information recently. Maybe add it to the first post here?


(Anthony S.) #1916

yeah I noticed :slight_smile:

Working on that now