[somfymylink] Add Somfy MyLink Binding
See original GitHub issueThe Somfi MyLink device has an TCP/IP interface that supports the Somfy Synergy API. You send json over a TCP socket connection.
e.g.
{ "id": 1, "method": "mylink.move.down", "params": { "targetID": "CC104A28.1", "auth": "foobar" } }
The MyLink will send responses as well as keep alive messages in json format also.
I have not obtained API documentation from Somfy for this API yet, however have found some examples of others calling it.
e.g. https://community.smartthings.com/t/somfy-mylink/81197/23
There is also an existing integration for smartthings that might be helpful. https://github.com/bendews/smartthings-somfy-mylink
I am a developer (but not done any Java in 10+ years) , and could look at building this binding … but thought i would post here first in case someone had looked at this already or has any guidance.
Issue Analytics
- State:
- Created 5 years ago
- Comments:35 (17 by maintainers)

Top Related StackOverflow Question
Nice! I’ll give it a whirl this week. Actually getting blinds installed on Tuesday, so I’ll be able to do more with the MyLink. It’s pretty useless if you don’t have any motors to pair with it, as it’s not possible to complete the setup without at least one motor to pair.
@LoungeFlyZ A couple other things I noticed…
Other things I noticed in the above log: - fromJason throws a JsonSyntaxException, so you never get to the code that checks for error - perhaps inspect the response for the presence of “error” (Gson has APIs for that), then handle as an error, otherwise call fromJson using the response type you expect - Why is it timing out even though it gets a response? - Reduce log level from ERROR in above (ERROR is reserved for Framework-level errors). This is probably an INFO - Reduce log level from INFO in above (these types of messages are usually logged at DEBUG).
Why return something from sendPing if you don’t intend to check it. Make it void?
Consider reducing read timeout when waiting for a response from mylink, since openHAB and MyLink will be on a fast network