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-wan-monitor

v1.0.2

Published

Homebridge plugin to monitor WAN failover by detecting ISP changes

Downloads

5

Readme

Homebridge WAN Monitor

A Homebridge plugin that monitors your WAN connection failover by detecting ISP changes. Perfect for dual-WAN setups where you want to be notified when your primary internet connection fails and traffic switches to your backup connection.

Features

  • 🔍 Monitors your current ISP by checking your public IP
  • 📱 Appears as a Contact Sensor in HomeKit
  • 🚨 Sensor opens when secondary WAN is active (primary failed)
  • ✅ Sensor closes when primary WAN is restored
  • ⚙️ Configurable check intervals
  • 🎛️ Easy configuration through Homebridge UI

How It Works

The plugin periodically checks your current public IP address and identifies the ISP. When your ISP changes from your configured primary ISP, it means your router has failed over to the secondary WAN connection.

  • Contact Sensor CLOSED = Primary WAN active (normal)
  • Contact Sensor OPEN = Secondary WAN active (failover occurred)

Installation

Install the plugin via Homebridge UI or npm:

bashnpm install -g homebridge-wan-monitor

Configure the plugin through the Homebridge UI or manually in your config.json

Configuration

Via Homebridge UI (Recommended)

Go to Homebridge UI → Plugins → homebridge-wan-monitor → Settings Fill in the required fields:

  • Accessory Name: Name for your HomeKit accessory
  • Primary ISP Name: Your primary ISP name (must match exactly)
  • Check Interval: How often to check (in minutes)

Manual Configuration

Add this to your Homebridge config.json:

{
  "accessories": [
    {
      "accessory": "WANMonitor",
      "name": "Secondary Internet",
      "primaryISP": "TOT Public Company Limited",
      "checkInterval": 10
    }
  ]
}

Finding Your ISP Name

To find the exact ISP name that the plugin will detect:

  1. Visit ipinfo.io in your browser
  2. Enter your public IP address and look for the "ISP" or "ASN" or "Organization" field
  3. Use that exact name in your configuration

Common ISP names:

  • Comcast Cable Communications, LLC
  • Verizon Fios
  • AT&T Internet Services
  • Charter Communications
  • TOT Public Company Limited

Automation Ideas

Once set up, you can create HomeKit automations:

  • Send notification when sensor opens (secondary WAN active)
  • Turn on indicator light when failover occurs
  • Log events to a smart home hub
  • Trigger backup procedures when primary WAN fails

Troubleshooting

Sensor Not Updating

  • Check Homebridge logs for errors
  • Verify your primary ISP name matches exactly
  • Ensure internet connectivity for IP checking

Rate Limiting

  • Increase check interval if you get rate limited
  • Recommended minimum: 10 minutes between checks

ISP Name Changes

  • Some ISPs may show different names over time
  • Check ipinfo.io periodically to verify the name

Support

License

MIT License - see LICENSE file for details.

Changelog

1.0.0

  • Initial release
  • Basic WAN monitoring functionality
  • HomeKit contact sensor integration
  • Configurable ISP detection