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

homematicip-cloud-client-ts

v0.2.1

Published

Unofficial TypeScript and JavaScript client for the Homematic IP Cloud REST and WebSocket APIs

Readme

homematicip-cloud-client-ts

npm npm GitHub last commit GitHub build

Unofficial TypeScript and JavaScript client for the Homematic IP Cloud REST and WebSocket APIs used by the Homematic IP Access Point and Home Control Unit.

This project is not affiliated with or endorsed by eQ-3 AG. The cloud API is unofficial and may change without notice.

Installation

pnpm add homematicip-cloud-client-ts

Usage

import {HmIPClient} from 'homematicip-cloud-client-ts';

const client = new HmIPClient(console, {
  accessPoint: process.env.HMIP_ACCESS_POINT ?? '',
  authToken: process.env.HMIP_AUTH_TOKEN,
  applicationIdentifier: 'my-homematicip-integration',
  applicationVersion: '1.0.0',
});

if (await client.init()) {
  const state = await client.getCurrentState();
  if (state) {
    console.log(Object.values(state.devices));
  }

  client.connect(change => {
    console.log(change.events);
  });
}

process.once('SIGTERM', () => client.shutdown());

The package includes strict TypeScript definitions and runtime validation for complete home-state responses and WebSocket change events.

Validation diagnostics

Invalid home-state and WebSocket payloads are logged with the failing field and a diagnostic snapshot of only the rejected object. Diagnostics are limited to 4,000 characters and redact credentials, PINs, controller and device identifiers, serialized trade numbers, groups, and user-defined labels. Review diagnostic output before sharing it in a public issue because the unofficial API may add fields that the client does not know are sensitive yet.

Authentication

Pairing is deliberately exposed as individual operations so applications can provide their own UI and cancellation behaviour:

  • authConnectionRequest()
  • authRequestAcknowledged()
  • authRequestToken()
  • authConfirmToken()

The link button on the Homematic IP Access Point must be pressed while pairing. Store the returned authentication token securely.

Home Control Unit (HmIP-HCU1)

The client supports the HmIP-HCU1 through the same cloud API. The HCU requires its Access Point ID on REST and WebSocket connections. This is handled automatically.

HCU devices with the PLUGIN_EXTERNAL archetype are accepted and normalized so an application can either support or deliberately ignore them without rejecting the complete home state.

When pairing an HCU, press the button on top of the unit before calling authConnectionRequest(). The HCU then allows five minutes to complete registration. The remaining pairing operations are the same as for an HmIP-HAP.

License

Apache-2.0