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
File details
Details for the file mochad_dispatch-0.1.7.tar.gz.
File metadata
- Download URL: mochad_dispatch-0.1.7.tar.gz
- Upload date:
- Size: 5.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7697c7bd40f1e85e93726d3d21cbfbe6111f99a96509e50dd81d8dbd8dad3e73
|
|
| MD5 |
59a1bb9b971ed038a1485489bf3ddbad
|
|
| BLAKE2b-256 |
99c5ca8e2425204790c469df262bf18370b8f085445fa0a6e93b7fafcab7d926
|