This tool allows switching switches on Domoticz with Amazon Dash buttons.
You can buy them here : Amazon Dash Buttons
$ docker run -it --net=host loick111/dash-domoticz npm run scanThe configuration is composed of two files, one for connecting to the Domoticz server and the other for configuring the Amazon Dash Buttons.
# domoticz.yml
default:
host: localhost
port: 8080
protocol: http # http or https
username: domoticz
password: domoticz# button.yml
default:
TVLights:
name: TV Lights
addr: xx:xx:xx:xx:xx:xx # Amazon Dash Button Mac Address
toggle: [1, 2, 3] # array of domoticz idx
BedroomLights:
name: Bedroom Lights
addr: xx:xx:xx:xx:xx:xx # Amazon Dash Button Mac Address
toggle: [4, 5] # array of domoticz idxTo retrieve the identifiers of your switches on Domoticz, make this request on your Domoticz server. http://domoticz/json.htm?type=command¶m=getlightswitches
Also available for Raspberry with tag loick111/dash-domoticz:rpi
version: '2'
services:
app:
image: loick111/dash-domoticz
network_mode: host
# To customize and persist configuration
volumes:
- /path/to/config:/app/config