npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

homebridge-teslemetry

v1.0.1

Published

Teslemetry integration for Homebridge with real-time streaming support

Readme

homebridge-teslemetry

npm version verified-by-homebridge

Teslemetry platform plugin for Homebridge with real-time streaming for Tesla vehicles and energy site monitoring.

Features

🚗 Tesla Vehicle Control

  • Real-time status updates via Server-Sent Events (SSE)
  • Lock/unlock doors, charge port lock
  • Climate control (heat/cool)
  • Charge start/stop, charge limit, charge port
  • Sentry mode and wake control
  • Defrost, door sensors, battery level

Energy Site Support

  • Powerwall monitoring
  • Backup reserve, operation mode, storm watch, and grid charging control

🔄 Live Updates

  • Vehicles: instant updates via real-time streaming (SSE), no polling
  • Energy sites: periodic polling for status and power flow
  • Built on Teslemetry's Fleet Telemetry API

Requirements

  • Active Teslemetry Subscription: Create an account and get an access token at teslemetry.com
  • Node.js: Version 18 or higher
  • Homebridge: Version 1.8.0 or higher
  • Fleet Telemetry Support: Your vehicle must support Fleet Telemetry (most recent Tesla vehicles)

Installation

Via Homebridge Config UI X (Recommended)

  1. Search for "Teslemetry" in the Homebridge Config UI X plugin search
  2. Click Install
  3. Configure the plugin with your Teslemetry access token

Via Command Line

npm install -g homebridge-teslemetry

Or if using pnpm:

pnpm add -g homebridge-teslemetry

Configuration

Via Homebridge Config UI X

The easiest way to configure this plugin is through the Homebridge Config UI X interface. All options are available through the visual interface.

Manual Configuration

Add the following to your Homebridge config.json:

{
  "platforms": [
    {
      "platform": "Teslemetry",
      "name": "Teslemetry",
      "accessToken": "your_teslemetry_access_token_here",
      "prefixName": true,
      "ignoreVehicles": [],
      "ignoreEnergySites": []
    }
  ]
}

Configuration Options

| Option | Type | Required | Default | Description | |--------|------|----------|---------|-------------| | platform | string | Yes | - | Must be "Teslemetry" | | accessToken | string | Yes | - | Your Teslemetry API access token from teslemetry.com | | name | string | No | "Teslemetry" | Display name for the platform | | prefixName | boolean | No | true | Whether to prefix accessory names with the vehicle name | | ignoreVehicles | string[] | No | [] | Array of vehicle VINs to ignore | | ignoreEnergySites | number[] | No | [] | Array of energy site IDs to ignore |

Getting a Teslemetry Access Token

  1. Go to teslemetry.com
  2. Create an account or log in
  3. Navigate to your account settings
  4. Generate a new API access token
  5. Copy the token and paste it into your Homebridge configuration

Supported Vehicles

This plugin supports all Tesla vehicles that have Fleet Telemetry capability:

  • Model 3 (2017+)
  • Model Y (2020+)
  • Model S (2021+ refresh)
  • Model X (2021+ refresh)
  • Cybertruck (2023+)

Older Model S and Model X vehicles may have limited support.

HomeKit Accessories

Each Tesla vehicle appears as multiple accessories in HomeKit, backed by real-time streaming:

  • Battery - Battery level and charging status
  • Lock - Lock/unlock doors
  • Climate - Temperature control and HVAC
  • Charge Port - Open/close charge port
  • Charge Switch - Start/stop charging
  • Charge Limit - Set charge limit percentage
  • Defrost - Activate max defrost
  • Door Sensors - Individual door status
  • Sentry Mode - Enable/disable sentry mode
  • Wake - Wake the vehicle on demand

Each energy site appears as its own set of accessories:

  • Battery - Charge level
  • Operation Mode - Switch between self-consumption, backup, autonomous, and time-based control
  • Backup Reserve - Set the backup reserve percentage
  • Storm Watch - Enable/disable storm watch
  • Grid Charging - Enable/disable charging from the grid

Troubleshooting

Plugin Not Discovering Vehicles

  1. Verify your access token is correct
  2. Check that you have an active Teslemetry subscription
  3. Ensure your vehicle supports Fleet Telemetry
  4. Check Homebridge logs for error messages

Streaming Connection Issues

  1. Verify network connectivity
  2. Check that Teslemetry streaming is enabled for your account
  3. Restart Homebridge
  4. Check firewall settings (SSE requires persistent connections)

Accessories Not Responding

  1. Check if vehicle is asleep (may take a moment to wake)
  2. Verify streaming connection status in logs
  3. Try restarting the Homebridge service

Development

This package is part of the Teslemetry TypeScript monorepo.

Local Development

# Clone the repository
git clone https://github.com/Teslemetry/typescript-teslemetry.git
cd typescript-teslemetry

# Install dependencies
pnpm install

# Build the package
pnpm --filter homebridge-teslemetry build

# Watch mode for development
pnpm --filter homebridge-teslemetry watch

Testing Locally

# Link globally for testing
cd packages/homebridge-teslemetry
pnpm link --global

# In your Homebridge directory
cd ~/.homebridge
pnpm link --global homebridge-teslemetry

# Run Homebridge in debug mode
homebridge -D

Contributing

Contributions are welcome! Please open an issue or pull request on GitHub.

Support

License

Apache-2.0 - see LICENSE for details.

Credits

Related Projects

Changelog

See CHANGELOG.md for release history.