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?

Point it at your MQTT broker

$ mochad_dispatch mqtt://localhost:1833

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

X10/localhost:1883/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/localhost:1883/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/localhost:1883/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.5.tar.gz (5.2 kB view details)

Uploaded Source

File details

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

File metadata

File hashes

Hashes for mochad_dispatch-0.1.5.tar.gz
Algorithm Hash digest
SHA256 8708e1a9c9d8201bed72c72e5dbd6f8e3302ffda8a75e4956dea745ea6f4df62
MD5 ca272654caa2eea4b73bd66d6a886c47
BLAKE2b-256 37611619095ef1cb5255a085565d5eec69e8a08e6c9afc894e083660dc346c5b

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