SomfyTahoma binding

Hi, I’m experiencing problem configuring my Somfy Screens through Openhab. Using the Somfy app, I’m able to control the devices. Hope someone has an idea about what I did wrong.

Hardware raspberry 4
Openhab 4.1.2 running in Docker
Somfy hardware Connectivity kit
Somfy binding version 4.2.1
I’m trying to control 3 screens and 1 awning
I’m using configuration files as opposed to the UI

This is my .things definition

Bridge somfytahoma:bridge:Terras "Somfy Tahoma Bridge" @ "Terras"[ email="************", password="***********", refresh=3600 , statusTimeout=60] {
    Thing gateway 2105-0692-0933 "Tahoma gateway" [ id="2105-0692-0933" ]
    Thing rollershutter 31da8dac-8e09-455a-bc7a-6ed70f740001 "Screen front left" [ url="ogp://2105-0692-0933/10625067" ]
    Thing rollershutter 0b5f195a-5223-5432-b1af-f5fa1d59074f "Screen side" [ url="ogp://2105-0692-0933/1261209" ]
    Thing awning 87bf0403-a45d-4037-b874-28f4ece30004 "Luifel" [ url="ogp://2105-0692-0933/15728639" ]
    Thing rollershutter 712c0019-b422-1234-b4da-208e249c571b "Screen front right" [ url="ogp://2105-0692-0933/4874163'" ]
}

This is my .items definition

Rollershutter SC1Control "Control" {channel="somfytahoma:rollershutter:Terras:31da8dac-8e09-455a-bc7a-6ed70f740001:control"}
Switch SC1Moving "Moving" {channel="somfytahoma:rollershutter:Terras:31da8dac-8e09-455a-bc7a-6ed70f740001:moving"}

Rollershutter SC2Control "Control" {channel="somfytahoma:rollershutter:Terras:0b5f195a-5223-5432-b1af-f5fa1d59074f:control"}
Switch SC2Moving "Moving" {channel="somfytahoma:rollershutter:Terras:0b5f195a-5223-5432-b1af-f5fa1d59074f:moving"}

Rollershutter SC3Control "Control" {channel="somfytahoma:awning:Terras:87bf0403-a45d-4037-b874-28f4ece30004:control"}

I’ve set the binding debug level to ‘debug’

This is the what the binding logs when initializing (at least it’s what I think it’s doing)

