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

@evan-kinney/homebridge-proxmox

v2.1.0

Published

Simple switch for Proxmox QEMU/LXC nodes

Readme

Homebridge Proxmox plugin

npm npm

Proxmox plugin for Homebridge. This plugin adds switches that control status (on/off) of LXC/QEMU machines across multiple Proxmox servers.

Features

  • Multiple Server Support: Connect to multiple Proxmox servers simultaneously
  • LXC Container Control: Start/stop LXC containers from HomeKit
  • QEMU VM Control: Start/stop QEMU virtual machines from HomeKit
  • Real-time Status: Get current VM/container status in HomeKit
  • Auto-discovery: Automatically discovers all VMs and containers from all configured servers

Requirements

Configuration

New Configuration Format (Multiple Servers)

Using Password Authentication

{
  "platform": "HomebridgeProxmox",
  "servers": [
    {
      "name": "Main Proxmox",
      "host": "192.168.1.100",
      "port": 8006,
      "username": "root@pam",
      "password": "your-password",
      "ssl": true
    }
  ],
  "debug": false
}

Using API Token Authentication (Recommended)

{
  "platform": "HomebridgeProxmox",
  "servers": [
    {
      "name": "Proxmox Server",
      "host": "192.168.1.100",
      "port": 8006,
      "username": "homebridge@pve",
      "apiToken": {
        "tokenId": "homebridge@pve!homebridge-token",
        "secret": "your-api-token-secret"
      },
      "ssl": true
    }
  ],
  "debug": false
}

Migration from Single Server

If you're upgrading from a previous version that supported only one server, you'll need to update your configuration. The old format:

{
  "platform": "HomebridgeProxmox",
  "host": "192.168.1.100",
  "username": "root@pam",
  "password": "your-password",
  "ssl": true,
  "debug": false
}

Should be converted to the new format:

{
  "platform": "HomebridgeProxmox",
  "servers": [
    {
      "name": "My Proxmox Server",
      "host": "192.168.1.100",
      "port": 8006,
      "username": "root@pam",
      "password": "your-password",
      "ssl": true
    }
  ],
  "debug": false
}

Configuration Options

Server Configuration

  • name (required): A unique identifier for the Proxmox server
  • host (required): IP address or hostname of the Proxmox server
  • port (optional): Port number for the Proxmox server (default: 8006)
  • username (required): Username for Proxmox authentication (e.g., "root@pam")
  • password (optional): Password for Proxmox authentication
  • apiToken (optional): API token for authentication (alternative to password)
    • tokenId (required): API Token ID (format: user@realm!tokenname)
    • secret (required): API Token Secret
  • ssl (required): Whether to accept self-signed SSL certificates (true/false)

Note: You must provide either password or apiToken for authentication. API tokens are recommended for better security.

Global Options

  • debug (optional): Enable debug logging (true/false, default: false)

Installation

  1. Install the plugin through Homebridge Config UI X or manually:

    npm install -g homebridge-proxmox
  2. Configure the plugin with your Proxmox server details

  3. Restart Homebridge

How it Works

  1. The plugin connects to all configured Proxmox servers on startup
  2. It discovers all VMs and LXC containers across all servers
  3. Each VM/container appears as a switch in HomeKit
  4. Turning the switch on/off starts/stops the corresponding VM/container
  5. The switch status reflects the current state of the VM/container

Troubleshooting

  • Connection Issues: Check that the Proxmox server is accessible and credentials are correct
  • SSL Errors: If using self-signed certificates, ensure ssl: true is set for that server
  • Missing VMs: Verify that the user has sufficient permissions in Proxmox
  • Duplicate Names: Each server should have a unique name to avoid conflicts

Development

Setup Development Environment

  1. Clone the repository:

    git clone https://github.com/evan-kinney/homebridge-proxmox.git
    cd homebridge-proxmox
  2. Run the setup script:

    ./dev-setup.sh
  3. Update .homebridge/config.json with your Proxmox server details

  4. Start development:

    npm run dev

Development Scripts

  • npm run dev - Start development server with auto-reload
  • npm run build - Build the TypeScript code
  • npm run watch - Watch for changes and rebuild
  • npm run homebridge:dev - Run Homebridge with the plugin
  • npm run homebridge:debug - Run Homebridge with full debug output
  • npm run test:config - Test Homebridge configuration without QR code
  • npm run clean - Clean build artifacts and Homebridge cache
  • npm run lint - Run ESLint

VS Code Development

The repository includes VS Code configurations for:

  • Tasks: Build, watch, and run Homebridge
  • Launch Configurations: Debug Homebridge with breakpoints
  • Settings: TypeScript and ESLint integration

Use Ctrl+Shift+P → "Tasks: Run Task" → "Development Server" to start developing.

Project Structure

src/
├── index.ts           # Plugin entry point
├── platform.ts       # Main platform class with multi-server support
├── platformAccessory.ts  # Individual accessory handling
└── settings.ts        # Plugin constants

.homebridge/           # Development Homebridge configuration
├── config.json        # Test configuration (update with real servers)
└── README.md          # Development setup instructions

.vscode/               # VS Code configuration
├── tasks.json         # Build and run tasks
└── launch.json        # Debug configurations

Testing

  1. Update .homebridge/config.json with test server details
  2. Run npm run homebridge:dev to test the plugin
  3. Use iOS Home app or Homebridge UI to verify functionality
  4. Check logs for any errors or warnings

Debugging

  • Set breakpoints in VS Code and use "Debug Homebridge" launch configuration
  • Enable debug logging with "debug": true in configuration
  • Use npm run homebridge:debug for verbose output
  • Check .homebridge/ directory for Homebridge logs and state

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly using the development environment
  5. Submit a pull request

Creating API Tokens in Proxmox

API tokens provide a more secure way to authenticate with Proxmox than using passwords. Here's how to create them:

  1. Log into Proxmox Web Interface as an administrator

  2. Navigate to Datacenter → Permissions → API Tokens

  3. Click "Add" to create a new API token

  4. Configure the token:

    • User: Select or create a user (e.g., homebridge@pve)
    • Token ID: Give it a meaningful name (e.g., homebridge-token)
    • Privilege Separation: Uncheck this if you want the token to have the same permissions as the user
    • Comment: Optional description
  5. Set Permissions: Ensure the user has appropriate permissions:

    • Path: / (or specific paths for VMs/containers)
    • Role: PVEVMAdmin or custom role with necessary permissions
    • Propagate: Check this to apply to child objects
  6. Copy the Token: After creation, copy both the Token ID and Secret immediately (the secret is only shown once)

  7. Use in Configuration: The Token ID format should be user@realm!tokenname (e.g., homebridge@pve!homebridge-token)

Required Permissions

The API token/user needs these minimum permissions:

  • VM.Monitor: To read VM/container status
  • VM.PowerMgmt: To start/stop VMs/containers
  • Sys.Audit: To list nodes and resources