[Closed] Binding mochad X10 rollershutter not working

Hi everyone,

I am using Openhab 1.8.3 on a raspberry pi and cannot command my X10 roller shutters connected to my CM15 usb interface.

I have installed mochad and I can send commands that whork through “nc localhost 1099” commands
I have added the addon org.openhab.binding.mochadx10-1.8.3.jar in the addon folder
I have also configured the right IP and port for mochad in the configuration file (localhost and 1099)
I have defined my shutter in the item file as:
Rollershutter Shutter_FF_Office “Office” (FF_Office) { mochadx10=“l9:pl” }

I have activated the debug mode:
In the user interface (android, iOS or web), I see the item and when I click on it I can see the events (in events.log):
2016-08-24 00:16:13 - Shutter_FF_Office received command UP
2016-08-24 00:16:14 - Shutter_FF_Office received command DOWN

As well as the corresponding requests in request.log
192.168.1.20 - - [23/août/2016:22:16:12 +0000] “POST /rest/items/Shutter_FF_Office HTTP/1.1” 201 0
192.168.1.20 - - [23/août/2016:22:16:14 +0000] “GET /rest/sitemaps/default/FF_Office HTTP/1.1” 200 0
192.168.1.20 - - [23/août/2016:22:16:14 +0000] “GET /rest/sitemaps/default/0000 HTTP/1.1” 200 0
192.168.1.20 - - [23/août/2016:22:16:14 +0000] “GET /rest/sitemaps/default/FF_Office HTTP/1.1” 200 0
192.168.1.20 - - [23/août/2016:22:16:14 +0000] “POST /rest/items/Shutter_FF_Office HTTP/1.1” 201 0
192.168.1.20 - - [23/août/2016:22:16:14 +0000] “GET /rest/sitemaps/default/0000 HTTP/1.1” 200 0
192.168.1.20 - - [23/août/2016:22:16:15 +0000] “GET /rest/sitemaps/default/FF_Office HTTP/1.1” 200 0
192.168.1.20 - - [23/août/2016:22:16:15 +0000] “GET /rest/sitemaps/default/FF_Office HTTP/1.1” 200 0

Finaly in openhab log file I get the following:
00:16:12.964 [DEBUG] [o.i.r.i.resources.ItemResource:205 ] - Received HTTP POST request at ‘items/Shutter_FF_Office’ with value ‘UP’.
00:16:14.497 [DEBUG] [o.o.i.r.i.b.GeneralBroadcaster:46 ] - broadcaster ‘org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@4a7e0b’ is empty
00:16:14.520 [DEBUG] [o.o.i.r.i.b.GeneralBroadcaster:46 ] - broadcaster ‘org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@14ba4c3’ is empty
00:16:14.625 [DEBUG] [.r.i.resources.SitemapResource:146 ] - Received HTTP GET request at ‘sitemaps/default/FF_Office’ for media type ‘null’.
00:16:14.681 [DEBUG] [.r.i.resources.SitemapResource:146 ] - Received HTTP GET request at ‘sitemaps/default/0000’ for media type ‘null’.
00:16:14.745 [DEBUG] [.r.i.resources.SitemapResource:146 ] - Received HTTP GET request at ‘sitemaps/default/FF_Office’ for media type ‘null’.
00:16:14.760 [WARN ] [osphere.cpr.DefaultBroadcaster:1369 ] - Duplicate resource 5407e8f1-f737-417f-8033-ee5dea26d5f1. Could be caused by a dead connection not detected by your server. Replacing the old one with the fresh one
00:16:14.801 [DEBUG] [.r.i.resources.SitemapResource:146 ] - Received HTTP GET request at ‘sitemaps/default/0000’ for media type ‘null’.
00:16:14.807 [DEBUG] [o.o.i.r.i.b.GeneralBroadcaster:46 ] - broadcaster ‘org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@4a7e0b’ is empty
00:16:14.830 [WARN ] [osphere.cpr.DefaultBroadcaster:1369 ] - Duplicate resource e942f367-e847-4844-9659-ce082a7198fb. Could be caused by a dead connection not detected by your server. Replacing the old one with the fresh one
00:16:14.858 [DEBUG] [o.i.r.i.resources.ItemResource:205 ] - Received HTTP POST request at ‘items/Shutter_FF_Office’ with value ‘DOWN’.
00:16:14.878 [DEBUG] [o.o.i.r.i.b.GeneralBroadcaster:46 ] - broadcaster ‘org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@14ba4c3’ is empty
00:16:15.584 [DEBUG] [o.o.i.r.i.b.GeneralBroadcaster:46 ] - broadcaster ‘org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@4a7e0b’ is empty
00:16:15.696 [DEBUG] [.r.i.resources.SitemapResource:146 ] - Received HTTP GET request at ‘sitemaps/default/FF_Office’ for media type ‘null’.
00:16:15.759 [DEBUG] [.r.i.resources.SitemapResource:146 ] - Received HTTP GET request at ‘sitemaps/default/FF_Office’ for media type ‘null’.
00:16:15.774 [WARN ] [osphere.cpr.DefaultBroadcaster:1369 ] - Duplicate resource 5407e8f1-f737-417f-8033-ee5dea26d5f1. Could be caused by a dead connection not detected by your server. Replacing the old one with the fresh one
00:16:15.785 [DEBUG] [o.o.i.r.i.b.GeneralBroadcaster:46 ] - broadcaster ‘org.openhab.io.rest.internal.broadcaster.GeneralBroadcaster$1@4a7e0b’ is empty

I have tested many variation of the declaration of items but they are all unsuccessfull and I am running out of options

Did someone face the same issue or a similar problem? If so I would be very thankfull for any help on this.

Thanks for you help

Olivier

Dear All,

I finally managed to have my configuration working. it may be linked to my installation of openhab with 2 addons folders (in /usr/share/openhab and /etc/openhab) but I am not sure because in the doubt, I had copied the jar files in both directories.

However after many changes in the items definitions and several reboot/restarts, it now works perfectly and I will continue improving my configuration.

Kind regards

Olivier