Using the info from Ted Benson's Medium post I was able to sniff my network packets for the dash button press. Instead of writing to a google spreadsheet my python script will make an API request to turn on or off my light.
There were 2 ways of doing this:
- Have the python script make the call directly to the Hue hub via Hue API
- Have it make a request to a middleman application
I chose option 2 because I was already planning on using openHab to control a few things around the house. Luckily openHab has a REST API built in.
Hardware:
- Amazon Dash button
- Raspberry Pi
- Wireless adapter for the Pi
- Hue lights
- Hue hub
Software:
- raspbian
- python
- scapy
- requests
More to come soon...