I would like to use a Merrick X10 controller with Home Assistant. I wrote the driver in C++ and am looking for the easiest way to get it working with HA. (I’m new to home assistant, but can’t dive in until I can get my various X10 devices online).
The merrick controller is unique because it offers very high power output, reaching devices regular X10 controllers can’t reach. So just switching controllers isn’t desirable.
I figured the easiest way to integrated these might be to emulate the HEYU I/O but haven’t found a document explaining the interface. Can someone suggest how best I might integrate my own controller with Home Assistant?
If your driver can be designed to support MQTT (effectively it would be a bi-directional X10/MQTT translator), that would be an easy way to integrate it with Home Assistant because the existing MQTT integration supports lights, switches, binary_sensors, etc.
I built my driver with the Qt library, which also happens to offer a simple MQTT client
Having never used MQTT or Home Assistant before, I assume that Home Assistant expects messages with particular ids/names/states/etc…
Is there a doc that would lay that out in a simple way for me?
Minimally, the device needs a
state_topic (Home Assistant subscribes to this topic to receive payloads from the X10 device) and a
command_topic (Home Assistant publishes payloads to this topic to control the X10 device).
Example configuration for an X10 switch whose address is B8.
# Example of a minimal configuration.yaml entry for an MQTT Switch
- name: Pool Pump
Here’s the documentation for MQTT Switch.
If your driver publishes
x10/b8/state Home Assistant will indicate
If you turn on
switch.pool_pump in Home Assistant, it will publish
x10/b8/set (which would be monitored by your driver and used to turn on the physical switch).
OFF are defaults but can be changed to whatever you prefer using the