Looks like your problem is that you merged the two config.json files (yes I know - its not ideal that theyâre both called the same, but this is due to hass.io and dasher :))
If youâre installing from hassio local addons dir, this should be your config.json that controls the deployment of the dasher addon:
{
"name": "Dasher",
"version": "0.2",
"slug": "dasher",
"description": "Amazon Dash button support",
"startup": "before",
"boot": "auto",
"url": "https://github.com/james-fry/hassio-addons/tree/master/dasher",
"map": ["config:rw", "ssl"],
"host_network": "True",
"options": {},
"schema": {}
}
If you install the addon from my repo then you dont need to put this anywhereâŚ
The dasher addon (whether installed from local addons dir, or from my GH repo) expects to find the dasher button config.json in your HA config dir in a subdir called dasher.
i.e if using samba addon this would be the URN:
\\hassio.local\config\dasher\config.json
You config.json for button config looks like this:
{
ânameâ: âDash 2â,
âaddressâ: âxx:xx:xx:xxâ,
âinterfaceâ: âens33â,
âprotocolâ: âudpâ,
âurlâ: âhttps://URL/api/services/light/toggleâ,
âmethodâ: âPOSTâ,
âheadersâ: {âauthorizationâ: âPASSWORDâ},
âjsonâ: true,
âbodyâ: {âentity_idâ: âlight.hallâ}
}
I notice that the example you posted has ââ that are not standard - you can see above that the json syntax highlighting is not working.
It should be:
{
"name": "Dash 2",
"address": "xx:xx:xx:xx:XX:XX",
"interface": "ens33",
"protocol": "udp",
"url": "https://URL/api/services/light/toggle",
"method": "POST",
"headers": {"authorization": "PASSWORD"},
"json": true,
"body": {"entity_id": "light.hall"}
}