Initial commit

parents
config.json
Dash Button Home Assistant Controller
=====================================
A node.js module to control [Home Assistant](https://home-assistant.io/) entities via [Amazon Dash button](https://www.amazon.com/Dash-Buttons/b?ie=UTF8&node=10667898011) buttons.
## Prerequisties
* At least one Dash button (multiple are supported, but see above notes)
* [Home Assistant](https://home-assistant.io/)
## Install
npm install
### Dash Button Preparation
Follow Amazon's instructions to configure your button to send messages when you push them but not actually order anything. When you get a Dash button, Amazon gives you a list of setup instructions to get going. Just follow this list of instructions, but don’t complete the final step of selecting a product to order. **Do not select a product, just exit the app**.
## Configuration
1. Discover the Dash Buttons using `node node_modules/node-dash-button/bin/findbutton`.
1. Rename `config-sample.json` to `config.json`. Update its values to match your configuration, including the buttons discovered in the last step.
3. Start the listener with `npm start`.
\ No newline at end of file
{
"arp_interface": null,
"home_assistant_host": "localhost",
"home_assistant_port": 8123,
"home_assistant_proto": "http",
"home_assistant_pass": null,
"buttons": {
"0": { "mac": "", "label": "", "entity_id": "" }
}
}
{
"name": "dash-button-home-assistant-controller",
"version": "0.1.0",
"description": "Control Home Assistant entities with an Amazon Dash button",
"author": "Erick Hitter <contact@ethitter.com>",
"license": "GPL-2.0+",
"main": "index.js",
"keywords": [
"home assistant",
"dash",
"amazon dash",
"dash button"
],
"scripts": {
"start": "node index.js"
},
"dependencies": {
"node-dash-button": "*",
"request" : "*"
},
"repository": {
"type": "git",
"url": "https://git.ethitter.com/open-source/dash-button-home-assistant-controller.git"
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment