Forum

Browse topics, discover Works With Legrand community!

Allways just "Unauthorized"

Hi,

i just want to build an API Call to open my door using 300x13. Simple task, but it seems to be a endless story 🙁

I followed some howtos and also the samples from this website

* Accound creation
* subscribe the api
* create an application
* use the "try it" option in get plant with Autch code

 

But all i receive is a

{   "statusCode": "401",   "message": "Unauthorized" }

How can i simpel open my door by an api call? How do i get my plant id?

 

Best Regards

Manuel

  • This topic was modified 3 weeks, 4 days ago by uzjhhgjkg.
  • This topic was modified 3 weeks, 4 days ago by uzjhhgjkg.

Hello,

In main cases, this error happens when you don't use the correct credentials in the authentication pop-up of the Try-it. So, first check if you use the user mail/password of the end-user account (used in your Legrand/Bticino application)

If credentials are OK, it's possible that your account is a Netatmo end-user/developer one, but not an Eliot account. In this case you must follow this process :

  • go in Home + Control application > menu > My account > Third-party applications
  • at the bottom, you have a link "I can't link a third-party application". Click on it and follow the procedure
  • finally, re-try to use the Try-It function of the GET user's plant method

Also, please note that the SDK allowing to manage doorlock openings is not maintain and not available anymore on Works with Legrand

Have a good day,

Leslie - Community Manager

 

Hi,

As i use a password manager it's secured that fills the credentials into that fields. So i use the same credentials when i login into https://developer.legrand.com/ or into the popup that appears when i use the try it function.

But, what i can see is, that in https://developer.legrand.com/ i have a display name (top right) for this forum and the application section BUT a different display name there is shown when i am in the API Area.But i don't chnage my login while switching between this areas.

I dont use the home & controll. I use Door Entry an my phone.

 

I really just need a very simple api call that i can call from my smarthome system (iobroker) to open the door. And it seems to be very hard to get this simple function working when also the "try it" section is not working in my case.

Hi again,

Indeed, sorry ... I forgot you were talking about C300X. The process I gave you is not useful in this case

But as far as I remember the process to verify if you use the correct account in the "Authorization code" pop-up is the same : Door Entry app menu > My account > your email address at the top

You can verify that you used the correct end-user account (it can be the same as your developer account, they are technically on 2 different databases). You will surely need to empty your cache and cookies in order the pop-up to re-appear

  • Go to the settings of your browser "Parameters"
  • In the menu > Confidentiality & Security > Cookies and other data > Display all cookies and data
  • In the cookies search bar, search for "legrand" and delete all cookies related to the developer portal and its subdomains
  • Go to Homepage (https://developer.legrand.com/), log in again and go to API List page

If it still doesn't work, please send me via the contact form the email address of the end-user account used to access the device in Door Entry app + a screenshot of your Try It interface after making a GET Plants request (https://portal.developer.legrand.com/docs/services/classe-300x13e-v2/operations/Plants/console)

But one more time, you will not able to use the API to manage your C300X lock. Previously we didn't allow it via a simple API call but had a SDK. Now, our developers don't support it anymore and it has been removed. It was mandatory to use it in order to get a JWT ticket allowing next to manage door opening call

Unfortunately, we have to wait for this device to be migrated to Netatmo's infrastructure in order to unlock doors via an API call. And I don't have an availability date for it

Have a good day,

Leslie - Community Manager

Hmm, so i boght a smart door opener system for round about 500 Euro that isn't really smart? I'm not pretty sure if this is, what expected to get for my money.

Can you please tell me, if the netatmo migration of the system is more a nice wish or is it recently in development?

 

BTW: I solved my plan by using a silly 10 Euro Tasmota switch that can be called by several options like http, mqqt a.s.o. and is able to open a door - smart...

Hello,

It still works via Legrand/Bticino Door Entry app, but not anymore for third-parties using our API

The migration to Netatmo's infrastructure is indeed planned : they are now in charge of Legrand/Bticino connected residential solutions and their APIs once ready

Have a good day,

Leslie - Community Manager

Sure, i can use the app. But the app is not able to do any apple automation / IFTTT or can be triggered by an external system. So it does not cover my needs in this case.

Thanks. Is there any kind of newsletter to get informed when the api is available?

As we don't store information about developers using a specific API, we will not do a mailing about this. The best is to stay tuned on Netatmo Connect to know when documentation will be available

Have a good day,

Leslie - Community Manager

Viewing 8 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic.

Information

message7 replies
people2 participants