Fun with the A* DASH button

Might be simple but works for me…

Update2: Using LeaseScript

  • Register the DASH-Button at Amazon as described in the instructions but do not select a product. Stop here.
  • On the DHCP server give the Dash a static IP. In my example it is 192.168.1.61
  • Set the lease time for it to 30sec (00:00:30) (maybe tune this later)
  • Set ip/dhcp-server/default/LeaseScript to e.g. myLeaseScript
  • create a new script called myLeaseScript:
#SYSTEM VARS: $leaseActIP $leaseActMAC $leaseBound $leaseServerName

:local dash "192.168.1.61";

:if ( ($leaseActIP=$dash) and ($leaseBound=1)) do= {

   :log info "DASH1 at $leaseActIP bound!";
   
   #do something useful here, e.g. play sound, send http(s)-request, send some email...
  :beep frequency=523 length=200ms; 
  :delay 200ms;
  :beep frequency=659 length=200ms;
  :delay 200ms;
  :beep frequency=783 length=200ms;
   
}
  • I use something like "NAT forward src-address=192.168.1.61 drop " rule to suppress communications to the Amazon server.