Hi Ondrej,
Thanks for trying to debug. I have :
- Tahoma box
- OH 2.4
- somfytahoma-2.5.0
The logfiles say nothing more than stated above.
openhab.log says:
[ERROR] [nal.handler.SomfyTahomaBridgeHandler] - Received error code: 400
Thanks!
Bart
Hi Ondrej,
Thanks for trying to debug. I have :
The logfiles say nothing more than stated above.
openhab.log says:
[ERROR] [nal.handler.SomfyTahomaBridgeHandler] - Received error code: 400
Thanks!
Bart
Thanks.
Most probably something is happening every 5 minutes when the thing’s statuses should be updated.
Unless you enable debug (or better trace) I cannot figure out the cause of problem
Ondrej
How do I enable debug?
log:set DEBUG org.openhab.binding.somfytahoma?
the best might be:
log:set trace org.openhab.binding.somfytahoma.internal.handler.SomfyTahomaBridgeHandler
log:set trace org.openhab.binding.somfytahoma.internal.handler.SomfyTahomaBaseThingHandler
I have a refresh interval of 30 seconds. So the logfile states every 30 second:
2019-12-09 20:19:40.416 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Getting Tahoma Updates...
2019-12-09 20:19:40.421 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Sending POST to Tahoma to url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/events/xx172217-x9x6-8679-1304-8590058xxxx2/fetch
2019-12-09 20:19:40.513 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Response: []
2019-12-09 20:19:40.520 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Got total of 0 events
2019-12-09 20:20:10.525 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Getting Tahoma Updates...
2019-12-09 20:20:10.528 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Sending POST to Tahoma to url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/events/xx172217-x9x6-8679-1304-8590058xxxx2/fetch
2019-12-09 20:20:10.610 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Response: []
2019-12-09 20:20:10.612 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Got total of 0 events
Then when it fails, it logs this
2019-12-09 20:20:48.003 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Sending GET to Tahoma to url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/setup
2019-12-09 20:20:48.145 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Response: {“creationTime” (much more data)}2019-12-09 20:20:48.213 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Sending GET to Tahoma to url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/actionGroups
2019-12-09 20:20:48.235 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Response:
2019-12-09 20:21:07.746 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Refreshing Tahoma states…
2019-12-09 20:21:07.750 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Sending PUT to Tahoma to url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/setup/devices/states/refresh
2019-12-09 20:21:07.851 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Response: {}
2019-12-09 20:21:07.855 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Sending GET to Tahoma to url: https://www.tahomalink.com/enduser-mobile-web/externalAPI/json/refreshAllStates
2019-12-09 20:21:07.883 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Response:
Overkiz - ErrorBad request
Mon Dec 09 20:21:07 CET 2019
2019-12-09 20:21:07.889 [ERROR] [nal.handler.SomfyTahomaBridgeHandler] - Received error code: 400
2019-12-09 20:21:07.892 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Cannot refresh device states!
org.openhab.binding.somfytahoma.internal.SomfyTahomaException: Received error code: 400
at org.openhab.binding.somfytahoma.internal.handler.SomfyTahomaBridgeHandler.sendMethodToTahomaWithCookie(SomfyTahomaBridgeHandler.java:573) ~[?:?]
at org.openhab.binding.somfytahoma.internal.handler.SomfyTahomaBridgeHandler.sendMethodToTahomaWithCookie(SomfyTahomaBridgeHandler.java:557) ~[?:?]
at org.openhab.binding.somfytahoma.internal.handler.SomfyTahomaBridgeHandler.sendGetToTahomaWithCookie(SomfyTahomaBridgeHandler.java:541) ~[?:?]
at org.openhab.binding.somfytahoma.internal.handler.SomfyTahomaBridgeHandler.refreshDeviceStates(SomfyTahomaBridgeHandler.java:796) ~[?:?]
at org.openhab.binding.somfytahoma.internal.handler.SomfyTahomaBridgeHandler.refreshTahomaStates(SomfyTahomaBridgeHandler.java:511) ~[?:?]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) [?:?]
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) [?:?]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
at java.lang.Thread.run(Thread.java:748) [?:?]
Thanks. Now it is obvious:
the request
https://www.tahomalink.com/enduser-mobile-web/externalAPI/json/refreshAllStates
is from the old version of Tahoma binding.
So either you are running both versions or there are some remains of the old binding in the OH2 cache.
Could you please check that you are running only the latest V2 binding and clear the caches?
(Clear the Cache)
thanks.
Ondrej
Clearing the cache did it for me. Thanks!
i am running 2.4 of openhab on windows machine
How do i update the somfy binding?
how do i change the MANIFEST.MF file in META-INF dir in the provided jar?
Do i extract this jar file?
But in the mean while it is working !!! YES!
Dear Ondrej, thank you for your very fast support! I’m running:
OH 2.4 on Docker (qnap)
downloaded your new .jar file into addons directory (nothing happend)
Now I’ve seen your hint about “com.google.gson”…seems to be mandatory, right?
Could you please share a explanation of about what exactly I have to do? Would be great!
Thank you, Andreas
Use for example Total Commander to
Dear Ondej,
YES! This did it. I did not realize, there are subfolders since I only saw one file in my “normal” file exploer. Thank you very much!
Do you think, Somfy will change their access rules another time, so there is a risk the binding coult become obsolete? Would be a disaster…
Thanks again, Andreas
That is the general risk with all “cloud only” based solutions. There have already been several negative examples recently like Logitech Harmony or Nest.
Dear Ondrej, I still have an issue with the new binding.
I already cleaned up the cache, but still the Bridge is more often offline.
Do you have an idea? Current setup:
ii openhab2 2.4.0-1 all openhab2
ii openhab2-addons 2.4.0-1 all openhab2-addons
bundle:list
53 │ Active │ 80 │ 2.5.0.201908161758 │ openHAB Add-ons :: Bundles :: SomfyTahoma Binding
LogInfo:
https://pastebin.com/Cyk0HmC7
Hi,
unfortunately the log still shows a mixture of the old and the new binding.
Please delete the binding, stop OH2, clean caches, start OH2 and install the new jar into the addons directory.
I hope this helps…
thanks
Ondrej
Hey, I could solve it be deleting all Somfy Bindings, upgrading to Oh2.5, Cleaning the cache and reinstalling the new Somfy Binding. Thanks a lot… no errors till yet.
Openhab 2.5.0
openhab> bundle:list |grep Somfy
289 │ Active │ 80 │ 2.5.0 │ openHAB Add-ons :: Bundles :: SomfyTahoma Binding
Somfy connexoon
Current firmware version: 2019.5.4
Hi all,
I hope people can advise me or point me in the right direction to further investigate my issue.
As I am making my way through Openhab and the Tahoma binding.
The issue started after Somfy updated their app to the new API.
The timers within the app were used, and only when manual intervention was needed I use the Tahoma binding.
Now both timers within the app, and Openhab are struggling with the following what ends up in random functionality.
Binding/shutter are offline.
==========
Too many requests error, suspending activity for 120 seconds
==========**
==========
2019-12-23 08:50:10.669 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Cannot get login cookie!
java.util.concurrent.TimeoutException: Total timeout 5000 ms elapsed
** at org.eclipse.jetty.client.HttpDestination$TimeoutTask.onTimeoutExpired(HttpDestination.java:529) ~[?:?]**
** at org.eclipse.jetty.io.CyclicTimeout$Wakeup.run(CyclicTimeout.java:282) ~[?:?]**
** at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_212]**
** at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_212]**
** at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [?:1.8.0_212]**
** at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [?:1.8.0_212]**
** at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_212]**
** at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_212]**
** at java.lang.Thread.run(Thread.java:748) [?:1.8.0_212] **
==========
As people were speaking about too many requests, the “refresh” and “status time out” was brought back to 300.
As well as the debug logs, as network dump showing in my opinion that I connect every 5 min and still getting the above errors.
Any help from the audience is welcome.
Kind regards.
Aldo
**2019-12-23 09:20:22.371 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Refreshing Tahoma states...**
2019-12-23 09:20:22.372 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Doing relogin
2019-12-23 09:20:22.408 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Getting Tahoma Updates...
2019-12-23 09:20:22.409 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Doing relogin
2019-12-23 09:20:23.187 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Login response: {"success":true,"roles":[{"name":"ENDUSER"}]}
2019-12-23 09:20:23.189 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - SomfyTahoma version:
2019-12-23 09:20:23.190 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Sending POST to Tahoma to url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/events/register with data:
2019-12-23 09:20:23.233 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Response: {"id":"31dxxxxx-d9b6-xxxx-1304-85907c3xxxxx"}
2019-12-23 09:20:23.235 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Events id: 31dxxxxx-d9b6-xxxx-1304-85907c3xxxxx
2019-12-23 09:20:23.244 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Sending GET to Tahoma to url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/setup/gateways/xxxx-7588-xxxx
2019-12-23 09:20:23.285 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Response: {"partners":[{"activated":true,"status":"OWNER","name":"Somfy Netherlands","id":"somfy-nl"}],"functions":"INTERNET_AUTHORIZATION,SCENARIO_DOWNLOAD,SCENARIO_AUTO_LAUNCHING,SCENARIO_TELECO_LAUNCHING,INTERNET_UPLOAD,INTERNET_UPDATE,TRIGGERS_SENSORS","gatewayId":"xxxx-7588-xxxx","subType":3,"alive":true,"mode":"ACTIVE","placeOID":"xxxxxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxxxx","upToDate":true,"updateStatus":"UP_TO_DATE","syncInProgress":false,"timeReliable":true,"connectivity":{"status":"OK","protocolVersion":"2019.5.4"},"type":34}
2019-12-23 09:20:23.287 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Tahoma status: OK
2019-12-23 09:20:23.288 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Tahoma protocol version: 2019.5.4
2019-12-23 09:20:23.289 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Sending PUT to Tahoma to url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/setup/devices/states/refresh
2019-12-23 09:20:23.330 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Too many requests error, suspending activity for 120 seconds
2019-12-23 09:20:23.419 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Response: {}
2019-12-23 09:25:23.331 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Getting Tahoma Updates...
2019-12-23 09:25:23.331 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Doing relogin
2019-12-23 09:25:23.420 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Refreshing Tahoma states...
2019-12-23 09:25:23.422 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Doing relogin
2019-12-23 09:25:24.083 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Login response: {"success":true,"roles":[{"name":"ENDUSER"}]}
2019-12-23 09:25:24.084 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - SomfyTahoma version:
2019-12-23 09:25:24.086 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Sending POST to Tahoma to url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/events/register with data:
2019-12-23 09:25:24.137 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Response: {"id":"xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxx"}
2019-12-23 09:25:24.139 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Events id: xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxx
2019-12-23 09:25:24.144 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Sending GET to Tahoma to url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/setup/gateways/xxxx-7588-xxxx
2019-12-23 09:25:24.186 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Response: {"partners":[{"activated":true,"status":"OWNER","name":"Somfy Netherlands","id":"somfy-nl"}],"functions":"INTERNET_AUTHORIZATION,SCENARIO_DOWNLOAD,SCENARIO_AUTO_LAUNCHING,SCENARIO_TELECO_LAUNCHING,INTERNET_UPLOAD,INTERNET_UPDATE,TRIGGERS_SENSORS","gatewayId":"xxxx-7588-xxxx","subType":3,"alive":true,"mode":"ACTIVE","placeOID":"xxxxxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxxxx","upToDate":true,"updateStatus":"UP_TO_DATE","syncInProgress":false,"timeReliable":true,"connectivity":{"status":"OK","protocolVersion":"2019.5.4"},"type":34}
2019-12-23 09:25:24.188 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Tahoma status: OK
2019-12-23 09:25:24.189 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Tahoma protocol version: 2019.5.4
2019-12-23 09:25:24.191 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Sending POST to Tahoma to url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/events/xxxxxxxx-xxxx-xxxx-xxxxx-xxxxxxxxxxx/fetch with data:
2019-12-23 09:25:24.234 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Too many requests error, suspending activity for 120 seconds
2019-12-23 09:25:24.271 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Response: []
2019-12-23 09:25:24.273 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Got total of 0 events
2019-12-23 09:30:24.235 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Refreshing Tahoma states...
2019-12-23 09:30:24.237 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Doing relogin
2019-12-23 09:30:24.274 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Getting Tahoma Updates...
2019-12-23 09:30:24.276 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Doing relogin
2019-12-23 09:30:25.030 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Login response: {"success":true,"roles":[{"name":"ENDUSER"}]}
2019-12-23 09:30:25.032 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - SomfyTahoma version:
2019-12-23 09:30:25.033 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Sending POST to Tahoma to url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/events/register with data:
2019-12-23 09:30:25.076 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Response: {"id":"xxxxxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxxxxxxxxx"}
2019-12-23 09:30:25.078 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Events id: xxxxxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxxxxxxxxx
2019-12-23 09:30:25.085 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Sending GET to Tahoma to url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/setup/gateways/xxxx-7588-xxxx
2019-12-23 09:30:25.125 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Response: {"partners":[{"activated":true,"status":"OWNER","name":"Somfy Netherlands","id":"somfy-nl"}],"functions":"INTERNET_AUTHORIZATION,SCENARIO_DOWNLOAD,SCENARIO_AUTO_LAUNCHING,SCENARIO_TELECO_LAUNCHING,INTERNET_UPLOAD,INTERNET_UPDATE,TRIGGERS_SENSORS","gatewayId":"xxxx-7588-xxxx","subType":3,"alive":true,"mode":"ACTIVE","placeOID":"xxxxxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxxxx","upToDate":true,"updateStatus":"UP_TO_DATE","syncInProgress":false,"timeReliable":true,"connectivity":{"status":"OK","protocolVersion":"2019.5.4"},"type":34}
2019-12-23 09:30:25.127 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Tahoma status: OK
2019-12-23 09:30:25.128 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Tahoma protocol version: 2019.5.4
2019-12-23 09:30:25.130 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Sending PUT to Tahoma to url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/setup/devices/states/refresh
2019-12-23 09:30:25.171 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Too many requests error, suspending activity for 120 seconds
2019-12-23 09:30:25.267 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Response: {}
2019-12-23 09:35:25.173 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Getting Tahoma Updates...
2019-12-23 09:35:25.175 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Doing relogin
2019-12-23 09:35:25.269 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Refreshing Tahoma states...
2019-12-23 09:35:25.270 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Doing relogin
2019-12-23 09:35:25.389 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Too many requests error, suspending activity for 120 seconds
2019-12-23 09:35:25.390 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Skipping login due to too many requests
2019-12-23 09:40:25.391 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Getting Tahoma Updates...
2019-12-23 09:40:25.392 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Refreshing Tahoma states...
2019-12-23 09:40:25.392 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Doing relogin
2019-12-23 09:40:25.392 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Doing relogin
2019-12-23 09:40:26.382 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Login response: {"success":true,"roles":[{"name":"ENDUSER"}]}
2019-12-23 09:40:26.384 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - SomfyTahoma version:
2019-12-23 09:40:26.385 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Sending POST to Tahoma to url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/events/register with data:
2019-12-23 09:40:26.429 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Response: {"id":"xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx"}
2019-12-23 09:40:26.431 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Events id: xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx
2019-12-23 09:40:26.437 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Sending GET to Tahoma to url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/setup/gateways/xxxx-7588-xxxx
2019-12-23 09:40:26.479 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Response: {"partners":[{"activated":true,"status":"OWNER","name":"Somfy Netherlands","id":"somfy-nl"}],"functions":"INTERNET_AUTHORIZATION,SCENARIO_DOWNLOAD,SCENARIO_AUTO_LAUNCHING,SCENARIO_TELECO_LAUNCHING,INTERNET_UPLOAD,INTERNET_UPDATE,TRIGGERS_SENSORS","gatewayId":"xxxx-7588-xxxx","subType":3,"alive":true,"mode":"ACTIVE","placeOID":"xxxxxxxx-xxxx-xxxxx-xxxx-xxxxxxxxxxxx","upToDate":true,"updateStatus":"UP_TO_DATE","syncInProgress":false,"timeReliable":true,"connectivity":{"status":"OK","protocolVersion":"2019.5.4"},"type":34}
2019-12-23 09:40:26.480 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Tahoma status: OK
2019-12-23 09:40:26.480 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Tahoma protocol version: 2019.5.4
2019-12-23 09:40:26.483 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Sending POST to Tahoma to url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/events/xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx/fetch with data:
2019-12-23 09:40:26.522 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Too many requests error, suspending activity for 120 seconds
2019-12-23 09:40:26.609 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Response: []
2019-12-23 09:40:26.609 [TRACE] [nal.handler.SomfyTahomaBridgeHandler] - Got total of 0 events
Hi,
I see the same issue here. I control about 25 Somfy devices using OH2.5 with the newest binding installed (caches emptied).
The tahoma bridge reports: OFFLINE - COMMUNICATION_ERROR Cannot get login cookie
Refresh time: 30 sec
Status timeout: 300 sec
Best
Hi, thanks for the log.
It seems that some timeout network problem occured which results in two login attempts in a queue and the second one causes the Too Many Requests error.
Can you please try this version and send the log?
https://www.dropbox.com/s/wxbc1zhdzvy8y4s/org.openhab.binding.somfytahoma-2.5.1-SNAPSHOT.jar?dl=1
the only change is an extra check for the bridge status - it does not reattempt to log in, if the status is already ONLINE.
Let’s see if it helps.
Ondrej