1.0.129 • Published 10 months ago

homebridge-my-tesla v1.0.129

Weekly downloads
3
License
ISC
Repository
github
Last release
10 months ago

homebridge-my-tesla

Homebridge plugin for Tesla owners. This plugin assumes you are familiar with Homebridge.

Before installing this plugin please concider the plugin https://www.npmjs.com/package/homebridge-tesla which was created by Nick Farina who also created Homebridge. Without his work this plugin would not be possible.

A Swedish screen shot below but may be explanatory.

Installation

First, install Homebridge. See https://www.npmjs.com/package/homebridge for more information.

Then install this plugin.

$ sudo npm install homebridge-my-tesla -g --unsafe-perm

Configuration File

Configure your ~/.homebridge/config.json with the following platform.

{
    "bridge":{
        "name":"Tesla",
        "username":"11:11:11:11:11:21",
        "port":51821,
        "pin":"111-11-120"
    },
    "description":"Sample configuration file",
    "platforms":[
        {
            "platform":"Tesla",
            "name":"Tesla",
            "debug":true,
            "vehicles":[
                {
                    "name":"Model 3",
                    "vin":"your-vin-number",
                    "token":"your-refresh-token",
                    "expose":[
                        "ping",
                        "defrost",
                        "ventilation",
                        "trunk",
                        "hvac",
                        "doors",
                        "insideTemperature",
                        "steeringWheelHeater"
                    ],
                    "accessories":{
                        "ping":{
                            "name":"Ping",
                            "requiredBatteryLevel":50,
                            "timerInterval":0.25
                        },
                        "defrost":{
                            "name":"Avfrostning"
                        },
                        "ventilation":{
                            "name":"Ventilation"
                        },
                        "trunk":{
                            "name":"Bakluckan"
                        },
                        "charging":{
                            "name":"Laddning"
                        },
                        "hvac":{
                            "name":"Fläkten",
                            "requiredBatteryLevel":20
                        },
                        "doors":{
                            "name":"Dörren",
                            "remoteStartDrivePassword":"omit-or-your-tesla-password"
                        },
                        "outsideTemperature":{
                            "name":"Ute"
                        },
                        "insideTemperature":{
                            "name":"Inne"
                        },
                        "thermostat":{
                            "name":"Termostat",
                            "requiredBatteryLevel":40,
                            "timerInterval":2
                        },
                        "steeringWheelHeater":{
                            "name":"Rattvärme"
                        }
                    }
                }
            ]
        }
    ]
}

Of course, you have to supply your own name and VIN number and login credentials.

What This Plugin Does

This plugin adds a number of controls to Apple HomeKit. Currently it only adds controls to open the doors, control the HVAC and to display current temperature.

Added accessories

Ping

When this switch is active your Tesla will never go into deep sleep. Every 5 minutes or so, a request is made to update the state of your car.

"ping": {
    "name": "Ping",
    "requiredBatteryLevel": 40,
    "timerInterval": 5
}
  • name - Localized name, specify the name you want in the Apple Home app.
  • requiredBatteryLevel - Specifes the required battery level to operate. If battery level is below this level, the ping function will stop.
  • timerInterval - Specifies the number of minutes between pings.

Charging

The charging switch reflects the charging state.

"charging": {
    "name": "Charging"
}
  • name - Localized name, specify the name you want in the Apple Home app.

Door

Lock or unlock the doors using this switch. Unlocking the door also also enables keyless start.

"doors": {
    "name": "Door",
    "remoteStartDrivePassword": "tesla-login-password"
}
  • name - Localized name, specify the name you want in the Apple Home app.
  • remoteStartDrivePassword - Your Tesla login password. If specified you will not have to enter your pin code to start driving.

Fan

Turn the HVAC ON or OFF using this switch.

"hvac": {
    "name": "Fläkten",
    "requiredBatteryLevel": 20
}
  • name - Localized name, specify the name you want in the Apple Home app.
  • requiredBatteryLevel - Specifes the required battery level to operate. If battery level is below this level, the fan function will stop.

Inside

Displays the inside temperature.

"insideTemperature": {
    "name": "Inside"
}
  • name - Localized name, specify the name you want in the Apple Home app.

Outside

Displays the outside temperature.

