Skip to content

This is a python script that subscribes to MQTT and controls a Philipps Hue Bridge depending on what is published

License

Notifications You must be signed in to change notification settings

LudwigKnuepfer/mqtt-hue-controller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mqtt-hue-controller

This is a python script that subscribes to MQTT and controls a Philipps Hue Bridge depending on what is published

Installation

Assuming you're on a raspberry pi running the latest (as of this time) raspbian distribution (Debian 9.4):

sudo mkdir /etc/mqtt_hue_controller
sudo cp config.ini /etc/mqtt_hue_controller/
sudo vim /etc/mqtt_hue_controller/config.ini # adjust to your needs
sudo cp mqtt-hue-controller.py /usr/local/bin/mqtt_hue_controller
sudo cp mqtt-hue-controller.service /lib/systemd/system/
sudo systemctl enable mqtt-hue-controller.service
sudo systemctl start mqtt-hue-controller.service

Installing Prerequisits

sudo pip3 install paho-mqtt
sudo pip3 install phue

Caveats

There is no support for an automatic registration procedure nor bridge discovery at this point. You could use phue to do register and copy out the id from the config file phue creates.

About

This is a python script that subscribes to MQTT and controls a Philipps Hue Bridge depending on what is published

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages