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

@bldgblocks/node-red-contrib-quietcool

v0.2.0

Published

Node-RED nodes for controlling QuietCool whole house fans over BLE

Downloads

199

Readme

node-red-contrib-quietcool

Node-RED nodes for controlling QuietCool whole house fans over BLE.

Requirements

  • Raspberry Pi (or Linux with BLE)
  • Python 3.9+
  • BlueZ (pre-installed on Raspberry Pi OS)
  • A QuietCool fan with BLE (AFG SMT ES-3.0 or similar)

Installation

cd ~/.node-red
npm install /path/to/quietcool-ble/node-red-contrib-quietcool

The postinstall script automatically creates a Python virtual environment and installs the bleak BLE library.

Restart Node-RED after installation:

node-red-restart

Setup

Quick Setup (recommended)

No phone app or HCI snoop needed — pair directly from Node-RED:

  1. Drag a fan control or fan sensor node onto the canvas
  2. Double-click and create a new fan configuration
  3. Click Scan to find your fan — select it from the dropdown
  4. Click New to generate a Phone ID
  5. On the fan controller, hold the Pair button for ~5 seconds until the LED blinks
  6. Click Pair with Fan in the editor
  7. Save and deploy — you're done!

Alternative: Extract Phone ID from existing app pairing

If you've already paired with the QuietCool mobile app, you can extract the Phone ID:

  1. Enable Bluetooth HCI snoop log in Android Developer Options
  2. Open the QuietCool app and connect to the fan
  3. Pull the log: adb bugreport bugreport.zip
  4. Extract and parse btsnoop_hci.log to find the PhoneID in a Login command

Manual fan discovery

If the Scan button doesn't work, find the address manually:

bluetoothctl scan on

Look for a device named ATTICFAN_*. Note the MAC address (e.g., XX:XX:XX:XX:XX:XX).

Nodes

fan control (quietcool-control)

Send commands to the fan. Available actions:

| Action | Description | |--------|-------------| | Turn Off | Sets fan to Idle mode | | Smart Mode (TH) | Temperature/humidity auto mode | | Run High | Continuous run at high speed | | Run Medium | Continuous run at medium speed (3-speed fans) | | Run Low | Continuous run at low speed | | Timer | Run for a set duration | | Apply Preset | Apply a named profile (Summer, Winter, etc.) | | Set Thresholds | Set custom temp/humidity thresholds | | Pair | Pair with fan (must be in pairing mode) | | Raw | Send any raw API command |

Actions can be overridden via msg.payload:

{
  "action": "preset",
  "args": { "name": "Summer" }
}
{
  "action": "timer",
  "args": { "hours": 2, "minutes": 0, "speed": "HIGH" }
}

fan sensor (quietcool-sensor)

Read data from the fan. Available queries:

| Query | Returns | |-------|---------| | State | Mode, speed, temperature (°F), humidity (%) | | Full Status | Complete status with fan info, firmware, presets | | Fan Info | Name, model, serial number | | Firmware | Firmware and hardware version | | Parameters | Current temp/humidity thresholds | | Presets | List of preset profiles | | Timer Remaining | Time left on active timer |

For State and Full Status queries, convenience fields are added:

  • msg.temperature — Temperature in °F
  • msg.humidity — Humidity %
  • msg.mode — Current mode (Idle, Timer, TH)
  • msg.range — Current speed (LOW, HIGH, CLOSE)

Optional polling: set a poll interval (seconds) to auto-query without input triggers.

Architecture

The Node-RED nodes communicate with the fan through a Python bridge process:

Node-RED → stdin JSON → bridge.py → BLE/bleak → QuietCool Fan
Node-RED ← stdout JSON ← bridge.py ← BLE/bleak ← QuietCool Fan

The bridge maintains a persistent BLE connection, avoiding the ~3 second reconnect overhead for each command. It spawns automatically when nodes are deployed and shuts down when they're removed.

Protocol

QuietCool fans use plain JSON over BLE GATT. All communication goes through a single characteristic (0000ff01) on service 000000ff. The protocol requires a Login with a PhoneID before any commands are accepted.

Tested with firmware IT-BLT-ATTICFAN_V2.6.

License

MIT