"outsideTemperature": {
    "name": "Outside"
}
  • name - Localized name, specify the name you want in the Apple Home app.

Thermostat

This enables you to control the inside temperature of your Tesla. Set it to 4 - 10 Celsius in the winter time to have a frost free vehicle in the morning. Use automation to turn it on at a specific time.

"thermostat": {
    "name": "Termostat",
    "requiredBatteryLevel": 40,
    "timerInterval": 2
}
  • name - Localized name, specify the name you want in the Apple Home app.
  • requiredBatteryLevel - Specifes the required battery level to operate. If battery level is below this level, the thermostat function will stop.
  • timerInterval - Specifies the number of minutes between checking the temperature.

Siri

If you name things correctly you might get Siri to work by saying "Lock car", "Unlock car", "Turn on fan" or "Turn off fan"...

Usage

As for now, it is a good idea to create a new home in Apple's Home app. Name the new home to the same name of your car. Then add the this accessory to the newly created home.

Updates

  • 2019-11-15 - Accessory information updated properly with serial number (VIN) and firmware version.
  • 2019-11-30 - Updated documentation.
1.0.101

11 months ago

1.0.100

11 months ago

1.0.107

11 months ago

1.0.106

11 months ago

1.0.109

11 months ago

1.0.108

11 months ago

1.0.103

11 months ago

1.0.102

11 months ago

1.0.105

11 months ago

1.0.104

11 months ago

1.0.121

10 months ago

1.0.123

10 months ago

1.0.122

10 months ago

1.0.129

10 months ago

1.0.125

10 months ago

1.0.124

10 months ago

1.0.127

10 months ago

1.0.126

10 months ago

1.0.110

11 months ago

1.0.112

11 months ago

1.0.111

11 months ago

1.0.118

10 months ago

1.0.117

10 months ago

1.0.119

10 months ago

1.0.113

10 months ago

1.0.116

10 months ago

1.0.115

10 months ago

1.0.99

11 months ago

1.0.98

12 months ago

1.0.97

12 months ago

1.0.95

2 years ago

1.0.94

2 years ago

1.0.96

2 years ago

1.0.73

2 years ago

1.0.72

2 years ago

1.0.71

2 years ago

1.0.70

2 years ago

1.0.77

2 years ago

1.0.76

2 years ago

1.0.75

2 years ago

1.0.74

2 years ago

1.0.79

2 years ago

1.0.78

2 years ago

1.0.80

2 years ago

1.0.84

2 years ago

1.0.83

2 years ago

1.0.82

2 years ago

1.0.81

2 years ago

1.0.88

2 years ago

1.0.87

2 years ago

1.0.86

2 years ago

1.0.89

2 years ago

1.0.91

2 years ago

1.0.90

2 years ago

1.0.92

2 years ago

1.0.62

3 years ago

1.0.61

3 years ago

1.0.60

3 years ago

1.0.66

2 years ago

1.0.65

3 years ago

1.0.64

3 years ago

1.0.63

3 years ago

1.0.69

2 years ago

1.0.68

2 years ago

1.0.67

2 years ago

1.0.51

3 years ago

1.0.55

3 years ago

1.0.54

3 years ago

1.0.53

3 years ago

1.0.52

3 years ago

1.0.59

3 years ago

1.0.58

3 years ago

1.0.57

3 years ago

1.0.56

3 years ago

1.0.43

3 years ago

1.0.41

3 years ago

1.0.48

3 years ago

1.0.47

3 years ago

1.0.46

3 years ago

1.0.45

3 years ago

1.0.49

3 years ago

1.0.50

3 years ago

1.0.40

3 years ago

1.0.39

3 years ago

1.0.38

4 years ago

1.0.37

4 years ago

1.0.29

4 years ago

1.0.28

4 years ago

1.0.33

4 years ago

1.0.32

4 years ago

1.0.31

4 years ago

1.0.30

4 years ago

1.0.35

4 years ago

1.0.27

4 years ago

1.0.22

4 years ago

1.0.21

4 years ago

1.0.26

4 years ago

1.0.25

4 years ago

1.0.24

4 years ago

1.0.23

4 years ago

1.0.19

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.11

4 years ago

1.0.9

4 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.0

5 years ago