Nekmo / amazon-dash

Hack your Amazon Dash to run what you want.
MIT License
828 stars 67 forks source link

Dash Button not discovered / caught #51

Closed ostpol closed 6 years ago

ostpol commented 6 years ago

Description

When I run amazon-dash discovery, several devices (Echo, FireTV...), except the button, are shown. I grabbed the MAC from my routers interface and put it into /etc/amazon-dash.yaml. Sadly the Dash Button still isn't caught when amazon-dash is running, so nothing happens when the button is pressed.

What I Did

settings:
  # On seconds. Minimum time that must pass between pulsations.
  delay: 10
devices:
   ## Example of how to execute a url
 ac:63:be:b5:20:e6:
    name: ShitButton
    url: 'http://192.168.1.50/cm?user=admin&password=pass&cmnd=Power%20Toggle'  # Url to execute
    method: get  # HTTP method. By default GET

Are there new Dash Button models which use other communication methods or something?

Thanks, T

Nekmo commented 6 years ago

There are no known models that are not supported. Paste the model identifier here. The identification number is located behind the button.

ostpol commented 6 years ago

That was quick.

JK29LP

Nekmo commented 6 years ago

This model number is the second generation of Amazon Dash, which is supported. Do you have more than one router or Wi-Fi extenders? To use amazon-dash the server and the button must be in the same network.

ostpol commented 6 years ago

All devices are in the same subnet. Nothing that could break a broadcast domain involved.

Nekmo commented 6 years ago

It is necessary that the device can be detected using the discovery command. It seems a network problem, maybe you should make sure that your Amazon-dash connects to the network.

Amazon-dash detects the event when a device connects to the network. I'm sorry I do not know what it can be.

ostpol commented 6 years ago

So broadcast is monitored? Just need to know where to start capturing.

Edit: Switched from the Pi to a standard Debian station. Discovery works. Now I know where to look for the problem.

Thank you for your help!

Nekmo commented 6 years ago

Yes, that's what Amazon-dash does.