Skip to main content

EnOcean to MQTT bridge

Project description

enocean2mqtt

  • publish EnOcean received packets to MQTT
  • Send commands to EnOcean equipments via MQTT

It is based on Python EnOcean and Eclipse Paho™ MQTT Python Client.

Install

pip install encoean2mqtt --user

For Linux systems pip install lib to ~/.local/lib and executable to ~/.local/bin (check with python -m site).

Configure

Get inspired by enocean2mqtt-sample.yaml and/or read configuration documentation on GitHub

Run manually

# Minimal
~/.local/bin/enocean2mqtt --config /your/path/enocean2mqtt.yaml

# All args
~/.local/bin/enocean2mqtt --config /your/path/enocean2mqtt.yaml --verbose --log-file /your/path/enocean2mqtt.log

Args:

Short Long Required Description
-c --config yes yaml config file
-v --verbose no Set logging level to DEBUG
N/A --log-file no Add daily rotating log file path

Run as a systemd service

Sample made for Raspbian 10 and pi user

  • copy file enocean2mqtt.service to /etc/systemd/system/enocean2mqtt.service
  • customize with your user and configuration file path
  • sudo chown root:root /etc/systemd/system/enocean2mqtt.service
  • sudo chmod 644 /etc/systemd/system/enocean2mqtt.service
  • sudo systemctl daemon-reload
  • sudo systemctl enable enocean2mqtt
  • sudo systemctl start enocean2mqtt

Check status : sudo systemctl status enocean2mqtt
See logs : journalctl -f -u enocean2mqtt

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

enocean2mqtt-0.2.0.tar.gz (7.9 kB view hashes)

Uploaded Source

Built Distribution

enocean2mqtt-0.2.0-py3-none-any.whl (20.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page