dashdown
is a small tool to shutdown multiple things on the press of an amazon-dash-button.
Right now it supports:
- yamaha-avr's
- philips-hue
- HDMI CEC over libcec
1. Clone the Repo
git clone https://github.com/maxjoehnk/dashdown.git
2. Install dependencies
npm i
3. Search for your Dash Button
To do this you can use the findbutton
script provided by node-dash-button
:
sudo npx findbutton
Now press your dash-button and add the listed address to your config file.
4. Configure targets
Add the addresses of the targets you wanna shutdown to the config file.
You don't need to add the username field for the philips-hue, this will be auto populated when you first start dashdown
5. Connect Hue Bridge (optional)
When you wanna connect to a hue bridge press the connect button on your bridge before starting dashdown
. When the message Setup Complete
appears the hue.username field of your config should be populated.
6. Start dashdown
npm start
This may fail with a message like Error: (cannot open BPF device) /dev/bpf0: Permission denied
.
To solve this run dashdown as an administrator
sudo npm start
{
"avr": "<ip address of the avr>",
"dash": "<mac address of the dash button>",
"hue": {
"ip": "<ip address of the hue bridge>",
"username": "<bridge username>"
},
"cec": "<hdmi address of the device to turn off>"
}