I now have all my X10 devices, remotes and automations setup and running in home assistant. I not only can use a palmpad, ms16 motion sensor or ds10a sensor to control a x10 light, I can also use them to control my sengled zigbee lights. Once I figured out how to setup the automations is was a cake walk.
While doing all this I had some thoughts for other ways to achive some if not all of this functionality if you don't have a w800usb from wgl design.
One way is to use an tm751 or other x10 wireless to plc transceiver and a cm11a with heyu, mosquitto and home assistant. Of course this would only work with regular wireless devices since these transceivers don't support security devices. But using motion sensors and remotes, the transceiver will put those commands on the powerline where the cm11a and heyu can pick them up and act on them. For example, put a motion sensor on M1. When it's sent to the powerline heyu will see M1 On and you can write a script to publish that to home assistant with mqtt. Now HA has a sensor that can be used as a trigger.
If you wanted another possible way to have it all, you could use a cm11a with heyu, cm15a with mochad and mochad_dispatch, mosquitto mqtt broker and home assistant. This could get complicated because you want the power of heyu with it's state engine and scripting but is doesn't support the cm15a. So you add in the cm15a with mochad and mochad_dispatch to get support for the wireless security devices. Remember, mochad and dispatch do not support sending regular wireless reception to HA. So you would use mochad and mochad_dispatch with the cm15a to publish the security sensors to HA. and forward the regular motion sensors to the powerline for heyu to pick up.
THe reason you don't want to just use mochad to put your x10 devices in HA is mainly because mochad doesn't have a state engine which basically means HA will not know if a light was turned on outside of HA. If HA didn't turn the light on and it is on you actually have to turn it on in HA just so you can turn it off. So for example, if you turn a light on with your palmpad (A1) you would have to set mochad to forward that command to the powerline and your light would turn on but HA doesn't know it. So if you add in the cm11a with heyu, and setup your x10 lights in HA with heyu, HA will now know it was turned on and you could use it as a trigger.
I hope everyone can understand what I'm trying to say. I'm not always good at explaining things like this. I mostly learn as I go and my mind wonders sometimes. I just knew some people wanted a way to use the cm15a. I tried but just couldn't get the level of integration I wanted. Currently I do with my current setup.
If you wanted to do this like my current setup, you would still setup your Rpi with Heyu as petera so kindly posted instructions for. All you need to add is the mosquitto mqtt broker and set it up in HA. Then you can run a heyu script to use mosquitto_pub to publish the on and off state, or alert and clear states of your sensors and remotes to HA. I can share an example config if anyone plans to go down this road but here is the basics.
You have a ms16 motion sensor set to A1.
You add a MQTT binary sensor to HA with the topic x10/motion/sensor and a payload of ON and OFF.
In heyu you setup a script upon reception of A1 to run mosquitto_pub to publish a message of ON to the mqtt topic of x10/motion/sensor.
Instantly the motion sensor you setup in HA shows motion.