#4013·homebridge

Newly registered Matter accessories do not appear in Homebridge UI until restart

Author: justjam2013Created Sep 20, 2026Updated Sep 20, 2026
Labelsbug

Analysis

Newly registered Matter accessories do not appear in Homebridge UI until restart

Description

A Matter accessory dynamically registered by a plugin is successfully created and registered by the Matter server, but it does not appear in the Homebridge UI until Homebridge is restarted.

This can be reproduced using homebridge-dummy.

The Matter logs show that the accessory is successfully:

  • created as an endpoint
  • added to the aggregator
  • configured with its handlers
  • registered by the Matter server
  • saved to the Matter accessory cache

Despite this, the newly registered accessory does not appear in the Homebridge UI during that Homebridge session.

After restarting Homebridge, the accessory is restored from the Matter cache and immediately appears in the UI.

Steps to reproduce

  1. Start Homebridge with Matter enabled and homebridge-dummy installed.
  2. Configure a new Matter dummy switch.
  3. Allow homebridge-dummy to register the accessory.
  4. Observe that the Matter server successfully registers the accessory, but the new switch does not appear in the Homebridge UI.
  5. Restart Homebridge.
  6. Observe that the accessory is restored from the Matter cache and now appears in the Homebridge UI.

Expected behavior

Once registerPlatformAccessories() successfully completes, the newly registered Matter accessory should appear in the Homebridge UI without requiring a Homebridge restart.

Actual behavior

The accessory is successfully registered with the live Matter server but is absent from the Homebridge UI until Homebridge is restarted.

Relevant logs

During initial registration:

[Homebridge Dummy] Adding new Matter accessory: Dummy 1
[Matter/API] homebridge-dummy: Registering 1 Matter accessory for platform 'HomebridgeDummy'
[Matter/Server] [Dummy 1] Has handlers: onOff
[Matter/Server] Will use HomebridgeOnOffServer for Dummy 1
[Matter/Server] Applied 1 custom behavior(s) to device type
[Matter/Server] Added BridgedDeviceBasicInformationServer to Dummy 1
[Matter/Server] Created endpoint for Dummy 1 with initial cluster states
[Matter/Server] Added endpoint for Dummy 1 to aggregator
[Matter/Server] Setting up handlers for accessory f26cc41b-8349-4b43-b113-a089d2597dd8
[Matter/Server]   Processing cluster: onOff
[Matter/Behaviors] Registered handler: f26cc41b-8349-4b43-b113-a089d2597dd8.onOff.on
[Matter/Behaviors] Registered handler: f26cc41b-8349-4b43-b113-a089d2597dd8.onOff.off
[Matter/Server] Registered Matter accessory: Dummy 1 (f26cc41b-8349-4b43-b113-a089d2597dd8)
[Matter/Server] Total registered accessories: 2/1000

The Matter accessory is subsequently saved to the cache.

Before restart, getAllCachedAccessories() does not include the newly registered accessory. For example, with one previously cached accessory plus the newly registered Dummy accessory:

[Matter/Server] getAllCachedAccessories: Returning 1 accessories

Only the previously cached accessory is displayed in the Homebridge UI.

After restarting Homebridge:

[Matter/Server] getAllCachedAccessories: Returning 2 accessories

Both accessories, including Dummy 1, are then displayed in the Homebridge UI.

Additional information

The issue appears to be specifically related to exposing dynamically registered Matter accessories to the Homebridge UI.

The accessory itself has already been successfully added to the Matter aggregator and registered by the Matter server before the UI is queried. Restarting Homebridge causes the same accessory to be restored from the Matter cache, after which it is returned to the UI correctly.

The behavior is reproducible with homebridge-dummy, so no custom Matter accessory implementation is required to reproduce it.

Expected Behavior

N/A

Steps To Reproduce

N/A

Logs

markdown
N/A

Configuration

json
{
    "bridge": {
        "name": "Homebridge D459",
        "username": "0E:E3:8A:15:D4:59",
        "port": 51046,
        "pin": "755-48-265",
        "advertiser": "bonjour-hap",
        "matter": {
            "port": 5530
        }
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "platform": "config",
            "port": 8581,
            "tempUnits": "f",
            "theme": "orange",
            "lightingMode": "auto",
            "menuMode": "freeze",
            "log": {
                "maxSize": 2000000
            },
            "lang": "auto",
            "homebridgeUiUpdatePolicy": "beta",
            "homebridgeUpdatePolicy": "beta"
        },
        {
            "name": "Homebridge Dummy",
            "accessories": [
                {
                    "id": "3c7862f3-58e1-46d8-9f2a-69d963b98791",
                    "name": "Dummy 1",
                    "type": "Switch",
                    "protocol": "Matter",
                    "defaultState": "on",
                    "resetOnRestart": false,
                    "enableWebhook": false,
                    "disableLogging": false
                }
            ],
            "platform": "HomebridgeDummy"
        }
    ],
    "disabledPlugins": []
}

Environment

  • OS: macOS 26.5.1
  • Homebridge: v2.4.1-beta.11
  • Homebridge UI: v5.29.1-beta.1
  • Node: v24.11.0

Process Supervisor

hb-service

Additional Context

No response