Xiaomi Lumi Gateway MQTT integration
Project description
MQTT agent for Xiaomi Lumi gateway
The service allow controlling gateway LEDs. sound and illuminance sensor over MQTT
Default config should be located in /etc/lumimqtt.json
or
can be overridden with LUMIMQTT_CONFIG
environment variable.
Example run command:
LUMIMQTT_CONFIG=./lumimqtt.json python3 lumimqtt.py
The configuration file is a JSON with the following content:
{
"mqtt_host": "localhost",
"mqtt_port": 1883,
"mqtt_user": "",
"mqtt_password": "",
"topic_root": "lumi/{MAC}",
"sensor_threshold": 50,
"sensor_debounce_period": 60
}
Every line is optional. By default LumiMQTT will use the connection to localhost with the anonymous login.
{MAC}
will be automatically replaced by a hex number representing a MAC address.
sensor_threshold
is a threshold to avoid sending data to MQTT on small
changes
sensor_debounce_period
value in seconds to send data despite of the threshold
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.