openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.87k stars 3.58k forks source link

[somfytahoma] MY-position not working (with Connectivity kit) #13061

Open BillGOH opened 2 years ago

BillGOH commented 2 years ago

With openHAB 3.3 the Somfy Connectivity kit is supported. However, one issue remains: I cannot use the MY-position. In theory this should work like the remote control where stop and my is the same, i.e. if I "press" the stop-button in openHAB an rollershutter should go to the MY-position. However, nothing happens.

The problem is only relevant for Somfy products using the RTS protocol, because there you have no possibility to give the rollershutter an exact position/orientation via openHAB. It is no problem with the io-protocol.

openhab-bot commented 1 year ago

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/solved-somfy-tahoma-binding-not-working-properly-with-new-somfy-connectivity-kit/133713/16

octa22 commented 1 year ago

Hi @BillGOH, can you please sniff the communication using the Chrome browser and F12 key? All I need is you to 1) open a new blank page in chrome 2) log into www.tahomalink.com 3) press F12 (a developer window opens) 4) navigate to a network tab in the developer window 5) move your device to MY position 6) provide me with the request of the apply command, it should look like this (I do not have MY position in the Tahoma web for my devices) image

thanks.

BillGOH commented 1 year ago

Hello @octa22, thanks again for your help and happy new year. Unfortunately I cannot login to www.tahomalink.com (could not do this in the past as well). The site always says wrong username or password. I am using Microsoft Edge (based on chrome). Regards BillGOH

octa22 commented 1 year ago

OK, then in which application you are able to move your shutters to the MY position? Edge doesn't matter, but you really need to log into www.tahomalink.com portal...

BillGOH commented 1 year ago

Hi, I am using the Tahoma app. Unfortunately I never could log into www.tahomalink.com via web browser (Maybe there is a connection to the use of the Somfy connectivity kit?). Is there a possibility to "sniff" via openHAB?

octa22 commented 1 year ago

Unfortunately you can't use openHAB for this sniffing, you need to get the communication from their original web or mobile app. The web is the easiest way, mobile app is possible as well, but you need a MITM proxy or simular tool to sniff the communication. But it is weird, my openHAB binding by default uses tahomalink.com server address for communicating, have you changed it to some other address in the bridge settings?

BillGOH commented 1 year ago

It is indeed weird. I use tahomalink.com in openHAB; using the same credentials on the website (redirected to https://www.tahomalink.com/enduser-mobile-web/steer-html5-client/tahoma/) - error. I have to discuss the issue with Somfy. There are some reports on the net having similar issues.

BillGOH commented 1 year ago

Got a reply from Somfy. Webaccess via tahomalink.com is not possible if you have a Connectivity Kit. Cloud API can be used, however.

BillGOH commented 1 year ago

Maybe we can find a user with the full Tahoma box and RTS products?

sleugner commented 1 year ago

I have the same set up and tried it. I also get the same error message. Would be awesome if somebody with a full Tahoma could support. Somfy only has one szenario would be nice if that would work...

BasvanH commented 1 year ago

I have a Tahoma box with RTS products, what can I do for you @BillGOH and @sleugner.

BillGOH commented 1 year ago

Hello @BasvanH, your help would be great. See https://github.com/openhab/openhab-addons/issues/13061#issuecomment-1368220917 for instructions. @octa22 can use these information to adjust the binding.

BasvanH commented 1 year ago

@BillGOH alright, I have executed this and moved a blind to its My position.

This was the request URL:

https://www.tahomalink.com/enduser-mobile-web/enduserAPI//exec/apply

This was the payload:

{
    "label": "Keuken - Klein raam - My positie - TaHoma PC",
    "actions": [
        {
            "deviceURL": "rts://1227-9296-2479/16740924",
            "commands": [
                {
                    "name": "my",
                    "parameters": []
                }
            ]
        }
    ]
}

This was the response:

{"execId":"74d598af-ac10-3e01-7852-75434d82465c"}
BillGOH commented 1 year ago

Thank you very much for your help. I hope that @octa22 can make use of this and solve the problem.

openhab-bot commented 1 year ago

This issue has been mentioned on openHAB Community. There might be relevant details there:

https://community.openhab.org/t/somfy-tahoma-commands-for-screens-not-working-via-connectivity-kit/147126/1