Skip to main content

Ihc Mqtt Gateway

A simple IHC-MQTT Gateway; given connection details to an IHC Controller it downloads the project file and subscribes on events from dataline inputs and outputs. Furthermore it subscribes to topics in MQTT corresponding to each dataline output in the IHC project file.

The gateway can easily be run as a Python module:

python3 -m ihcmqtt.gateway

It accepts the command line parameters:

-h : a short help message

-v : increase verbosity, possible levels are: 1, 2 and 3

-c : specify a configuration file to use

The configuration file may look like this:

controller_url=http://192.168.178.1.10
controller_username=ihcuser
controller_password=ihcpassword
broker_host=localhost
broker_port=1883

These are the required settings. Specifying a mapfile configuration item will make the gateway print out IHC resource identifiers and corresponding MQTT topic names to said file.

By default topic names are derived from name and position tags in the IHC project file and prefixed with "house". The prefix can be changed by specifying topic_prefix in the configuration file.

An example of those extra, non-mandatory, configuration items could be:

mapfile=/var/ihcmqtt/ihcmqtt.map
topic_prefix=cottage

The gateway connects to the MQTT broker with a client name of "ihcmqtt-gateway-PID" - with PID being the process id of the gateway.

When run as a Python module, the gateway will exit cleanly on SIGINT.

Release files for ihcmqtt-gateway 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ihcmqtt-gateway 1.0.1
File Size Uploaded
ihcmqtt-gateway-1.0.1.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ihcmqtt-gateway 1.0.1
File Interpreter ABI Platform
ihcmqtt_gateway-1.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 9.3 kB

Release files / ihcmqtt-gateway-1.0.1.tar.gz

Download URL ihcmqtt-gateway-1.0.1.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
5df6d78eeb2dd47b99580eb0065b952c034de467f5fe282fbac6dfe026eb1111
BLAKE2b-256 checksum
How to use checksums
0d59320cbadf3effd19e5debc9793383ab5a0d3fc353a377ffd3950646a9a030
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3

Release files / ihcmqtt_gateway-1.0.1-py3-none-any.whl

Download URL ihcmqtt_gateway-1.0.1-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
64fb2c178cf774d4facc1589900b0df83d8fadfbfca61bca8c70863a5abaa5b9
BLAKE2b-256 checksum
How to use checksums
d68bb9d781db4b7786e3c6c793c6cabedb49e85e325ca237b13e62d7560a3436
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.8.1 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.3

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page