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

Vendor How To: Setup Siri to Control Tesla

Discussion in 'Model S' started by Sam Gabbay, May 6, 2016.

  1. Sam Gabbay

    Sam Gabbay Vendor

    Joined:
    Feb 4, 2016
    Messages:
    56
    Location:
    Brooklyn, NY
    Hey everyone,

    Developer of Energi here..

    I thought it would be cool to control my Tesla with Siri and didn't really find any other tutorial on how to really do it. I found Homebridge + teslms, put them together and made some code that is clean and easy to figure out. Here is a video tutorial on how to set everything up. If you have any questions, please feel free to reply in the comments. Can't wait to hear success stories!

    Code for Tesla + Siri
    GitHub - SamGabbay/tesla-siri-homekit

    Video Tutorial on how to set it up.
     
    • Like x 5
    • Informative x 2
  2. CHG-ON

    CHG-ON Still in love after all these miles

    Joined:
    Jun 24, 2014
    Messages:
    2,744
    Location:
    Santa Cruz Mountains, USA
    Nice work!
     
  3. Xminus6

    Xminus6 Member

    Joined:
    Sep 3, 2015
    Messages:
    238
    Location:
    Bay Area, CA
    That's pretty awesome. Did you say that it can be run an a new Apple TV persistently?
     
  4. byan1232

    byan1232 Member

    Joined:
    Dec 30, 2015
    Messages:
    330
    Location:
    New York, NY
    Just a quick question, I either have to have AppleTV or I need to have my mac on 24/7 for this to work?
     
  5. spottyq

    spottyq Member

    Joined:
    May 7, 2015
    Messages:
    227
    Location:
    Belgium
    You have to have a computer running Homebridge (what is set up in the viedo.) This way you'll be able to control the car from your smartphone as long as it is connected to your home wifi network.

    If you want to be able to control your car from your smartphone outside of your wifi network, you need an Apple TV (if I recall correctly gen 1 and 2 are not compatible with HomeKit, so you need the latest one.)

    Whatever happens, your car does not need to be on your home wifi. (It needs internet connectivity of course; but it can use Tesla's 3G.)

    Funny, I hadn't realised there was no Homebridge plugin for Tesla yet. Thanks for sharing this with us !
     
  6. Model S M.D.

    Model S M.D. Ludicrous Radiologist

    Joined:
    Oct 31, 2015
    Messages:
    724
    Location:
    Houston, TX
    @Sam Gabbay You are awesome! Keep up the great work. Still enjoying your app!
     
  7. cman8

    cman8 Member

    Joined:
    Jan 2, 2016
    Messages:
    286
    Location:
    United States
    Hey great work. Going to try it myself. How do you get it on a rasp Pi?
     
  8. Sam Gabbay

    Sam Gabbay Vendor

    Joined:
    Feb 4, 2016
    Messages:
    56
    Location:
    Brooklyn, NY
    Glad you guys like it! Has anyone had any trouble setting it up? If so, you can direct message me and I'll help you get it up and running. Alternatively, if you want to setup on a Raspberry PI, I can help you as well.

    To get it running persistently, you will need a Raspberry PI and an Apple TV 3rd or 4th Gen.

    Can't wait to hear some success stories!
     
  9. cman8

    cman8 Member

    Joined:
    Jan 2, 2016
    Messages:
    286
    Location:
    United States
    Unable to start a direct conversation with you for some reason.
     
  10. Xminus6

    Xminus6 Member

    Joined:
    Sep 3, 2015
    Messages:
    238
    Location:
    Bay Area, CA
    You need a Rasp Pi AND an Apple TV or either one?
     
  11. Polyport

    Polyport Member

    Joined:
    Oct 11, 2015
    Messages:
    24
    Location:
    SLC, UT
    Both. The AppleTV to handle HomeKit requests coming from your iDevice, and the Raspberry Pi running Sam's code to interface with the Tesla servers and perform your configured actions.
     
  12. Xminus6

    Xminus6 Member

    Joined:
    Sep 3, 2015
    Messages:
    238
    Location:
    Bay Area, CA
    Okay. Cool. I have an older Model S so I'm not sure I'd get as much benefit as a newer car but if I switch out to a Model X I'd do this in a second.
     
  13. rfmurphy81

    rfmurphy81 Member

    Joined:
    Jan 2, 2016
    Messages:
    247
    Location:
    Orange County, CA
    I have a 4th gen Apple TV, but not sure how to work with Raspberry Pi. Is there somewhere you can point folks to so we can attempt setting up that way?
     
  14. Wknapp0924

    Wknapp0924 Member

    Joined:
    Jan 17, 2016
    Messages:
    154
    Location:
    Oceanside, Ca
    So I would love this setup, but I need the Rasberry Pi instructions too. thanks.
     
  15. araxara

    araxara S-P85#3,218 X-90D#3,299

    Joined:
    May 11, 2012
    Messages:
    692
    Location:
    Tucson, AZ
    Nice work Sam. I’ve set this up, but I’m getting the "Error Honking Horn: undefined message. The config.json file has the correct username/password in it. I did restart the homebridge server, but it made no difference. In my case, I have both a Model S and a Model X, so maybe there is an issue with that. Is the config.json file reread on each invocation of the server or is it “compiled” in?

    Also, it would be nice to send commands to one of the specific cars I have.
     
  16. Wknapp0924

    Wknapp0924 Member

    Joined:
    Jan 17, 2016
    Messages:
    154
    Location:
    Oceanside, Ca
    Awesome job with this.

    I can't get summon or homelink to work. Any reason why?
     
  17. SteveW25561

    SteveW25561 Member

    Joined:
    Jun 10, 2013
    Messages:
    563
    Location:
    Vancouver, Canada
    Wow! This is great! Thanks so much for this.

    I installed it on my Mac and it's working great! I have the current gen Apple TV: is there anything special I need to do with it to have it work with this setup?

    Any suggestions as to how to make this run on startup of the Mac, so I don't have to manually execute the debug command to start the Homebridge Tesla app?

    Also, can you post the Rasp pi instructions? I'd love to migrate this to the Pi (and also have it automatically launch on Pi restart).

    Thanks again for your work on this!
     
  18. 2virgule5

    2virgule5 Member

    Joined:
    Dec 6, 2013
    Messages:
    288
    Location:
    Westfield NJ
    Hi, did anyone make a tutorial for the Raspberry Pi + Apple TV ?
     
  19. alexvirital

    alexvirital Member

    Joined:
    Mar 22, 2016
    Messages:
    146
    Location:
    alexandria, va
    This is awesome and fits really nicely with the HomeKit setup I've already got. Have you tried it with the new Home app yet? I'm curious if I can get an at-a-glance status on the Tesla (charge level especially) from there, or if I could route it through one of the existing apps like Hesperus.
     

Share This Page