No project description provided
Project description
Serial Jobs
A tool for bidirectional communication between serial devices and MQTT brokers.
Configured serial devices are periodically polled for data which are then sent to the configured MQTT brokers.
Subscribtions to the configured MQTT topics are created and the configured handlers are run when an MQTT message is received.
Features
- reading data via Modbus protocol
- possibility to add support for custom protocols
- sending custom initialization messages to MQTT broker
- configuration in YAML or JSON format
Custom initialization MQTT messages can be used to automatically configure the consumers of the MQTT messages with the actual values, like Home Assistant, to handle them appropriately.
Terminology
This section explains the terminology used within the configuration file.
Common
- An mqtt_broker specifies how to communicate with an MQTT broker.
- A device specifies how to communicate with a serial device.
- A data specifies how to map raw bytes from device to a simple data part usable for obtaining a value.
- A value specifies how to map simple data parts provided by device to a value usable in practice.
Reading from devices
- A task specifies how to retrieve a particular value from a particular device and how to send it within an MQTT message.
- A job specifies how often to run particular tasks.
Writing to devices
- A handler specifies how to extract value from the incoming MQTT message and write it to a particular device.
- A service specifies which handlers to run upon receiving messages from a particular mqtt_broker.
Configuration
Configuration files for some real devices and real use cases
are available in the config_stubs
directory.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for serial_jobs-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 500635244d96866e49c31336abcf47449176c260fd70a9395769723db304bc6a |
|
MD5 | dd83812a8024ede4b6e93144bb22e78a |
|
BLAKE2b-256 | 86cd202f81719126eba905f75b628a38d00a60f1eff11e8aa673a8f0e71b41fb |