Re: Telldus Live in Amazon Alexa
Posted: Fri Mar 17, 2023 9:45 am
Hi,
A button was there I think and it went off a login page?
Cheers
A button was there I think and it went off a login page?
Cheers
A little text to describe your forum
https://forum.telldus.com/
Code: Select all
1. Download the files provided by kimlood at https://github.com/kimlood/alexa-home-telldus
2. Go to https://api.telldus.com/keys/index and generate a private token for my users only
3. Insert the keys and tokens in global.groovy file
4. Open cmd and navigate to alexa-home-telldus-master folder
5. Run command gradlew uberjar to build the .jar file. Will be located in the build/lib folder.
6. Go to https://developer.amazon.com/ and hit Alexa -> get started -> Add a new skill
7. Chose “Smart home skill api” and name your skill. Hit next.
8. Go back to skill information to get your Application ID, starts with amzn1.ask…
9. Go to https://console.aws.amazon.com to create the lambda function
10. Search for lambda
11. Hit create lambda function and use blank function
12. Hit the box and chose Alexa Smart Home, in the box below paste your application ID you got in step 8. Hit Next.
13. Name your function, select “Java 8” in Runtime and upload your .jar file.
14. In Handler type: Telldus::handler, Role: Chose an existing role, and in Existing Role: lambda_basic_execution, hit next and then create function.
15. Note the ARN code in the top right corner and copy it for later.
16. Now head to the the developers console where we started and hit next twice to get to “configuration”.
17. In the Redirect URLs, copy the one that begins with http://pitangui…
18. Head to https://developer.amazon.com/lwa/sp/overview.html to create a security profile.
19. Hit create security profile and name it and type a description. In Consent Privacy Notice URL type http://example.com/privacy.html and hit save.
20. Hit the gear symbol and chose web settings and then edit and type in the http://pitangui... Address u got in step 17 and then save.
21. Go back to General and you should see some security profile ID and client ID etc.
22. Go back to your skill creation, step 17.
23. Check North America if you have an alexa amazon us account and paste your ARN code from your lambda skill.
24. In authorization URL type: https://www.amazon.com/ap/oa
25. For client ID use the string you get from your security profile.
26. Scope, typ profile
27. Access Token URI: Use https://api.amazon.com/auth/o2/token
28. Client Secret: Paste the Client Secret from your security profile.
29. Hit Next and your done.
30. Go to Alexa skill App and enable it under Skills -> Your Skills. Should redirect you to a sign in page.
Hello again, R1kkie.r1kkie wrote:Tried to type down all the steps but I get the same results as you when I try to link the account.
Kimlood, can yoy read through these steps and see if there is something wrong here?
Code: Select all
1. Download the files provided by kimlood at https://github.com/kimlood/alexa-home-telldus 2. Go to https://api.telldus.com/keys/index and generate a private token for my users only 3. Insert the keys and tokens in global.groovy file 4. Open cmd and navigate to alexa-home-telldus-master folder 5. Run command gradlew uberjar to build the .jar file. Will be located in the build/lib folder. 6. Go to https://developer.amazon.com/ and hit Alexa -> get started -> Add a new skill 7. Chose “Smart home skill api” and name your skill. Hit next. 8. Go back to skill information to get your Application ID, starts with amzn1.ask… 9. Go to https://console.aws.amazon.com to create the lambda function 10. Search for lambda 11. Hit create lambda function and use blank function 12. Hit the box and chose Alexa Smart Home, in the box below paste your application ID you got in step 8. Hit Next. 13. Name your function, select “Java 8” in Runtime and upload your .jar file. 14. In Handler type: Telldus::handler, Role: Chose an existing role, and in Existing Role: lambda_basic_execution, hit next and then create function. 15. Note the ARN code in the top right corner and copy it for later. 16. Now head to the the developers console where we started and hit next twice to get to “configuration”. 17. In the Redirect URLs, copy the one that begins with http://pitangui… 18. Head to https://developer.amazon.com/lwa/sp/overview.html to create a security profile. 19. Hit create security profile and name it and type a description. In Consent Privacy Notice URL type http://example.com/privacy.html and hit save. 20. Hit the gear symbol and chose web settings and then edit and type in the http://pitangui... Address u got in step 17 and then save. 21. Go back to General and you should see some security profile ID and client ID etc. 22. Go back to your skill creation, step 17. 23. Check North America if you have an alexa amazon us account and paste your ARN code from your lambda skill. 24. In authorization URL type: https://www.amazon.com/ap/oa 25. For client ID use the string you get from your security profile. 26. Scope, typ Profile 27. Access Token URI: Use https://api.amazon.com/auth/o2/token 28. Client Secret: Paste the Client Secret from your security profile. 29. Hit Next and your done. 30. Go to Alexa skill App and enable it under Skills -> Your Skills. Should redirect you to a sign in page.
Hi Zorban,Zorban wrote:Hi!
thanks for a wonderful Skill!
However I have run into some problems.
I have followed every step in the guide above. And i have tried to redo it once more.
Still getting the unable to link your skill, when I try to activate the skill from the Alexa app.
Anything you can recommend me trying?
I found the error this morning! I had put in Profile instead of profile. Capital P was the problem.kimlood wrote:Hi Zorban,Zorban wrote:Hi!
thanks for a wonderful Skill!
However I have run into some problems.
I have followed every step in the guide above. And i have tried to redo it once more.
Still getting the unable to link your skill, when I try to activate the skill from the Alexa app.
Anything you can recommend me trying?
Usually this is an error with the "Allowed Return URLs" in the security profile. Else it could be the Client Secret.
Please provide us with some more details, can you share some printscreens of your setup?
Hi Renzema, yes the logs states that no devices was found.Renzema wrote:Good evening kimlood,
I think that it is fantastic that you have spent the time creating this integration. It is a shame that you have had to do it and support it and Telldus seems not care about it's user base.
I've spend the last couple of hours working with it, but I have hit a block. I have clearly missed something. The request seems to be coming in from my phone, but no devices are found...
I've attached the logs from Cloudwatch below, but is there somewhere else I should be looking?
https://www.dropbox.com/s/1zt6bc4rtyfud ... 8.png?dl=0
Thanks
Josh
Hi loo_marcus, yes I have missed a qoute. It's fixed and the code is commited to github. So fetch the new package there..loo_marcus wrote:Hi I'm trying to install MagicMirror module but get an error for the package.json file. It seems it can't parse the file. Any ideas?
Code: Select all
START RequestId: f665d847-fbe9-11e6-8e78-11ee2a4b6 Version: $LATEST
INFO: [header:[namespace:Alexa.ConnectedHome.Discovery, name:DiscoverAppliancesRequest, payloadVersion:2, messageId:9732f224-dffb-4c2d-9dc1-bdac45995d28], payload:[accessToken:Atza|IwEBIJ0kZvC4Pst54QOevWTU6yXjciBHtIAxFx9h9qXpswNcp4ecTtoiuqd5_4mOJYoNev9juA9EDUqJDVd1jjRWTfNsMyx2tZ1K35n2qex9d2Gknz5-okT7GvMsXNwG3gcB3qcVVaUWzeKFftvTnVbkV_4D2bWH8v-_ytZP000AH0UN1GyoWZCecAze143UvwdqFn7GDGMBJftEiCAvR0SkA_zKHRyF24X9Qc2TAVB5ZWc7AS4N8T9MQq-bakQbrWO0kEJ5Fg42A7AA2BDPrHg6jGstsvw7PMhKzJnbHcoHIObCe77p1W--7XJXmSLw5-VD6ZdWPMuTU0Z6UtuFg6UDdYs0JhB_pXDcKXimg2ie8uaxrF9-rB7jB2bOv1WPvurmNM0zA4VaV6UgeB_Dy_YQj5mkZIbvwiCzmYbXDbc8brWt_KnTj619l_Jp_rc6v96Zp5RXLMA]]
INFO: Alexa.ConnectedHome.Discovery - Sending response
INFO: getDevicesRequest
INFO: createAndSignRequest url: devices/list Parameters: [supportedMethods:1023]
INFO: createRequest Parms key: supportedMethods and value: 1023
INFO: Device request reply: [header:[namespace:Alexa.ConnectedHome.Discovery, name:DiscoverAppliancesResponse, messageId:dc0132f6-1dff-4a91-998d-0eb8f3ff5c06, payloadVersion:2], payload:[discoveredAppliances:[]]]
END RequestId: f665d847-fbe9-11e6-8e78-11ee2a4b6
REPORT RequestId: f665d847-fbe9-11e6-8e78-11ee2a4b6 Duration: 1859.54 ms Billed Duration: 1900 ms Memory Size: 512 MB Max Memory Used: 64 MB
Hi Redferne,Redferne wrote: Boy, do I feel stupid. I got things built and configured, huge kudos to Kim for the effort!
Now I'm at the point where others have stumbled, Alexa wont find any devices.
The Lambda log shows:Is there any way to find out if the Telldus Keys/Request actually works? I have generated Telldus API keys previously which are working fine,Code: Select all
START RequestId: f665d847-fbe9-11e6-8e78-11ee2a4b6 Version: $LATEST INFO: [header:[namespace:Alexa.ConnectedHome.Discovery, name:DiscoverAppliancesRequest, payloadVersion:2, messageId:9732f224-dffb-4c2d-9dc1-bdac45995d28], payload:[accessToken:Atza|IwEBIJ0kZvC4Pst54QOevWTU6yXjciBHtIAxFx9h9qXpswNcp4ecTtoiuqd5_4mOJYoNev9juA9EDUqJDVd1jjRWTfNsMyx2tZ1K35n2qex9d2Gknz5-okT7GvMsXNwG3gcB3qcVVaUWzeKFftvTnVbkV_4D2bWH8v-_ytZP000AH0UN1GyoWZCecAze143UvwdqFn7GDGMBJftEiCAvR0SkA_zKHRyF24X9Qc2TAVB5ZWc7AS4N8T9MQq-bakQbrWO0kEJ5Fg42A7AA2BDPrHg6jGstsvw7PMhKzJnbHcoHIObCe77p1W--7XJXmSLw5-VD6ZdWPMuTU0Z6UtuFg6UDdYs0JhB_pXDcKXimg2ie8uaxrF9-rB7jB2bOv1WPvurmNM0zA4VaV6UgeB_Dy_YQj5mkZIbvwiCzmYbXDbc8brWt_KnTj619l_Jp_rc6v96Zp5RXLMA]] INFO: Alexa.ConnectedHome.Discovery - Sending response INFO: getDevicesRequest INFO: createAndSignRequest url: devices/list Parameters: [supportedMethods:1023] INFO: createRequest Parms key: supportedMethods and value: 1023 INFO: Device request reply: [header:[namespace:Alexa.ConnectedHome.Discovery, name:DiscoverAppliancesResponse, messageId:dc0132f6-1dff-4a91-998d-0eb8f3ff5c06, payloadVersion:2], payload:[discoveredAppliances:[]]] END RequestId: f665d847-fbe9-11e6-8e78-11ee2a4b6 REPORT RequestId: f665d847-fbe9-11e6-8e78-11ee2a4b6 Duration: 1859.54 ms Billed Duration: 1900 ms Memory Size: 512 MB Max Memory Used: 64 MB
do I new to generate a new set of keys or can I reuse the ones that actually works?
Please help/advice