# Configuration of Somfy Tahoma Consumer Key & Secret

**URL:** <https://discourse.nodered.org/t/configuration-of-somfy-tahoma-consumer-key-secret/31436>\
**Category:** Developing Nodes\
**Created:** [11 August 2020 16:21 UTC](https://discourse.nodered.org/t/configuration-of-somfy-tahoma-consumer-key-secret/31436 "2020-08-11T16:21:00Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaerc](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@jaerc](https://discourse.nodered.org/u/jaerc)\
**Post date:** [11 August 2020 16:21 UTC](https://discourse.nodered.org/t/configuration-of-somfy-tahoma-consumer-key-secret/31436/1 "2020-08-11T16:21:00Z")

</div>

Hi there,

I'm totaly new to Node-RED and did try to create an interface to Somfy Tahoma.

1. I did install the node-red-contrib-tahoma with this documentation: [https://flows.nodered.org/node/node-red-contrib-tahoma](https://flows.nodered.org/node/node-red-contrib-tahoma)
2. For the Configuration I did follow this link:  
[https://github.com/nikkow/node-red-contrib-tahoma/wiki/How-to-create-an-Somfy-Open-API-app%3F](https://github.com/nikkow/node-red-contrib-tahoma/wiki/How-to-create-an-Somfy-Open-API-app%3F)

I do not understand point 5: "Copy and paste the **Consumer Key** and **Consumer Secret** information to your node-red installation" where do I have to copy/paste the Consumer Key and Secret in Node Red?

Meanwhile I did open Node "Tahoma Readable Element" and in the Properties section i did create a Name called Node-RED and past the API Key and API Secret. If I press the Link Node-Red to Tahoma button I can enter my Tahoma E-mail adress and password and after login I got the error message. _An error occured, try again. If this issue happens again please contact technical support._

In the Node Red Debug of the tahoma node I got the issue "error: Property "servicekey" is required.

Any ideas?  
Chris

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [11 August 2020 20:35 UTC](https://discourse.nodered.org/t/configuration-of-somfy-tahoma-consumer-key-secret/31436/2 "2020-08-11T20:35:10Z")

</div>

Welcome to the forum.

If you configured the application on the somfy website correctly (the callback url needs to match), then in node-red paste the details, then deploy first and after that try to link it. If that doesnt work, it would perhaps be better to create an issue on github.

I used this node for a while, but once the developer switched over to the oauth2 method (which is the correct way of dealing with the API) I started having issues with the keys expiring every day (there is still an open issue on github about this). In the end I switched (back) to the homebridge plugin, which works without any issues.

---

<div class="post-metadata">

**Author:** ![jaerc](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@jaerc](https://discourse.nodered.org/u/jaerc)\
**Post date:** [12 August 2020 06:11 UTC](https://discourse.nodered.org/t/configuration-of-somfy-tahoma-consumer-key-secret/31436/3 "2020-08-12T06:11:58Z")

</div>

Can I test the callback url ? In my case it is [http://myserverurl:1880/somfy/callback](http://myserverurl:1880/somfy/callback)  
If I enter this url into a browser from the internet a blank white page appears.

What exactly do you mean by "in node-red paste the details"? can you please explain step by step what you did?

If I try to deploy the configured tahoma read node I get the error message "  
The workspace contains some nodes that are not configured properly:"

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [12 August 2020 15:52 UTC](https://discourse.nodered.org/t/configuration-of-somfy-tahoma-consumer-key-secret/31436/4 "2020-08-12T15:52:21Z")

</div>

- Give it a name.
- Paste in your details: API key and secret
- deploy
- doubleclick the node again
- click the "link node-red to tahoma"

This will open a popup, login, click authorize.  
If this works, the node will work (for now).

 ![Screenshot 2020-08-12 at 17.50.20](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/6/7618f7184d1cebf2caca44a2574c9abca0749b82.jpeg)

---

<div class="post-metadata">

**Author:** ![jaerc](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@jaerc](https://discourse.nodered.org/u/jaerc)\
**Post date:** [12 August 2020 17:06 UTC](https://discourse.nodered.org/t/configuration-of-somfy-tahoma-consumer-key-secret/31436/5 "2020-08-12T17:06:02Z")

</div>

Thanks , that is what I did before.

Do you also get an error message while deploying called "  
The workspace contains some nodes that are not configured properly:" ?

If I try the link node red to tahoma button I get another error message: An error has occurred  
Please try again. If the problem persists, please contact our technical support team.

I can login with my tahoma credentials but I'm getting this error message next.

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [12 August 2020 17:13 UTC](https://discourse.nodered.org/t/configuration-of-somfy-tahoma-consumer-key-secret/31436/6 "2020-08-12T17:13:41Z")

</div>

Apperently the developer has changed some things (i havent used it for a while as it doesn't work reliable for me)

Enter your api key + secret and click the link button

 ![Screenshot 2020-08-12 at 19.09.14](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/3/b/3b5c39659fa6e9e09080385f78eb4e6cb5a778ee.jpeg)

Click yes, and the key+secret field will change,  
click update  
click ok  
click deploy  
doubleclick the node again, you will see the devices:

 ![Screenshot 2020-08-12 at 19.12.12](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/5/75b9e2fe651cc68a1bdd5bf78af4f1e71db25b57.jpeg)

---

<div class="post-metadata">

**Author:** ![jaerc](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@jaerc](https://discourse.nodered.org/u/jaerc)\
**Post date:** [12 August 2020 19:36 UTC](https://discourse.nodered.org/t/configuration-of-somfy-tahoma-consumer-key-secret/31436/7 "2020-08-12T19:36:06Z")

</div>

As soon as I click the Link Node Red to Tahoma button, After successfull login with my Tahoma credentials I'm getting the error message: An error has occurred  
Please try again. If the problem persists, please contact our technical support team.

When I try to open the given link in the Tahoma browser window "[http://myserverurl:1880/somfy/callback&state=setup&grant\_type=authorization\_code](http://myserverurl:1880/somfy/callback&state=setup&grant_type=authorization_code)" in a dedicated browser window, then this error appears:  
Cannot GET /somfy/callback&state=setup&grant\_type=authorization\_code

---

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [12 August 2020 20:37 UTC](https://discourse.nodered.org/t/configuration-of-somfy-tahoma-consumer-key-secret/31436/8 "2020-08-12T20:37:54Z")

</div>

Did you try a different browser ? And no that link will not work in your browser, it is a callback.

---

<div class="post-metadata">

**Author:** ![jaerc](https://avatars.discourse-cdn.com/v4/letter/j/fbc32d/32.png) [@jaerc](https://discourse.nodered.org/u/jaerc)\
**Post date:** [12 August 2020 21:04 UTC](https://discourse.nodered.org/t/configuration-of-somfy-tahoma-consumer-key-secret/31436/9 "2020-08-12T21:04:39Z")

</div>

I got the same issue with Edge and Firefox too.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [11 October 2020 21:04 UTC](https://discourse.nodered.org/t/configuration-of-somfy-tahoma-consumer-key-secret/31436/10 "2020-10-11T21:04:46Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
