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-hive-thermostat

v1.0.3

Published

Homebridge plugin exposing Hive heating zones and hot water to HomeKit via the Hive cloud API (Cognito SRP auth with SMS 2FA).

Readme

homebridge-hive-thermostat

A Homebridge plugin that exposes Hive heating zones and hot water to Apple HomeKit, talking directly to the Hive cloud API.

It was written as a modern replacement for older Hive plugins that broke when Hive moved to AWS Cognito authentication with mandatory SMS two-factor auth. Authentication, token refresh, and the 2FA handshake are all handled here.

Why this exists

Hive's own HomeKit bridge has long-standing stability problems — accessories can drop to "No Response" after a short period even on a wired, healthy network, because the hub silently stops advertising its HomeKit (HAP/mDNS) service. This plugin sidesteps that entirely by polling the Hive cloud and re-presenting the devices through Homebridge, where you control the HomeKit advertisement.

Note: because it uses the Hive cloud API, this plugin requires an internet connection to function. It does not talk to the Hive hub locally.

HomeKit (HAP) or Matter?

You can use either, or both at once:

  • HomeKit / HAP works on any Homebridge install with no extra setup — your Hive devices appear in the Home app through the Homebridge bridge. This is the default and the right choice for most people.
  • Matter is optional and needs Homebridge v2 with Matter enabled (see Matter support). It additionally publishes the same Hive devices over Matter, which is useful if you want to add them to a Matter/Thread ecosystem or controller. Turn it off with enableMatter: false if you only want HAP.

Both expose the same devices with the same behavior, so pick whichever your setup prefers.

Features

  • Auto-discovers all heating zones and hot water controls on your account
  • Each heating zone exposed as a HomeKit Thermostat (current temp, target temp, off / heat / schedule)
  • Hot water exposed as a Switch with a timed boost (like homebridge-nest): flip it on to run hot water for a configurable number of minutes, flip it off to cancel
  • Optional Homebridge v2 Matter support: heating zones are also exposed as Matter Thermostats and hot water boosts as Matter On/Off Outlets
  • Reports No Response in the Home app when Hive marks a device offline, rather than showing stale data
  • One-time SMS 2FA during setup, then silent token refresh — no repeated SMS prompts
  • Configurable poll interval

Mode mapping

HomeKit

| Hive mode | HomeKit state | |-----------|---------------| | Off | Off | | Manual | Heat | | Schedule | Auto |

Matter

| Hive mode | Matter thermostat system mode | |----------------|--------------------------------| | Off | Off | | Manual / Boost | Heat | | Schedule | Auto |

The Matter thermostat also shows a Cool button. Matter only offers an Auto mode when the Cooling feature is present, so Cooling is advertised to keep Auto (and therefore the Hive schedule) available — but Hive cannot cool, so selecting Cool is rejected and has no effect.

Matter thermostat temperatures are exposed in Celsius. Hot water is exposed as an On/Off Outlet whose on state represents a manual boost, matching the HomeKit switch behavior.

Installation

Install through the Homebridge UI (search for "Hive Thermostat") or:

npm install -g homebridge-hive-thermostat

Configuration

Use the Homebridge UI settings form, or add a platform block to config.json:

{
  "platforms": [
    {
      "platform": "HiveThermostat",
      "name": "Hive Thermostat",
      "username": "[email protected]",
      "password": "your-hive-password",
      "pollInterval": 30,
      "hotWaterDurationMinutes": 30,
      "enableMatter": true
    }
  ]
}

First-time setup with two-factor authentication

  1. Enter your username and password, save, and restart Homebridge.
  2. If your account has SMS 2FA, the log will prompt: "Hive requires SMS two-factor authentication…" and a code will be texted to you.
  3. Put that code in the 2FA Code (smsCode) field, save, and restart again.
  4. Once it logs "2FA accepted", you can clear the 2FA Code field. The refresh token is stored so future restarts don't need it.

If the refresh token is ever rejected (Hive occasionally invalidates them server-side), you'll see a re-authentication message in the log and need to repeat the SMS step once.

Matter support

Matter support requires Homebridge v2 with Matter enabled for the main bridge or the plugin's child bridge. The plugin will continue to expose normal HomeKit accessories, and when both Homebridge Matter and enableMatter are enabled it will additionally register Matter accessories.

To use it:

  1. Run Homebridge v2 on a supported Node.js version.
  2. Enable Matter in the relevant Homebridge bridge settings.
  3. Keep Enable Matter Accessories (enableMatter) turned on in this plugin.
  4. Restart Homebridge so the Matter bridge can register the Hive accessories.

Matter support is intentionally limited to the device types that map cleanly to Hive:

  • Heating zones become Matter Thermostats.
  • Hot water becomes a Matter On/Off Outlet for manual boost control.
  • Hive schedules are not edited through Matter; Schedule maps to Matter Auto.

Credits

The Cognito authentication approach is informed by the excellent pyhiveapi project, which powers the Home Assistant Hive integration.

Disclaimer

This is an unofficial plugin and is not affiliated with or endorsed by Hive or Centrica. Use at your own risk.

License

MIT