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-wattwatchersamber

v0.0.6

Published

Homebridge Plugin that exposes Amber pricing information to HomeKit. This plugin has been developed as a Proof of Concept by Wattwatchers.

Downloads

9

Readme

Amber Homebridge Plugin

This is a plugin for Homebridge. It exposes Amber pricing information to HomeKit.

This plugin has been developed by Wattwatchers as a Proof of Concept.

Plugin installation

  1. In Homebridge, select the Plugins tab.
  2. Search for Amber.
  3. Click 'Install' on the Wattwatchers_Amber plugin card.

Plugin configuration

  1. In Homebridge, select the Plugins tab.
  2. Select Settings on the Homebridge Wattwatchers_Amber plugin.
  3. In the configuration form:
    • Enter your Amber API key
    • Select whether or not you want to expose pricing information as a custom made accessory (see next section for details)

Once configured, the plugin will automatically expose pricing information for both electricity imports and exports to HomeKit.

HomeKit native accessory vs. custom accessory

This plugin can expose pricing information to HomeKit in 2 ways:

  1. Through an accessory natively supported by HomeKit and the Home app for iOS. The Home app only supports and displays a specific set of accessories. None of these support pricing information. When opting to expose pricing information as a native accessory, the pricing information will therefore be mapped to an Air Quality Sensor.
  2. Through a custom accessory. When opting to expose pricing information as a custom accessory, it won't be visible in the Home app, it will hoever be visible and usable in the Eve app.

HomeKit native accessory

The HomeKit native accessory exposes:

  • The price in cents/kWh This is mapped to nitrogen density (negative price values are set to 0)

  • The general pricing level This is mapped to air quality. For imports the mapping is as follows:

Amber price level | Air quality ------------------| ------------------------ Extremely low | Excellent Very low | Good Low | Good Neutral | Fair High | Inferior Spike | Poor

For exports the mapping is as follows:

Amber price level | Air quality ------------------| ------------------------ Extremely low | Poor Very low | Inferior Low | Inferior Neutral | Fair High | Good Spike | Excellent

Custom accessory

The custom accessory exposes:

  • The price in cents/kWh (including negative pricing)
  • The spike status (Yes when prices are currently spiking, No if not)
  • The general pricing level, mapped as follows:

Amber price level | Price level ------------------| ------------------------ Extremely low | 1 Very low | 2 Low | 2 Neutral | 3 High | 4 Spike | 5

Creating automations

The configured switches and sensor will be available within the HomeKit app (when not using a custom accessory) or the Eve app.

Here they can be used to build automations (e.g. turn turn off a device when the cost of imports exceeds a certain level.)

For instructions on how to create automations, visit Apple