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-rpi-temperature

v1.0.5

Published

A Homebridge plugin that displays Raspberry Pi CPU temperature in Apple Home.

Readme

Homebridge Rpi Temperature

A Homebridge plugin that displays the Raspberry Pi CPU temperature in Apple Home.

Features

  • Raspberry Pi CPU temperature sensor
  • Automatic thermal zone detection
  • Automatic Raspberry Pi model detection
  • Automatic Raspberry Pi serial number detection
  • Raspberry Pi information shown in Apple Home
  • Plugin version shown as the HomeKit firmware revision
  • Configurable update interval
  • Update interval from 1 to 3600 seconds
  • Default update interval of 10 seconds
  • Celsius and Fahrenheit support
  • Homebridge UI configuration
  • Compatible with Homebridge 2.x

Requirements

  • Raspberry Pi
  • Homebridge 2.x
  • Node.js 22 or newer

Installation

Install the plugin through the Homebridge UI.

  1. Open Homebridge.
  2. Go to Plugins.
  3. Search for homebridge-rpi-temperature.
  4. Install the plugin.
  5. Restart Homebridge.

Configuration

The plugin can be configured through the Homebridge UI.

Name

The name of the temperature sensor.

Default:

Raspberry Pi Temperature

Update Interval

Defines how often the temperature is updated.

The value is specified in seconds.

  • Minimum: 1 second
  • Default: 10 seconds
  • Maximum: 3600 seconds

Temperature Unit

The plugin supports Celsius and Fahrenheit.

The temperature unit can be selected through the Homebridge UI configuration.

When Fahrenheit is selected, the temperature value provided to HomeKit is converted from Celsius to Fahrenheit.

When Celsius is selected, the original Celsius value is provided to HomeKit.

Raspberry Pi Information

The plugin automatically detects information from the Raspberry Pi.

Manufacturer

The manufacturer is shown as:

Raspberry Pi

Model

The Raspberry Pi model is detected automatically.

Example:

Raspberry Pi 5 Model B Rev 1.1

Serial Number

The Raspberry Pi serial number is detected automatically from the system.

Example:

2369f20e32742b77

Firmware Revision

The firmware revision shown in Apple Home corresponds to the installed plugin version.

For version 1.0.1:

1.0.1

When the plugin is updated, the firmware revision automatically changes to the new plugin version.

Temperature Detection

The plugin automatically detects the Raspberry Pi thermal zone.

The temperature is read from the Linux thermal zone available under:

/sys/class/thermal/

The plugin uses the appropriate CPU thermal zone available on the Raspberry Pi.

Logging

During startup, the plugin reports the detected thermal zone.

Example:

[Raspberry Pi Temperature] Initializing RaspberryPiTemperature accessory...
[Raspberry Pi Temperature] Initializing Raspberry Pi Temperature plugin.
[Raspberry Pi Temperature] Using thermal zone: /sys/class/thermal/thermal_zone0
[Raspberry Pi Temperature] Raspberry Pi Temperature plugin initialized.

The plugin does not log every temperature update.

Troubleshooting

Check the thermal zone

Run:

ls -la /sys/class/thermal/

You can also check the current temperature with:

cat /sys/class/thermal/thermal_zone0/temp

A result such as:

45000

means:

45.0 °C

Check the Raspberry Pi model

Run:

grep "^Model" /proc/cpuinfo

Example:

Model           : Raspberry Pi 5 Model B Rev 1.1

Check the Raspberry Pi serial number

Run:

grep "^Serial" /proc/cpuinfo

Example:

Serial          : 2369f20e32742b77

Check the plugin version

Run:

cd /var/lib/homebridge/node_modules/homebridge-rpi-temperature

Then:

grep '"version"' package.json

For version 1.0.1:

"version": "1.0.1"

Check JavaScript syntax

Run:

node --check index.js

No output means the JavaScript syntax is valid.

Development

Project files:

homebridge-rpi-temperature/
├── index.js
├── package.json
├── package-lock.json
├── config.schema.json
├── README.md
├── LICENSE
└── .gitignore

Author

Created and maintained by chris188.

Support

If you find this plugin useful and would like to support its development, you can buy me a coffee. ☕️

Buy me a coffee

Thank you for supporting open-source development!

License

MIT License

Copyright (c) 2026 chris188