Tahoma Binding compatible with OH2

I guess only the IO devices are able to set/get the closure state, right? And roller shutters exist both IO and RTS…
Ondrej

Ah, obviously I should read the docs more carefully.

Is there are recommended way to use RTS blinds with Alexa if Dimmer doesn’t work?

BenniGBenjamin Gniza

21h

Same here. My roller shutters stopped working over the day.
In my case I got it back working by doing the following steps:

  • Upgrading Openhab to the latest 2.5 snapshot (I was already using an older 2.5 snapshot)
  • Removing the Somfy-Tahoma Binding through the PaperUI
  • Downloading the latest snapshot of the binding from Post #324 to /usr/share/openhab2/addons/
  • Various Restarts of openhab during the process :slight_smile:
    yes so it works fine!, thanks a lot for our support, great pleasure to work with you

I haven’t used Alexa for a while, but “switching” ON/OFF should be working (the same as for lights)

Worked perfect for me as well.

Hello , i have the problem on “home hassistant”. can you help me for find the api v2?
what document did you use to find the connectivity tahomaling api?
is it working now? just shutters or sets of hardware as before in v1?
Thank you for your help.

Hi, I have reverse engineered the tahomalink.com portal communication and found out, that there are two APIs.
Everything works almost the same as before, polling (fetching events) has changed a bit, JSON slightly differs on the new API urls…

Ondrej

Hello,

i have some troubles, since the switch in Tahoma binding. At first the orientation or the control state is always shown only a few seconds after moving. Later it shows only " - "
rolladen

But i work with a couple of rules that need the Status of the rollershutter, can anyone help me.

2nd. I have read a error in the Log of Openhab :disappointed_relieved:

2019-12-06 17:13:27.894 [ERROR] [nal.handler.SomfyTahomaBridgeHandler] - Received error code: 502

==> /var/log/openhab2/events.log <==

2019-12-06 17:13:27.900 [hingStatusInfoChangedEvent] - 'somfytahoma:bridge:73594433' 
changed from ONLINE to OFFLINE (COMMUNICATION_ERROR): Received invalid data

2019-12-06 17:13:27.908 [hingStatusInfoChangedEvent] - 
'somfytahoma:actiongroup:73594433:e56bcf29-902e-42eb-b18c-6fd5f3be7be7' changed 
from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2019-12-06 17:13:27.910 [hingStatusInfoChangedEvent] - 
'somfytahoma:actiongroup:73594433:b9c6a4f4-8caf-4321-afd4-d76dc2eb97d9' changed 
from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2019-12-06 17:13:27.915 [hingStatusInfoChangedEvent] - 
'somfytahoma:actiongroup:73594433:f980fd9e-05c6-438b-8c34-64576bf36508' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2019-12-06 17:13:27.921 [hingStatusInfoChangedEvent] - 'somfytahoma:pod:73594433:eb04bcb3-d9ff-4b73-a84e-6bf1ee272365' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2019-12-06 17:13:27.925 [hingStatusInfoChangedEvent] - 'somfytahoma:internalalarm:73594433:3d87bea5-c24e-459f-b29d-ad1e33940808' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2019-12-06 17:13:27.930 [hingStatusInfoChangedEvent] - 'somfytahoma:exteriorvenetianblind:73594433:1a715413-0119-4f4d-97ee-f01416c3502e' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2019-12-06 17:13:27.933 [hingStatusInfoChangedEvent] - 'somfytahoma:exteriorvenetianblind:73594433:dedf061a-8f28-4b29-a79c-cacfcee069cb' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2019-12-06 17:13:27.936 [hingStatusInfoChangedEvent] - 'somfytahoma:screen:73594433:003da9ed-a7fb-4ffa-917d-6388063150e4' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2019-12-06 17:13:27.940 [hingStatusInfoChangedEvent] - 'somfytahoma:exteriorvenetianblind:73594433:e3d35d2d-2bff-4f3a-b84c-415f7814498c' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2019-12-06 17:13:27.943 [hingStatusInfoChangedEvent] - 'somfytahoma:exteriorvenetianblind:73594433:376065c3-1d4c-4a0c-b9c0-bbdb734587b7' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2019-12-06 17:13:27.946 [hingStatusInfoChangedEvent] - 'somfytahoma:actiongroup:73594433:7b0b2e0f-94de-4a28-b23b-9c6c33668d0b' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2019-12-06 17:13:27.948 [hingStatusInfoChangedEvent] - 'somfytahoma:actiongroup:73594433:ff8ac9bf-c293-4daf-9504-e81a0d69039e' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2019-12-06 17:13:27.949 [hingStatusInfoChangedEvent] - 'somfytahoma:gateway:73594433:1205-2087-4954' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2019-12-06 17:13:38.164 [hingStatusInfoChangedEvent] - 'somfytahoma:bridge:73594433' changed from OFFLINE (COMMUNICATION_ERROR): Received invalid data to ONLINE

