Skip to main content

mochad_dispatch is a daemon written in Python that translates mochad's tcp-based events into REST or MQTT

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.6.tar.gz (5.3 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for mochad_dispatch-0.1.6.tar.gz
Algorithm Hash digest
SHA256 b3e57fb2daa704eaed846e3a4360cadbec9fcf96c04ec55ea1ee46cd00e96f9f
MD5 d202536818882753118e0fa9b0ce3ef7
BLAKE2b-256 3e745a1c468dae53818cb42e24c075aecdc969bc96c848cd8c4699d01f2c0bde

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