MochadX10 binding isn't sending any commands to CM15A

I have mochad working on my Ubuntu install with my CM15a for controlling X10. I have an item file with a few things set up, and a sitemap to display switches for them. It looks to me from the events.log that OH2 thinks it should all be working, but none of these changes are reflected in reality, and when I use nc localhost 1099 I can see that it’s not even trying to send any commands through to the CM15a.

events.log:
2020-10-06 16:54:51.806 [vent.ItemStateChangedEvent] - xLight_Front changed from OFF to ON
2020-10-06 16:54:53.212 [ome.event.ItemCommandEvent] - Item ‘xLight_Front’ received command OFF
2020-10-06 16:54:53.214 [vent.ItemStateChangedEvent] - xLight_Front changed from ON to OFF
2020-10-06 16:54:55.650 [ome.event.ItemCommandEvent] - Item ‘xLight_Livingroom’ received command ON
2020-10-06 16:54:55.651 [vent.ItemStateChangedEvent] - xLight_Livingroom changed from OFF to ON
2020-10-06 16:54:56.695 [ome.event.ItemCommandEvent] - Item ‘xLight_Livingroom’ received command OFF
2020-10-06 16:54:56.699 [vent.ItemStateChangedEvent] - xLight_Livingroom changed from ON to OFF
2020-10-06 16:54:57.900 [ome.event.ItemCommandEvent] - Item ‘xLight_Bedroom’ received command ON
2020-10-06 16:54:57.903 [vent.ItemStateChangedEvent] - xLight_Bedroom changed from OFF to ON
2020-10-06 16:54:58.779 [ome.event.ItemCommandEvent] - Item ‘xLight_Bedroom’ received command OFF
2020-10-06 16:54:58.781 [vent.ItemStateChangedEvent] - xLight_Bedroom changed from ON to OFF

I used Paper UI to install the MochadX10 binding, which I later found out is a 1.x binding (or at least was). Do I need to do anything special to get it working in OH2? Also of note, from my research I would expect to see the jar in my /usr/share/openhab2/addons folder, but there’s nothing there but the initial README.

find / | grep mochadx

find: ‘/run/user/1000/doc’: Permission denied
/var/lib/openhab2/config/org/openhab/mochadx10.config
/var/lib/openhab2/tmp/mvn/org/openhab/binding/org.openhab.binding.mochadx10
/var/lib/openhab2/tmp/mvn/org/openhab/binding/org.openhab.binding.mochadx10/resolver-status.properties
/var/lib/openhab2/tmp/mvn/org/openhab/binding/org.openhab.binding.mochadx10/maven-metadata-openhab.xml.sha1
/var/lib/openhab2/tmp/mvn/org/openhab/binding/org.openhab.binding.mochadx10/maven-metadata-openhab.xml
/var/lib/openhab2/tmp/mvn/org/openhab/binding/org.openhab.binding.mochadx10/1.14.0
/var/lib/openhab2/tmp/mvn/org/openhab/binding/org.openhab.binding.mochadx10/1.14.0 /org.openhab.binding.mochadx10-1.14.0.jar.sha1
/var/lib/openhab2/tmp/mvn/org/openhab/binding/org.openhab.binding.mochadx10/1.14.0 /org.openhab.binding.mochadx10-1.14.0.jar
/etc/openhab2/services/mochadx10.cfg

Thanks in advance for any help

Did you recently do an OS or package upgrade? Recently one of the Ubuntu packages changes the ownership of the USB or serial ports, breaking some bindings/services from accessing the hardware. I havn’t used X10 in a long time, but I remember my PLM was serial, and if your’s is as well this is a starting point to look at.

You followed the docs and edited the .cfg file? May we see a sample Item config?

I think I upgraded from Kubuntu 18.10 to 20.04 over the summer, and did a good backup and good restore at the time. Of course back then, I was using HA-Bridge to emulate them as Hue devices for the Hue binding to control them just fine, but HA-Bridge soiled the bed recently so I wanted to take out a middleman. I do pretty regular package upgrades and think I remember an OH one this year, I’m currently on 2.5.9-1. And the CM15a is USB; mochad operates it just fine so it would seem the problem is with OH.

$ cat /etc/openhab2/services/mochadx10.cfg  
###################################### Mochad X10 ##############################
#######
#
# Ip address and port of the Mochad X10 server
hostIp=127.0.0.1
hostPort=1099

#idk why it doesn't work
mochadx10:hostIp=127.0.0.1
mochadx10:hostPort=1099

I added that last bit in a futile effort to get it to work with what I assume is older syntax, since everything before my comment was the default .cfg file which applied perfectly to my setup.

$ cat /etc/openhab2/items/default.items

Group upstairs
Switch x10_Bedroom "Bedroom Switch" (upstairs) {mochadx10="a1"}
Group outside
Switch x10_Front "Front Yard Switch" (outside) {mochadx10="a2"}
Group downstairs
Switch x10_Livingroom "Living Room Switch" (downstairs) {mochadx10="a3"}

Devices names and addresses changed to protect the innocent.