2019-12-06 17:13:38.166 [hingStatusInfoChangedEvent] - 'somfytahoma:actiongroup:73594433:e56bcf29-902e-42eb-b18c-6fd5f3be7be7' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2019-12-06 17:13:38.167 [hingStatusInfoChangedEvent] - 'somfytahoma:actiongroup:73594433:f980fd9e-05c6-438b-8c34-64576bf36508' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2019-12-06 17:13:38.169 [hingStatusInfoChangedEvent] - 'somfytahoma:actiongroup:73594433:7b0b2e0f-94de-4a28-b23b-9c6c33668d0b' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2019-12-06 17:13:38.170 [hingStatusInfoChangedEvent] - 'somfytahoma:actiongroup:73594433:b9c6a4f4-8caf-4321-afd4-d76dc2eb97d9' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2019-12-06 17:13:38.172 [hingStatusInfoChangedEvent] - 'somfytahoma:actiongroup:73594433:ff8ac9bf-c293-4daf-9504-e81a0d69039e' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2019-12-06 17:13:38.174 [hingStatusInfoChangedEvent] - 'somfytahoma:internalalarm:73594433:3d87bea5-c24e-459f-b29d-ad1e33940808' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2019-12-06 17:13:38.175 [hingStatusInfoChangedEvent] - 'somfytahoma:gateway:73594433:1205-2087-4954' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2019-12-06 17:13:38.177 [hingStatusInfoChangedEvent] - 'somfytahoma:exteriorvenetianblind:73594433:dedf061a-8f28-4b29-a79c-cacfcee069cb' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2019-12-06 17:13:38.178 [hingStatusInfoChangedEvent] - 'somfytahoma:screen:73594433:003da9ed-a7fb-4ffa-917d-6388063150e4' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2019-12-06 17:13:38.180 [hingStatusInfoChangedEvent] - 'somfytahoma:exteriorvenetianblind:73594433:376065c3-1d4c-4a0c-b9c0-bbdb734587b7' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2019-12-06 17:13:38.181 [hingStatusInfoChangedEvent] - 'somfytahoma:pod:73594433:eb04bcb3-d9ff-4b73-a84e-6bf1ee272365' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2019-12-06 17:13:38.183 [hingStatusInfoChangedEvent] - 'somfytahoma:exteriorvenetianblind:73594433:1a715413-0119-4f4d-97ee-f01416c3502e' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2019-12-06 17:13:38.184 [hingStatusInfoChangedEvent] - 'somfytahoma:exteriorvenetianblind:73594433:e3d35d2d-2bff-4f3a-b84c-415f7814498c' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

2019-12-06 17:13:38.269 [me.event.ThingUpdatedEvent] - Thing 'somfytahoma:exteriorvenetianblind:73594433:dedf061a-8f28-4b29-a79c-cacfcee069cb' has been updated.

2019-12-06 17:13:38.274 [me.event.ThingUpdatedEvent] - Thing 'somfytahoma:exteriorvenetianblind:73594433:dedf061a-8f28-4b29-a79c-cacfcee069cb' has been updated.

2019-12-06 17:13:38.280 [me.event.ThingUpdatedEvent] - Thing 'somfytahoma:exteriorvenetianblind:73594433:1a715413-0119-4f4d-97ee-f01416c3502e' has been updated.

2019-12-06 17:13:38.286 [me.event.ThingUpdatedEvent] - Thing 'somfytahoma:exteriorvenetianblind:73594433:1a715413-0119-4f4d-97ee-f01416c3502e' has been updated.

2019-12-06 17:13:38.311 [me.event.ThingUpdatedEvent] - Thing 'somfytahoma:exteriorvenetianblind:73594433:e3d35d2d-2bff-4f3a-b84c-415f7814498c' has been updated.

2019-12-06 17:13:38.318 [me.event.ThingUpdatedEvent] - Thing 'somfytahoma:exteriorvenetianblind:73594433:e3d35d2d-2bff-4f3a-b84c-415f7814498c' has been updated.

2019-12-06 17:13:38.322 [me.event.ThingUpdatedEvent] - Thing 
'somfytahoma:exteriorvenetianblind:73594433:376065c3-1d4c-4a0c-b9c0-bbdb734587b7' 
has been updated.

Hi Folks,

I’ve switch successfully to the V2 API according the discription. Only thing, I wondering about is the huge amount of log entries now. This bunch comes every single second:

==> /var/log/openhab2/events.log <==

2019-12-07 19:21:12.751 [me.event.ThingUpdatedEvent] - Thing 'somfytahoma:rollershutter_silent:2fd3198a:b536e676-9e01-4f9a-befc-e0f09aff569d' has been updated.

2019-12-07 19:21:12.757 [me.event.ThingUpdatedEvent] - Thing 'somfytahoma:exteriorscreen:2fd3198a:27a6e1b8-2e52-43da-ae8d-58964ca933ca' has been updated.

2019-12-07 19:21:12.764 [me.event.ThingUpdatedEvent] - Thing 'somfytahoma:rollershutter_silent:2fd3198a:77db2aee-6e1c-4afb-9f02-7e4f1b854bdf' has been updated.

2019-12-07 19:21:12.773 [me.event.ThingUpdatedEvent] - Thing 'somfytahoma:rollershutter_silent:2fd3198a:07b4622a-d371-429c-9403-9dd34dc128ff' has been updated.

