TMC is an independent, primarily volunteer organization that relies on ad revenue to cover its operating costs. Please consider whitelisting TMC on your ad blocker or making a Paypal contribution here: paypal.me/SupportTMC

Amazon Dash button to control a Tesla

Discussion in 'Model S' started by Chrisizzle, Sep 29, 2015.

  1. Chrisizzle

    Chrisizzle Member

    Joined:
    Nov 25, 2014
    Messages:
    166
    Location:
    Toronto, Ontario, canada
  2. Cyclone

    Cyclone Active Member

    Joined:
    Jan 12, 2015
    Messages:
    4,398
    Location:
    Charlotte, NC
    I may have to consider implementing this. It could come in very handy for different functions. Combine the Phillips Hue bulb and you can even automate a "check" for when the car is charging!
     
  3. AnOutsider

    AnOutsider S532 # XS27

    Joined:
    Apr 3, 2009
    Messages:
    11,923
    I'd rather code mine to unlock and start the car for the times my wife goes out to the garage then yells back into the house for me to unlock the car.
     
  4. Mercury

    Mercury Member

    Joined:
    Dec 28, 2014
    Messages:
    27
    Location:
    Scottsdale, AZ
    That guy is me, by the way. Kinda freaky how much traffic it's getting for just stringing together a couple of interesting tech pieces. If only I could make the button make ludicrous parts appear at my service center...
     
  5. dhanson865

    dhanson865 Active Member

    Joined:
    Feb 16, 2013
    Messages:
    1,499
    Location:
    Knoxville, Tennessee
    My coworker showed this to me. My first response was why bother with a amazon dash button instead of using a phone app?

    It is neat to see and I suppose if there was no cost to anyone on the planet to make or transport those things or if you were harvesting buttons someone else was going to throw in the trash it'd be a win/win.
     
  6. Cyclone

    Cyclone Active Member

    Joined:
    Jan 12, 2015
    Messages:
    4,398
    Location:
    Charlotte, NC
    Hmmm. Now I need to go study up on Amazon Dash (never heard of it before), get me one, and then sign up for a free Amazon virtual machine to run the software like you have (no 24/7 machines in this house)!
     
  7. rsqunit

    rsqunit Member

    Joined:
    Aug 17, 2015
    Messages:
    12
    Location:
    Stevenson Ranch, CA
    @Mercury, can you share all the source code?

    Cool hack!!!
     
  8. Mercury

    Mercury Member

    Joined:
    Dec 28, 2014
    Messages:
    27
    Location:
    Scottsdale, AZ
    It's mostly for the nerd factor of tinkering, but it's also substantially easier. Pulling out the mobile app requires a fair amount more work than just pressing a button and doesn't notify you when the car's ready. And, if you're running the Android version, you typically have to kill and re-start the mobile app because, well, it's not very good software.

    Besides, tinkering with little plastic buttons is just fun. ;)
     
  9. rjt65

    rjt65 Member

    Joined:
    Jun 27, 2015
    Messages:
    20
    Location:
    Staten Island, NY
    haha as a fellow IT guy I salute you!! very Kewl IMO....
     
  10. madhav

    madhav Member

    Joined:
    Apr 28, 2015
    Messages:
    27
    Location:
    United States
    The thought itself to do something like that is amazing. You also implemented it which is pretty cool.
     
  11. mspohr

    mspohr Active Member

    Joined:
    Jul 27, 2014
    Messages:
    1,804
    Location:
    California
    Great hack!
    I'm a little unclear on how you intercept the communication with Amazon to redirect it to your script (so you don't get bins of baby food every time you turn the car on...). It seems that you build on some other hack... any link to that?
     
  12. nib_

    nib_ Member

    Joined:
    Sep 30, 2015
    Messages:
    5
    Location:
    Washington, DC
    From reading another hack, it looks like you don't register the button with a product at Amazon, so it never orders anything. On a local machine, you listen for the button to wake up (ARP request) and take action on that. You aren't really redirecting Amazon, you just listen for the button yourself.

    I don't know if I'll hook it to my car, but I just ordered one because there must be some problem it will solve for me. I'm such a nerd.
     
  13. Andyw2100

    Andyw2100 Well-Known Member

    Joined:
    Oct 22, 2014
    Messages:
    5,397
    Location:
    Ithaca, NY
    That's very cool!

    Would you consider writing some sort of program to allow those of us without any programming skills to make use of those as well? Perhaps something that would integrate with Visible Tesla, or as a stand-alone. I'm sure people would pay/make donations/etc.

    Anyway, just an idea, because I like the concept, but wouldn't think of messing around with the programming.
     
  14. Mercury

    Mercury Member

    Joined:
    Dec 28, 2014
    Messages:
    27
    Location:
    Scottsdale, AZ

    Yeah, I just listen for the ARP and take action on that. I do have a much cleaner way to do it, though, so I'll probably be posting another goofy video shortly. It' just for the buttons, not so much Tesla-related. You could, of course still automate the car, it'll just be easier than having to have a computer listening for ARPs all the time.



    There are actually some decent automation frameworks out there. The space is just kind of starting to mature, with people wanting to stitch together a bunch of different API's without code. Stuff like Octoblu and Zapier might work for you. Since most of the code now is just gluing multiple pieces together, might as well just build all that and let the end user do the gluing.

    I'm sure it won't be long before there's a whole bunch of competitors in that space, integrating with Amazon Echo, Apple and Google's backends, etc.
     
  15. eloder

    eloder Member

    Joined:
    Mar 12, 2015
    Messages:
    971
    Location:
    Ohio, USA
    That's pretty awesome :D

    I really need to learn how to do that. I want to make a Dash button that'll turn off all my Hue lights and set my Nest to Away mode.
     
  16. rsqunit

    rsqunit Member

    Joined:
    Aug 17, 2015
    Messages:
    12
    Location:
    Stevenson Ranch, CA
    Would you mind sharing the code?

    Very cool hack! :)
     
  17. Ingineer

    Ingineer Electrical Engineer

    Joined:
    Aug 8, 2012
    Messages:
    1,401
  18. rog

    rog Member

    Joined:
    May 30, 2015
    Messages:
    285
    Location:
    Connecticut
    I'd be very interested in a simpler method. I am a tinkerer and everything (fully automated home using roughly 60 z-wave devices), but the idea of adding a dedicated Python setup to my system has been holding me back from fiddling with the Dash.
     
  19. zkmusa

    zkmusa Member

    Joined:
    Mar 3, 2013
    Messages:
    19
    Location:
    Dallas, TX
    This is a very interesting implementation. Thanks for sharing!
     

Share This Page