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-modern-forms-fans-v2

v1.2.6

Published

Add Modern Forms fans to your Home app using Homebridge.

Readme

Modern Forms Homebridge Plugin

Add support for Modern Forms fans to HomeKit using Homebridge.

This package (homebridge-modern-forms-fans-v2) is a community fork updated for Node.js 18+ with Homebridge 1.x/2.x support. Original plugin: homebridge-modern-forms-fans by davidashman.

Requirements

  • Homebridge 1.0 or later (Homebridge 2.0 supported)
  • Node.js 18.0 or later

Installation

npm install -g homebridge-modern-forms-fans-v2

Or via the Homebridge UI — search for homebridge-modern-forms-fans-v2.

Setup

  1. Add your fans to your home network using the Modern Forms app (iOS / Android) and verify they respond in the app.

  2. Add the platform to your Homebridge config.json:

    {
        "platform": "ModernForms"
    }
  3. Full example config.json:

    {
        "bridge": {
            "name": "Homebridge",
            "username": "XX:XX:XX:XX:XX:XX",
            "port": 51826,
            "pin": "000-00-000"
        },
        "platforms": [
            {
                "platform": "ModernForms"
            }
        ]
    }
  4. Restart Homebridge. Fans on your network are discovered automatically and will appear in the Home app.

Configuration

Auto-discovery (default)

By default the plugin scans your network, pings every IP in your subnet, and filters by the Modern Forms MAC vendor prefix (C8:93:46). No additional configuration required.

Specifying Fan IP Addresses

If a fan is not found automatically, add it explicitly:

{
    "platform": "ModernForms",
    "fans": [
        { "ip": "192.168.1.10" },
        { "ip": "192.168.1.11", "light": false }
    ]
}

| Field | Type | Default | Description | |-------|------|---------|-------------| | ip | string | — | IPv4 address of the fan (required) | | light | boolean | true | Expose the fan's light as a Lightbulb accessory | | switch | string | — | MQTT topic suffix for a Tasmota wall switch |

Disabling Auto-discovery

Useful on large or segmented networks where the subnet scan is slow or unwanted. Requires manual fans entries.

{
    "platform": "ModernForms",
    "autoDiscover": false,
    "fans": [
        { "ip": "192.168.1.10" }
    ]
}

Polling Interval

How often (in seconds) the plugin polls each fan for state updates. Default: 5.

{
    "platform": "ModernForms",
    "pollingInterval": 10
}

MQTT Wall Switch Integration

Pairs a Tasmota-flashed wall switch with a fan so a single-press toggles the fan on/off and syncs the switch LED to fan state.

{
    "platform": "ModernForms",
    "mqttUrl": "mqtt://192.168.1.2",
    "fans": [
        {
            "ip": "192.168.1.10",
            "switch": "tasmota_switch_1"
        }
    ]
}

The plugin subscribes to stat/<switch>/RESULT and publishes to cmnd/<switch>/LedPower.

Migrating from homebridge-modern-forms-fans

If you have the original homebridge-modern-forms-fans installed:

Before uninstalling the old plugin, note down any manual fan IP addresses from its config. Uninstalling a Homebridge plugin removes its config entry — those IPs won't carry over automatically.

  1. Note any IPs listed under fans in the old plugin's config
  2. Install homebridge-modern-forms-fans-v2 via the Homebridge UI
  3. Configure it with the same IPs
  4. Verify fans are discovered and working
  5. Uninstall homebridge-modern-forms-fans

Homebridge will automatically migrate cached accessories to the new plugin name on first start.

Changelog

1.1.5

  • Fix crash after accessory registration: revert tsconfig target to ES2020 — ES2022 native class field semantics run field initializers before constructor parameter properties are assigned, breaking accessories that reference this.accessory in field initializers

1.1.4

  • Fix crash on network scan: filter ping to alive hosts only, add catchError on ARP lookups, add error handlers on subscriptions (rxjs 7 unhandled errors crash the process)

1.1.2

  • Loosened peerDependencies to accept Homebridge 1.x and 2.x

1.1.1

  • Upgraded @typescript-eslint to v8 for full TypeScript 5.x compatibility

1.1.0

  • Homebridge 2.0 support (peerDependencies updated)
  • Node.js minimum raised to 18.0
  • axios updated 0.x → 1.x
  • rxjs updated 6.x → 7.x
  • TypeScript updated 4.x → 5.x; build target ES2022
  • ESLint updated 7 → 8, @typescript-eslint 3 → 8
  • CI matrix updated to Node 18 / 20 / 22 / 24

License

Apache-2.0