Hello.
I’m trying to connect my Netatmo devices to a fresh installation of openHAB 4.2.3. Unfortunately I have problems with the process of authorizing the netatmo account bridge.
I followed the steps according to the documentation of the binding:
-
I added an app in the developer portal of netatmo. The app status is “activated”. From the developer portal I get the client id and client secret.
-
I added a “Netatmo account” thing in the web UI of openHab and entered the client id and client secret.
-
As soon as I added this thing the following line is appended to the openHAB log:
2024-12-12 18:39:23.654 [INFO ] [etatmo.internal.servlet.GrantServlet] - Registered Netatmo servlet at '/netatmo/connect/<clientID>'
-
The thing has a configuration error like it is described in the documentation.
-
I opened the page http://localhost:8080/netatmo/connect/ and clicked on the green “Authorize Thing” button. The Netatmo authentication page opened (https://auth.netatmo.com/…) where I was already logged in. On that page I clicked the “Yes, I accept” button.
-
The browser returned to the previous page which looks exactly like before. The URL got expanded with a state and code value
-
The thing still is offline with the configuration error. In the logfile I find the following line:
2024-12-12 18:41:04.531 [WARN ] [etatmo.internal.servlet.GrantServlet] - Registering servlet failed:ServletModel{id=ServletModel-42,name='org.openhab.binding.netatmo.internal.servlet.GrantServlet',alias='/netatmo/connect/<clientID>',urlPatterns=[/netatmo/connect/<clientID>/*],servlet=org.openhab.binding.netatmo.internal.servlet.GrantServlet@3d1dcf17,contexts=[{HS,OCM-39,default,/}]} can't be registered. Context / already contains servlet mapping for alias /netatmo/connect/<clientID>: ServletModel{id=ServletModel-41,name='org.openhab.binding.netatmo.internal.servlet.GrantServlet',alias='/netatmo/connect/<clientID>',urlPatterns=[/netatmo/connect/<clientID>/*],servlet=org.openhab.binding.netatmo.internal.servlet.GrantServlet@36b9317e,contexts=[{HS,OCM-39,default,/}]}
What am I missing or doing wrong?
I encountered the same behaviour using openHAB 4.3M5.
Kind regards
Martin