Tahoma Binding compatible with OH2

I have removed my rollershutter and add them again the error was gone

Thanks for this binding! Exactly what I was looking for. My Somfy Smoove Uno io integrated like a charm. I also use some Somfy window opening sensors. Is there any chance to get their state (open/closed) in openhab?

2017-10-16 22:07:09.379 [WARN ] [very.SomfyTahomaItemDiscoveryService] - Detected a new unsupported device: ContactSensor
2017-10-16 22:07:09.386 [WARN ] [very.SomfyTahomaItemDiscoveryService] - Supported commands: { }

Thanks
z0rk

Sure, I need to get unknown device states. Please use this binding version which prints all states of an unknown device.
https://www.dropbox.com/s/5qkcr33yb4h7ykb/org.openhab.binding.somfytahoma-2.2.0-SNAPSHOT.jar?dl=1
thanks
Ondrej

Great! Here is the Output:

2017-10-16 23:29:34.613 [WARN ] [very.SomfyTahomaItemDiscoveryService] - Detected a new unsupported device: ContactSensor
2017-10-16 23:29:34.640 [WARN ] [very.SomfyTahomaItemDiscoveryService] - Supported commands: { }
2017-10-16 23:29:34.651 [WARN ] [very.SomfyTahomaItemDiscoveryService] - Device states: 
{name='core:ContactState', type=3, value=closed}
{name='core:StatusState', type=3, value=available}
{name='core:RSSILevelState', type=2, value=100.0}

Thank you very much!
z0rk

Thanks, please download once more the version from link above, it should be working now…
thanks for testing
Ondrej

Thank you for the fast extension! Now I am able to add the Contact Sensors as new thing, but I got problems with the state. After linking an item to the contact, the item has the correct state (Open or Closed) for about 5 seconds. After 5 seconds the state is shown as “Off” and it does not change even if I open or close the sensor. After refreshing the item the correct state is shown again for 5 seconds and then back to “Off”. Any idea what could be wrong there?

z0rk

EDIT: Latest Snapshot fixed my problem. Thank you for your great work!

Somfy seems to have changed something. I was forced into a Tahoma update last night and now I receive an “Unauthorized” in OpenHab,

Same here. @Ondrej_Pecta what do you think?

I am running on firmware 2017.5.4-16 and everything works as expected. What firmware are you using?

2017.5.4-12

Hi,

Single shutter works fine for me but i have a problem with actiongroups.
I create a actiongroup in tahoma and i can find this in the inbox from openhab.
After add the actiongroup in have a switch with no function.
An error apers in the log:

 2018-01-12 13:19:35.215 [ome.event.ItemCommandEvent] - Item 'Buero50_SomfyActionGroupTrigger01' received command ON
 
 2018-01-12 13:19:35.249 [vent.ItemStateChangedEvent] - Buero50_SomfyActionGroupTrigger01 changed from OFF to ON
 
 2018-01-12 13:19:35.320 [ERROR] [nal.common.AbstractInvocationHandler] - An error occurred while calling method 'ThingHandler.handleCommand()' on 'org.openhab.binding.somfytahoma.handler.SomfyTahomaActionGroupHandler@128e8de': java.lang.String cannot be cast to java.lang.Double

Have anyone a solution for my problem?

Could you please try the latest snapshot? Execution of action groups was rewritten in December 2017.
Thanks.
https://openhab.jfrog.io/openhab/libs-pullrequest-local/org/openhab/binding/org.openhab.binding.somfytahoma/2.3.0-SNAPSHOT/org.openhab.binding.somfytahoma-2.3.0-SNAPSHOT.jar

Great

With this snapshot actiongroups are working fine.

Ondrej,

Can you clarify how the communication works?
I am about to install window shutters and consider the Somfy connexoon controller.
However, when reading the thread it looks as if every command is send to a Somfy server which sends it back to the connexoon box followed by the action.
It not only takes time, but also means that my private network requires ports to be opened for the server and it always require an active internet connection.

I like to remove all these dependencies and rather have a direct connection between OpenHab and the connexxoon box.

–Simon

It uses the same way how mobile application or tahomalink.com web portal communicates with your local tahoma/connexoon device.
No ports opening needed - only internet connection. So if your mobile application works, this binding will work too…

Hi Ondrej,

Thanks for the reply, this confirms my suspicion on how the system communicates with the local connexoon box.
The system will not work if you setup a firewall for the local network that blocks all incoming traffic, hence the reason to open a (network) port to allow the somfy server access to the connexoon box.
I guess there is currently no workaround for this.
I have seen remarks in other threads that people tried to control the blinds locally but without success, which means this is the only solution for the moment.

–Simon

You do not have to open any ports since the connection initiator is your box (it is a standard TCP outbound connection and your router is out of the box configured for such communication)
So it might work this way:

  • your box opens a connection to Somfy server
  • your box listens for any events which occur on Somfy sever
  • your box does the action according to the cought event

So - Somfy server does not connect to your box and you need no extra configuration to make it working.
You are right, there is an extra delay (100~200milliseconds in my case) before your command is executed, but I can assure you it works pretty well anyway :slight_smile:

Hi guys,

I’m currently waiting for my Connexoon box to arrive as I understood the this box is also using the same API as the much more expensive Tahoma box.

Will this binding get also an offical binding at some point?
Can I use the latest version from this thread …2.3.0.snapshot.jar also in a openHAB 2.2 version?

Best regards
Timmi

Hi,

yes it will work (of course you need to connect your box to internet and register it).
The 2.3.0-SNAPSHOT will work in openHAB 2.2

This binding is currently waiting for revision and until this is finished it can’t be found in official bindings repository.

Hi Ondrej,

thank you for the fast reply and the good work.

Best regards
Timmi