2024-06-17 18:53:34.255 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Doing cleanup
2024-06-17 18:53:34.283 [DEBUG] [very.SomfyTahomaItemDiscoveryService] - Stopping SomfyTahoma background discovery
2024-06-17 18:53:39.897 [DEBUG] [a.internal.SomfyTahomaHandlerFactory] - Creating handler for bridge
2024-06-17 18:53:39.900 [DEBUG] [very.SomfyTahomaItemDiscoveryService] - Creating discovery service
2024-06-17 18:53:39.903 [DEBUG] [very.SomfyTahomaItemDiscoveryService] - Starting SomfyTahoma background discovery
2024-06-17 18:53:39.916 [DEBUG] [a.internal.SomfyTahomaHandlerFactory] - Creating handler for screen
2024-06-17 18:53:39.917 [DEBUG] [a.internal.SomfyTahomaHandlerFactory] - Creating handler for dimmerlight
2024-06-17 18:53:39.918 [DEBUG] [a.internal.SomfyTahomaHandlerFactory] - Creating handler for awning
2024-06-17 18:53:39.919 [DEBUG] [a.internal.SomfyTahomaHandlerFactory] - Creating handler for rollershutter
2024-06-17 18:53:39.923 [DEBUG] [a.internal.SomfyTahomaHandlerFactory] - Creating handler for screen
2024-06-17 18:53:39.933 [DEBUG] [a.internal.SomfyTahomaHandlerFactory] - Creating handler for screen
2024-06-17 18:53:39.937 [DEBUG] [a.internal.SomfyTahomaHandlerFactory] - Creating handler for rollershutter
2024-06-17 18:53:39.943 [DEBUG] [a.internal.SomfyTahomaHandlerFactory] - Creating handler for rollershutter
2024-06-17 18:53:39.943 [DEBUG] [a.internal.SomfyTahomaHandlerFactory] - Creating handler for gateway
2024-06-17 18:53:40.547 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Sending POST to url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/events/register with data: 
2024-06-17 18:53:40.571 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Events id: 27554d54-0a19-0482-6608-46fa1bbdaa5e
2024-06-17 18:53:40.573 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Initialize done...
2024-06-17 18:53:40.573 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Sending GET to url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/setup/devices with data: 
2024-06-17 18:53:40.628 [DEBUG] [andler.SomfyTahomaDimmerLightHandler] - ogp://2105-0692-0933/15728639 updating channel: light_intensity with value: 23.0
2024-06-17 18:53:40.628 [DEBUG] [dler.SomfyTahomaRollerShutterHandler] - ogp://2105-0692-0933/1261209 updating channel: control with value: 0.0
2024-06-17 18:53:40.630 [DEBUG] [dler.SomfyTahomaRollerShutterHandler] - ogp://2105-0692-0933/4874163 updating channel: control with value: 0.0
2024-06-17 18:53:40.630 [DEBUG] [dler.SomfyTahomaRollerShutterHandler] - ogp://2105-0692-0933/1261209 updating channel: control with value: 0.0
2024-06-17 18:53:40.631 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Sending GET to url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/setup/gateways/2105-0692-0933 with data: 
2024-06-17 18:53:40.632 [DEBUG] [dler.SomfyTahomaRollerShutterHandler] - ogp://2105-0692-0933/10625067 updating channel: control with value: 0.0
2024-06-17 18:53:40.630 [DEBUG] [dler.SomfyTahomaRollerShutterHandler] - ogp://2105-0692-0933/10625067 updating channel: control with value: 0.0
2024-06-17 18:53:40.658 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Tahoma status: OK
2024-06-17 18:53:40.659 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Tahoma protocol version: 2
2024-06-17 18:53:40.660 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Sending GET to url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/actionGroups with data: 
2024-06-17 18:53:49.904 [DEBUG] [very.SomfyTahomaItemDiscoveryService] - Starting scanning for things...
2024-06-17 18:53:49.906 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Sending GET to url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/setup with data: 
2024-06-17 18:53:50.047 [DEBUG] [very.SomfyTahomaItemDiscoveryService] - url: ogp://2105-0692-0933/10625067
2024-06-17 18:53:50.049 [DEBUG] [very.SomfyTahomaItemDiscoveryService] - Detected a/an screen - label: Screen front left (Terrace) device URL: ogp://2105-0692-0933/10625067
2024-06-17 18:53:50.052 [DEBUG] [very.SomfyTahomaItemDiscoveryService] - url: ogp://2105-0692-0933/1261209
2024-06-17 18:53:50.054 [DEBUG] [very.SomfyTahomaItemDiscoveryService] - Detected a/an screen - label: Screen side device URL: ogp://2105-0692-0933/1261209
2024-06-17 18:53:50.057 [DEBUG] [very.SomfyTahomaItemDiscoveryService] - url: ogp://2105-0692-0933/15728639
2024-06-17 18:53:50.059 [DEBUG] [very.SomfyTahomaItemDiscoveryService] - Detected a/an dimmerlight - label: Connectivity kit-ledBox device URL: ogp://2105-0692-0933/15728639
2024-06-17 18:53:50.062 [DEBUG] [very.SomfyTahomaItemDiscoveryService] - url: ogp://2105-0692-0933/16268539
2024-06-17 18:53:50.064 [DEBUG] [very.SomfyTahomaItemDiscoveryService] - Detected a/an awning - label: Terras luifel  (Terrace) device URL: ogp://2105-0692-0933/16268539
2024-06-17 18:53:50.068 [DEBUG] [very.SomfyTahomaItemDiscoveryService] - url: ogp://2105-0692-0933/16777212
2024-06-17 18:53:50.069 [DEBUG] [very.SomfyTahomaItemDiscoveryService] - url: ogp://2105-0692-0933/16777214
2024-06-17 18:53:50.070 [DEBUG] [very.SomfyTahomaItemDiscoveryService] - url: ogp://2105-0692-0933/16777215
2024-06-17 18:53:50.071 [DEBUG] [very.SomfyTahomaItemDiscoveryService] - url: ogp://2105-0692-0933/4874163
2024-06-17 18:53:50.072 [DEBUG] [very.SomfyTahomaItemDiscoveryService] - Detected a/an screen - label: Screen front right device URL: ogp://2105-0692-0933/4874163
2024-06-17 18:53:50.075 [DEBUG] [very.SomfyTahomaItemDiscoveryService] - Detected a gateway with id: 2105-0692-0933 and type: CONNECTIVITY KIT

When I send a command, the binding received 400 errors and retries n times

2024-06-17 18:48:17.245 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Sending POST to url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/exec/apply with data: {"label":"Screen side - down - openHAB","actions":[{"deviceURL":"ogp://2105-0692-0933/1261209","commands":[{"name":"down","parameters":[]}]}]}
2024-06-17 18:48:17.389 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Received unexpected status code: 400
2024-06-17 18:48:17.393 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Cannot call url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/exec/apply with params: {"label":"Screen side - down - openHAB","actions":[{"deviceURL":"ogp://2105-0692-0933/1261209","commands":[{"name":"down","parameters":[]}]}]}!
java.util.concurrent.ExecutionException: Unknown http error 400 while attempting to send a message.
	at org.openhab.binding.somfytahoma.internal.handler.SomfyTahomaBridgeHandler.sendMethodToTahomaWithCookie(SomfyTahomaBridgeHandler.java:832) ~[bundleFile:?]
	at org.openhab.binding.somfytahoma.internal.handler.SomfyTahomaBridgeHandler.sendPostToTahomaWithCookie(SomfyTahomaBridgeHandler.java:782) ~[bundleFile:?]
	at org.openhab.binding.somfytahoma.internal.handler.SomfyTahomaBridgeHandler.invokeCallToURL(SomfyTahomaBridgeHandler.java:1129) [bundleFile:?]
	at org.openhab.binding.somfytahoma.internal.handler.SomfyTahomaBridgeHandler.sendCommandInternal(SomfyTahomaBridgeHandler.java:948) [bundleFile:?]
	at org.openhab.binding.somfytahoma.internal.handler.SomfyTahomaBridgeHandler.sendCommand(SomfyTahomaBridgeHandler.java:929) [bundleFile:?]
	at org.openhab.binding.somfytahoma.internal.handler.SomfyTahomaBaseThingHandler.sendCommand(SomfyTahomaBaseThingHandler.java:181) [bundleFile:?]
	at org.openhab.binding.somfytahoma.internal.handler.SomfyTahomaRollerShutterHandler.handleCommand(SomfyTahomaRollerShutterHandler.java:62) [bundleFile:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
	at org.openhab.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:147) [bundleFile:?]
	at org.openhab.core.internal.common.InvocationHandlerSync.invoke(InvocationHandlerSync.java:59) [bundleFile:?]
	at jdk.proxy13801.$Proxy13912.handleCommand(Unknown Source) [?:?]
	at org.openhab.core.thing.internal.profiles.ProfileCallbackImpl.handleCommand(ProfileCallbackImpl.java:95) [bundleFile:?]
	at org.openhab.core.thing.internal.profiles.SystemDefaultProfile.onCommandFromItem(SystemDefaultProfile.java:49) [bundleFile:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
	at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) ~[?:?]
	at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
	at java.lang.reflect.Method.invoke(Method.java:568) ~[?:?]
	at org.openhab.core.internal.common.AbstractInvocationHandler.invokeDirect(AbstractInvocationHandler.java:147) [bundleFile:?]
	at org.openhab.core.internal.common.Invocation.call(Invocation.java:52) [bundleFile:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:264) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) [?:?]
	at java.lang.Thread.run(Thread.java:840) [?:?]
2024-06-17 18:48:18.433 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Retrying command, retries left: 10
2024-06-17 18:48:18.434 [DEBUG] [nal.handler.SomfyTahomaBridgeHandler] - Sending POST to url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/exec/apply with data: {"label":"Screen side - down - openHAB","actions":[{"deviceURL":"ogp://2105-0692-0933/1261209","commands":[{"name":"down","parameters":[]}]}]}