Skip to content

A small tool to shutdown multiple things on the press of an amazon-dash-button

Notifications You must be signed in to change notification settings

maxjoehnk/dashdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dashdown

Greenkeeper badge Build Status

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

Usage

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

Configuration

{
    "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>"
}

About

A small tool to shutdown multiple things on the press of an amazon-dash-button

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published