Telldus Live in Amazon Alexa

Moderator: Telldus

martinoc
Posts: 9
Joined: Fri Mar 17, 2023 9:45 am

Re: Telldus Live in Amazon Alexa

Post by martinoc »

Hi,

A button was there I think and it went off a login page?

Cheers
r1kkie
Posts: 19
Joined: Fri Mar 17, 2023 9:45 am

Re: Telldus Live in Amazon Alexa

Post by r1kkie »

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.
Last edited by r1kkie on Sun Jan 08, 2017 5:29 pm, edited 1 time in total.
Dingboy
Posts: 12
Joined: Fri Mar 17, 2023 9:45 am

Re: Telldus Live in Amazon Alexa

Post by Dingboy »

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.
Hello again, R1kkie.

I can't even start to thank you enough for this "manual". It's exactly what i needed!!! It was in your step 26 where I had incorectly writted my "Security Profile ID" instead of just wrtiting the word profile. I need to do some more testing, and to rename my Telldus switches from Norwegian to English. I however think it's up and running now.

Big thanks to both R1kkie, Martinoc, Kane and of course Kimlood. Your help here has been absolutely fantastic. I'm so grateful :-)
Zorban
Posts: 2
Joined: Fri Mar 17, 2023 9:45 am

Re: Telldus Live in Amazon Alexa

Post by Zorban »

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?
kimlood
Posts: 43
Joined: Fri Mar 17, 2023 9:45 am

Re: Telldus Live in Amazon Alexa

Post by kimlood »

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?
Hi Zorban,
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?
Zorban
Posts: 2
Joined: Fri Mar 17, 2023 9:45 am

Re: Telldus Live in Amazon Alexa

Post by Zorban »

kimlood wrote:
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?
Hi Zorban,
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?
I found the error this morning! I had put in Profile instead of profile. Capital P was the problem. :)
Works like a charm right now.
Renzema
Posts: 3
Joined: Fri Mar 17, 2023 9:45 am

Re: Telldus Live in Amazon Alexa

Post by Renzema »

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
kimlood
Posts: 43
Joined: Fri Mar 17, 2023 9:45 am

Re: Telldus Live in Amazon Alexa

Post by kimlood »

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 Renzema, yes the logs states that no devices was found.
Did you update the Global.groovy with your keys? If so, can you provide the device/list from the api.telldus.com
Furthermore, can you provide all the settings from your Alexa skill?
loo_marcus
Posts: 1
Joined: Fri Mar 17, 2023 9:45 am

Re: Telldus Live in Amazon Alexa

Post by loo_marcus »

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?
kimlood
Posts: 43
Joined: Fri Mar 17, 2023 9:45 am

Re: Telldus Live in Amazon Alexa

Post by kimlood »

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?
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..
intergalactic1
Posts: 4
Joined: Fri Mar 17, 2023 9:45 am

Re: Telldus Live in Amazon Alexa

Post by intergalactic1 »

Hi everyone,

Thanks so much! Because of all the advice here my lights are now voice controlled via Alexa!

Big thanks to Kimlood and R1kkie for taking the time to write the code and formulate the list.

One thing that I had to do slightly differently was to use the https://layla.amazon.com URL instead of the https://pitangui.amazon.com/ URL at step 20 in R1kkie's list - unsure of why this was different in m y setup (maybe as I set EU-WEST within AWS and ticked the European box at step23?)
Redferne
Posts: 3
Joined: Fri Mar 17, 2023 9:45 am

Re: Telldus Live in Amazon Alexa

Post by Redferne »

:oops: 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:

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	
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,
do I new to generate a new set of keys or can I reuse the ones that actually works?

Please help/advice
///Redferne
kimlood
Posts: 43
Joined: Fri Mar 17, 2023 9:45 am

Re: Telldus Live in Amazon Alexa

Post by kimlood »

Redferne wrote::oops: 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:

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	
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,
do I new to generate a new set of keys or can I reuse the ones that actually works?

Please help/advice
Hi Redferne,
The easiest way to verify the keys is to change the telldus handler in the main method of the Telldus.groovy.
The run the main method with java.

But send me and email and I will help you.
Redferne
Posts: 3
Joined: Fri Mar 17, 2023 9:45 am

Re: Telldus Live in Amazon Alexa

Post by Redferne »

:oops: My bad. I had scramled the Telldus keys. This works beautifully and the code is easy enough to understand and tinker with. Thanks for your contribution to mankind Mr. Lood!
///Redferne
LiTtLe_DeE
Posts: 4
Joined: Fri Mar 17, 2023 9:45 am

Re: Telldus Live in Amazon Alexa

Post by LiTtLe_DeE »

Hi thank you for creating this great skill, I would love to use this but I'm afraid I've got stuck right at the start. Tried to compile the .jar file from cd prompt as per the instrctions & received the following error.

Global.groovy: 3: expecting '}', found "static" @ line 3, column 65

-----static string


I got the following four keys from telldus live, 1. a Public key, 2. Private key, 3. Token & 4. Token secret. no "static String secretkey" Can someone tell me how to get the "static String secretkey" for the global groovy file"?

Tia
Post Reply