Turn off your Philips Hue lights with an Amazon Dash Button 💡
Gather the following informations:
Search the IP address in the settings of your Philips Hue app of in the iOS Home app.
According to this Reddit post, the easiest way to find the MAC address of your Dash Button if the following:
- Hold the button until the LED blinks blue
- From your iPhone or Android, connect to the "Amazon Configure Me" WiFi network that appears
- Open a web browser to this address: http://192.168.0.1
- You will see the Dash Button informations and its MAC address
According to Amazon instructions:
- Open the Amazon Shopping app on your phone.
- Tap the Menu icon within the Amazon app, and then select Your Account.
- Under Dash Devices, select Set up a new device. If prompted to choose a device type, select Dash Button.
- Read the terms and conditions. If you agree to them, tap Agree & Get Started.
- Follow the prompts to connect the dash button to Wi-Fi.
- DON'T SELECT A PRODUCT AND QUIT THE SETUP.
- Go back to Your Account and under the Dash Devices section, tap Manage devices > Notification Settings.
- Disable all notifications to not be prompted to finish setup at each press of your button.
To let your Dash Button control your lights, you must get a "username" to identify your object. To do so, execute in a shell:
curl http://192.168.1.x/api -X POST -d'{"devicetype":"dash"}'
You will get a response like this:
[
{
"success": {
"username": "ENcrG6he3zC62KqE71FS6E4d4GSY7KPTPvEqb7bt"
}
}
]
Keep the username.
Create a virtualenv with Python 3
virtualenv venv -p python3
Install dependencies
pip3 install -r requirements.txt
Run
python3 listener.py <bridge_ip> <username> <mac_address>
Where:
bridge-pi
: the local IP of your Philips Hue Bridge (192.168.1.xx)username
: the Amazon Dash Button registered username previously savedmac_address
: the Amazon Dash Button's MAC address
This program is meant to be run on a Raspberry Pi on the same network as the lights.
https://www.journaldulapin.com/2016/12/19/amazon-dash-hue/ (French)