This is the third iteration of my Hue lights integration. An increase in technical knowledge and the fact that I am now living alone means that I could really go all out with this.

Hue lights are an RGB lightbulb that can change colors from various triggers. This project was designed to setup some unique or custom triggers.

Part I: Dash Buttons

These are small, wireless buttons that Amazon makes to make it easy for you to buy things. However I redirect these buttons so they turn all the lights on and off.

This uses Scapy to sniff the network and anytime something makes a request with the MAC address of a button I turn the lights on if most are off or vis versa.

Part II: Weather Forecast

Every morning, when my alarm goes off, my lights will turn on and this will look up the weather in my area using WeatherUnderground and set the lights to represent the weather.

It looks up the weather code against this excel spreadsheet that shows what color the lights will be

Part III: Scene Controller

This is a button pad that selects from eight scenes that have been preprogrammed for whatever activity seems “right” — so there is one for movies, yoga, reading, etc. Also its just fun to show off the system

This gets imported as a MIDI device using Pygame and then it polls for button presses. After each button press it looks up the code in the same spreadsheet as the weather codes

Thats it! Thanks for reading. The code can be found here