2019-12-07 19:21:22.883 [me.event.ThingUpdatedEvent] - Thing 'somfytahoma:exteriorvenetianblind:2fd3198a:6204a9d6-b90e-401a-94cf-15b83e6d4fae' has been updated.

2019-12-07 19:21:23.980 [vent.ItemStateChangedEvent] - occupancyStairway changed from OFF to ON

2019-12-07 19:21:32.995 [me.event.ThingUpdatedEvent] - Thing 'somfytahoma:exteriorvenetianblind:2fd3198a:81c85ddd-16c8-4164-a0c6-04e0337edf3b' has been updated.

2019-12-07 19:21:43.036 [me.event.ThingUpdatedEvent] - Thing 'somfytahoma:rollershutter_silent:2fd3198a:b536e676-9e01-4f9a-befc-e0f09aff569d' has been updated.

2019-12-07 19:21:43.042 [me.event.ThingUpdatedEvent] - Thing 'somfytahoma:exteriorscreen:2fd3198a:27a6e1b8-2e52-43da-ae8d-58964ca933ca' has been updated.

2019-12-07 19:21:53.167 [me.event.ThingUpdatedEvent] - Thing 'somfytahoma:exteriorvenetianblind:2fd3198a:95775f93-fa03-4894-94e5-1939151e6db5' has been updated.

2019-12-07 19:21:53.173 [me.event.ThingUpdatedEvent] - Thing 'somfytahoma:rollershutter_silent:2fd3198a:77db2aee-6e1c-4afb-9f02-7e4f1b854bdf' has been updated.

2019-12-07 19:21:53.179 [me.event.ThingUpdatedEvent] - Thing 'somfytahoma:exteriorvenetianblind:2fd3198a:6204a9d6-b90e-401a-94cf-15b83e6d4fae' has been updated.

2019-12-07 19:21:53.185 [me.event.ThingUpdatedEvent] - Thing 'somfytahoma:exteriorvenetianblind:2fd3198a:9154d2af-3abd-4838-bca4-d1e9eb68ed52' has been updated.

2019-12-07 19:21:53.192 [me.event.ThingUpdatedEvent] - Thing 'somfytahoma:rollershutter_silent:2fd3198a:07b4622a-d371-429c-9403-9dd34dc128ff' has been updated.

2019-12-07 19:21:53.195 [me.event.ThingUpdatedEvent] - Thing 'somfytahoma:onoff:2fd3198a:756a177d-c08d-4a3b-8849-410cecf6eb45' has been updated.

I’ve to mention, it was my first manual installed binding. Do I have to setup anything else?

Thanks,

this (number 3) worked like a charm!

Thank you for your job!

Can you help for this resquest
postdata: {“actions”: [{“commands”: [{“name”: “open”, “parameters”: “”}], “deviceURL”: “io://xxxx-xxxx-xxxx/5262xxx”}], “label”: “test - fenetre amis”}
header: {‘content-type’: ‘application/json;charset=UTF-8’, ‘Cookie’: ‘JSESSIONID=AC6010C209124717459EBDD8B9750110; Path=/enduser-mobile-web; Secure; HttpOnly’}
url: https://www.tahomalink.com/enduser-mobile-web/enduserAPI/exec/apply
request.status_code 400 bad resquest
where is my error?
thank you
Yves D.

it’s nice with
postdata: {“actions”: [{“commands”: [{“name”: “close”, “parameters”: []}], “deviceURL”: "io://xxxx-xxxx-xxxx/5262xxx”}]
and
postdata: {“actions”: [{“commands”: [{“name”: “setClosure”, “parameters”: [50]}], “deviceURL”: "io://xxxx-xxxx-xxxx/5262xxx”}]

My tahoma box regularly switches between online and offline (this error seems to repeat exactly every 5 minutes)
Any idea what this could be?

In openhab.log
[ERROR] [nal.handler.SomfyTahomaBridgeHandler] - Received error code: 400

In events.log (this error seems to repeat exactly every 5 minutes)

[hingStatusInfoChangedEvent] - 'somfytahoma:gateway:8ca91fed:1215-3372-1034' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

[hingStatusInfoChangedEvent] - 'somfytahoma:awning:XXX:YYY' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

[hingStatusInfoChangedEvent] - 'somfytahoma:bridge:XXX' changed from OFFLINE (COMMUNICATION_ERROR) to ONLINE

[hingStatusInfoChangedEvent] - 'somfytahoma:awning:XXX:YYY' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

[hingStatusInfoChangedEvent] - 'somfytahoma:gateway:XXX:YYY' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE

It is not a bug, now the binding also updates all thing’s properties from the cloud. So once a new state is sent (even the changed RSSI signal), the thing gets updated. Please check the thing’s properties in PaperUI.

Thanks.
Ondrej

hi,
If you want to find the root cause of the problem, could you please

  • specify which version of OH2 and the binding are you using
  • specify which gateway are you using (connexoon/tahoma?)
  • provide me with the debug log (openhab.log)

thanks.
Ondrej

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

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 :frowning:

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

1 Like

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 - Error

Bad 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) [?:?]