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-ping-tv

v1.2.2

Published

Homebridge plugin for IP TV

Readme

Homebridge Ping TV

Overview

Homebridge Ping TV is a plugin for Homebridge that allows you to monitor the status of your IP TV using ping. This plugin adds an accessory to your Homebridge setup, which checks the connectivity of your TV through its IP address.

Homebridge v2.0 Compatibility

This plugin is compatible with both Homebridge v1.6+ and Homebridge v2.0.

As of v1.2.0, the plugin uses the modern onGet async API instead of the deprecated callback-based .on('get', ...) handler. No configuration changes are required — the update is fully backwards compatible.

Required versions:

  • Homebridge: ^1.6.0 || ^2.0.0
  • Node.js: ^18.20.4 || ^20.15.1 || ^22 || ^24

Features

  • Simple Setup: Easily configure the plugin with the IP address of your TV.
  • Real-time Monitoring: Get the real-time status of your TV by pinging its IP address.
  • Homebridge UI Support: Configure all settings directly in the Homebridge UI — no manual JSON editing required.
  • False Alarm Protection: Configurable consecutive failure threshold prevents single dropped packets from triggering offline status.

Installation

1. Install Homebridge

If you haven't installed Homebridge yet, follow the Homebridge installation guide.

2. Install the Plugin

Install the Homebridge Ping TV plugin using npm:

npm install -g homebridge-ping-tv

3. Configure the Plugin

Option A: Homebridge UI (recommended)

Open Homebridge UI, go to Plugins, find Homebridge Ping TV and click Settings. Fill in the form and save.

Option B: Manual config.json

Add the plugin to your Homebridge config.json file:

{
  "accessories": [
    {
      "accessory": "PingTV",
      "name": "Living Room TV",
      "ipAddress": "192.168.1.100",
      "manufacturer": "Philips",
      "model": "55OLED807",
      "serialNumber": "ABC123",
      "pingInterval": 5000,
      "pingTimeout": 1000,
      "consecutiveFailures": 3
    }
  ]
}

Configuration Options

| Field | Required | Default | Description | |---|---|---|---| | accessory | Yes | — | Must be PingTV | | name | Yes | — | Display name of the TV | | ipAddress | Yes | — | IP address of your TV | | pingInterval | No | 5000 | Interval between pings (ms) | | pingTimeout | No | 1000 | Timeout for each ping (ms) | | consecutiveFailures | No | 3 | Number of consecutive failed pings before marking TV as offline | | manufacturer | No | Custom Manufacturer | Manufacturer name shown in Home app | | model | No | Custom Model | Model name shown in Home app | | serialNumber | No | IP address | Serial number shown in Home app |

Multiple TVs Example

{
  "accessories": [
    {
      "accessory": "PingTV",
      "name": "Bedroom TV",
      "ipAddress": "192.168.1.101",
      "pingInterval": 5000
    },
    {
      "accessory": "PingTV",
      "name": "Kitchen TV",
      "ipAddress": "192.168.1.102",
      "pingInterval": 10000,
      "consecutiveFailures": 5
    }
  ]
}

Contributing

Feel free to submit issues or pull requests.

License

This project is licensed under the ISC License.