Skip to main content

mochad_dispatch is a daemon written in Python that translates mochad's tcp-based events to MQTT messages

Project description

mochad_dispatch allows you to connect your X10 security devices (door/window sensors, motion sensors, remotes) to home automation software like OpenHAB, Home Assistant or Domoticz

What exactly does it do?

mochad_dispatch connects to mochad (which reads messages from a USB receiver like the X10 CM15a) and listens for X10 security messages then publishes those to an MQTT broker.

How do I use it?

Run mochad_dispatch with a mochad hostname and a MQTT URI

$ mochad_dispatch -s hal9000 mqtt://localhost:1833

Then subscribe to the appropriate device topics. The general format is

X10/MOCHAD_HOST/security/ADDRESS

Troubleshooting

Start by making sure your MQTT broker is relaying X10 messages by subscribing to the topic

X10/#

For example, using the mosquitto broker:

$ mosquitto_sub -v -t X10/#
X10/hal9000/security/C8:21:B2 {"dispatch_time": "2016-02-18T18:36:12.147877+00:00", "func": {"event_type": "contact", "event_state": "normal", "device_type": "DS10A", "delay": "min"}}
X10/hal9000/security/33:8C:30 {"dispatch_time": "2016-02-18T18:30:42.763780+00:00", "func": {"event_state": "normal", "device_type": "DS10A", "delay": "min", "event_type": "contact"}}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mochad_dispatch-0.1.8.tar.gz (6.0 kB view details)

Uploaded Source

File details

Details for the file mochad_dispatch-0.1.8.tar.gz.

File metadata

File hashes

Hashes for mochad_dispatch-0.1.8.tar.gz
Algorithm Hash digest
SHA256 a477c69513a1e93f3875e7e24ed7d4c95f83a2fbecbc1d4df0ea8e27b4e7b5b3
MD5 fcc0c1d17ee389027c21e96a6f553b04
BLAKE2b-256 4b160e14fc1ce5ba341464b943e239f80b46df29773543b8e9c39c7b07899779

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page