Consumes messages from an MQTT topic and sends them to Localwood's API. You would use this microservice in conjunction with an MQTT broker such as Flespi to control the lights in your home remotely.
- Python 3
- paho-mqtt
pip3 install -r requirements.txt
You will need multiple environment variables (see code) to configure the connection to an MQTT broker and to authenticate with Localwood.
- Run server with:
python3 adorable_qtpi.py
- Run Localwood on the same host
If you have problems or questions feel free to open an issue. Pull requests always welcome 😸