Okay, so I’ve got it installed. However I’m a little confused at the amazon-dash.ym config, would you be able to give me an example for turning on a script in hassbian, not hassio please?
# amazon-dash.yml
# ---------------
settings:
# On seconds. Minimum time that must pass between pulsations.
delay: 2
devices:
XX:XX:XX:XX:XX:XX:
name: Repurpose
homeassistant: 127.0.0.1
event: light.turn_on
data: { "entity_id": "light.daddys_office" }
but it does not work at all. Nothing I’ve done has been able to get it to work. The documentation is a bit weird, or else I’m just being dumb. what am I doing wrong here?
check-config says my yaml is fine.
MTA: Running test-device just gives me a 403. Seems I can’t run this locally from the command line because I’m not logged in from the device running HA? Anyway around this?
MAT (again): I’ve managed to get this running via URL call. Thanks for the work. Awesome little project. Now I just need to put it to good use.
Thanks for the quick response - here is what I’m using but it doesn’t trigger anything:
FC:A6:67:11:22:33: #MAC ADDRESS OF BUTTON
name: TestDash
url: 'http://192.168.7.14:8123/api/services/switch/turn_off'
method: post
content-type: application/json
body: '{ "entity_id": "switch.etekcity_315_4" }'
It works fine when I set it up on my mobile phone via the ‘HTTP Shortcuts’ app - I baffled and
I can’t see a difference, but I’m also not sure if the event is fully triggered through the amazon-dash app - would you know of a way t check, if it’s even sent to my HAss instance?
Amazon-dash uses events to trigger your Home Assistant Automations. Just use an event name in amazon-dash and create an automation in Homeassistant for your event.
Thanks @Nekmo - it seems to be working fine now, great little piece of software btw!
Sometimes, when all the documentation doesn’t help because I don’t understand all the details, I’m best off with a real-life example that I can modify according to what I want to achieve.
Hi @Nekmo! Thanks for the great project. I’m linking up my first dash button but can’t quite seem to get it to work.
I’ve got amazon-dash installed and running. I’m running hassbian for my home assistant install.
I added this to amazon-dash.yml after pulling the MAC address of my dash button and confirming it’s on the network:
devices:
38:F7:3D:74:F2:D3:
name: Patio_lights
homeassistant: hassbian.local:8123 # Address to the hass server
event: patio_lights_switch # Event name to send
I have a wemo plug (switch in HASS) I’m trying to control with the dash button (patio string lights on/off). I set an automation with the custom event name to try and fire from the the button but nothing happens when I press it. Here is my automation code: