Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@homebridge-plugins/homebridge-plugin-update-check

homebridge-plugins1.1kBSD-2-Clause2.3.5TypeScript support: included

A Homebridge plugin for checking for updates to Homebridge and plugins

homebridge-plugin, plugin, update, updates, upgrade, upgrades, version, versions

readme

homebridge-plugin-update-check

npm npm verified-by-homebridge

A Homebridge plugin for checking for updates to Homebridge and plugins.

Installation

  1. Install Homebridge using the official instructions.
  2. Install this plugin using: sudo npm install -g homebridge-plugin-update-check.
  3. Update your configuration file. See sample config.json snippet below.

Configuration

Configuration sample:

"platforms": [
    {
        "name": "PluginUpdate",
        "sensorType": "contact",
        "checkHomebridgeUpdates": false,
        "checkHomebridgeUIUpdates": false,
        "checkPluginUpdates": true,
        "checkDockerUpdates": true,
        "autoUpdateHomebridge": false,
        "autoUpdateHomebridgeUI": false,
        "autoUpdatePlugins": false,
        "allowDirectNpmUpdates": false,
        "autoRestartAfterUpdates": false,
        "failureSensorType": "motion",
        "platform": "PluginUpdate"
    }
]

Fields

  • "platform": Must always be "PluginUpdate" (required)
  • "sensorType": What type of sensor will be exposed to HomeKit. Can be motion, contact, occupancy, humidity, light, air, leak, smoke, dioxide, or monoxide (Default: motion)
  • "checkHomebridgeUpdates": Check if an update is available for the Homebridge server
  • "checkHomebridgeUIUpdates: Check if an update is available for the Homebridge UI
  • "checkPluginUpdates": Check if updates are available for any installed plugins
  • "checkDockerUpdates": If running in Docker, check if newer Docker versions are available. If not running in Docker, does nothing
  • "autoUpdateHomebridge": Automatically install Homebridge updates when available (Default: false)
  • "autoUpdateHomebridgeUI": Automatically install Homebridge Config UI updates when available (Default: false)
  • "autoUpdatePlugins": Automatically install plugin updates when available (Default: false)
  • "allowDirectNpmUpdates": Allow automatic updates using direct npm commands even when homebridge-config-ui-x is not available (Default: false)
  • "autoRestartAfterUpdates": Automatically restart Homebridge after successful automatic updates to apply changes (Default: false)
  • "failureSensorType": What type of sensor will be used for update/restart failure notifications. Can be motion, contact, occupancy, humidity, light, air, leak, smoke, dioxide, or monoxide (Default: motion, only shown when auto-updates are enabled)

Homebridge, Homebridge UI, plugin, and Docker updates can be selected independently. This allows you for example, to ignore available Homebridge, Homebridge UI available updates if you are running Homebridge in a Docker container and wish to only update these components when a new Docker image is available.

Note on Automatic Updates: When automatic updates are enabled, the plugin will:

  1. Automatically create a backup before performing any updates (when homebridge-config-ui-x is available)
  2. Attempt to install updates via npm commands. This requires:
    • homebridge-config-ui-x to be installed and properly configured (unless allowDirectNpmUpdates is enabled)
    • Sufficient privileges to install global npm packages
  3. Automatically restart Homebridge after successful updates (when autoRestartAfterUpdates is enabled)
  4. Monitor for failures and provide notifications via a configurable failure sensor (type set by failureSensorType)

Automatic updates are disabled by default for safety. Enable them only if you trust automatic updates. The plugin will automatically create a backup before any updates are performed when homebridge-config-ui-x is available, eliminating the need for manual backup procedures. However, you should still maintain your own backup procedures as a best practice.

Note on Docker Updates: Docker container updates are intentionally not supported via automatic updates for safety reasons. This is because the process performing the update would be running inside the container itself, which would result in the process killing itself halfway through the update, potentially corrupting the container or leaving it in an unusable state.

When allowDirectNpmUpdates is enabled, automatic updates will work even when homebridge-config-ui-x is not available by using direct npm commands. This provides more flexibility but requires ensuring you have the necessary npm privileges.

changelog

Changelog

All notable changes to this project will be documented in this file. This project uses Semantic Versioning

2.3.4 (2025-09-14)

What's Changed

Full Changelog: https://github.com/homebridge-plugins/homebridge-plugin-update-check/compare/v2.3.3...v2.3.4

2.3.3 (2025-09-14)

What's Changed

Full Changelog: https://github.com/homebridge-plugins/homebridge-plugin-update-check/compare/v2.3.2...v2.3.3

2.3.2 (2025-09-13)

What's Changed

  • Remove double variables for file and directory paths (#115) (4743e21)
  • Remove npm-check-updates (NCU) option as it doesn't add value (#117) (d8f5ee5)
  • Added cached dns lookup and retries (#118) (f375adb)
  • Add NodeJS 24 support by updating engines.node to ^20 || ^22 || ^24 (rebased against beta-2.3.2) (#123) (f64de4d)

Full Changelog: https://github.com/homebridge-plugins/homebridge-plugin-update-check/compare/v2.3.1...v2.3.2

2.3.1 (2025-09-03)

What's Changed

  • Merge branch 'latest' into beta-2.3.1 (f30d910)
  • Fix NCU filter regex construction to detect plugin updates correctly (#92) (32733d8)
  • v2.3.1 (c6b1af1)
  • Fix Homebridge restart failure: use PUT method and implement endpoint fallback (#101) (feb32be)
  • Add name validation to prevent HomeKit pairing issues with child bridges (#91) (4db28af)
  • Patch ncu (#99) (d3b7a3f)
  • Parenthesis & patch ncu (#98) (7796773)
  • resolve __dirname is not defined (#97) (c295a20)
  • Add automatic update functionality with configurable npm support, restart capability, automatic backup creation, and configurable failure notifications for Homebridge, UI, and plugins (#94) (e58b488)
  • Fix npm-check-updates CLI path for v16+ compatibility (#96) (acf607c)
  • Update available update list (#89) (bd84b83)
  • Fix ReferenceError: __dirname is not defined in ESM module (#86) (5668b01)

Full Changelog: https://github.com/homebridge-plugins/homebridge-plugin-update-check/compare/v2.3.0...v2.3.1

2.3.0 (2025-08-18)

What's Changed

  • Display newer updates in logs

Full Changelog: https://github.com/homebridge-plugins/homebridge-plugin-update-check/compare/v2.2.1...v2.3.0

2.2.1 (2025-08-09)

What's Changed

  • Change logging to daily
  • Fix log info output

2.1.0 (2025-08-09)

What's Changed

  • Output available updates to log
  • Fix plugin update check
  • Fixed version checks and added debug output
  • Add docker version check and fixed NCU search
  • Fixed field names
  • Fix default check value
  • Select which components to check for updates
  • Fix Labler
  • Build fixes and improvements

2.0.2 (2025-03-04)

What's Changes

  • Housekeeping and updated dependencies.

Full Changelog: https://github.com/homebridge-plugins/homebridge-plugin-update-check/compare/v2.0.1...v2.0.2

2.0.1 (2025-01-25)

What's Changes

  • Housekeeping and updated dependencies.

Full Changelog: https://github.com/homebridge-plugins/homebridge-plugin-update-check/compare/v2.0.0...v2.0.1

2.0.0 (2025-01-16)

What's Changes

  • This plugins has moved to a scoped plugin under the @homebridge-plugins org.
    • Homebridge UI is designed to transition you to the new scoped plugin.
  • Updated to ES Module

Full Changelog: https://github.com/homebridge-plugins/homebridge-plugin-update-check/compare/v1.0.2...v2.0.0