#4014·homebridge

Matter OnOffSwitch displayed in Homebridge UI does not invoke registered handlers

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

Analysis

Matter OnOffSwitch displayed in Homebridge UI does not invoke registered handlers

Description

A Matter OnOffSwitch registered by a plugin appears correctly in the Homebridge UI after being restored from the Matter accessory cache, but operating the switch from the Homebridge UI does not invoke the registered onOff.on or onOff.off handlers.

This can be reproduced using homebridge-dummy.

Homebridge successfully reports that the Matter endpoint uses HomebridgeOnOffServer and that both command handlers have been registered. However, toggling the switch in the Homebridge UI does not result in either handler being called.

Steps to reproduce

  1. Install/configure homebridge-dummy with a Matter dummy switch.
  2. Allow the accessory to be registered.
  3. Restart Homebridge so that the Matter accessory is restored from cache and appears in the Homebridge UI.
  4. Toggle the Matter dummy switch from the Homebridge UI.
  5. Observe that the registered onOff.on / onOff.off handler is not invoked.

Expected behavior

Operating the Matter OnOffSwitch from the Homebridge UI should execute the corresponding registered Matter handler:

onOff.on

or:

onOff.off

and the switch state should change accordingly.

Actual behavior

The switch is displayed in the Homebridge UI, but operating it does not invoke the registered handler and the switch does not operate.

Relevant logs

During registration, Homebridge recognizes the onOff handlers and selects HomebridgeOnOffServer:

[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

The endpoint is successfully created and added to the aggregator:

[Matter/Endpoint] ... ready endpoint#: 10 type: OnOffLightSwitch (0x0103, rev 3) behaviors: ✓identify ✓onOff ✓bridgedDeviceBasicInformation ✓descriptor
[Matter/Server] Added endpoint for Dummy 1 to aggregator

Homebridge then explicitly registers both handlers:

[Matter/Server] Setting up handlers for accessory f26cc41b-8349-4b43-b113-a089d2597dd8
[Matter/RegistryManager] Registered registry for endpoint: 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)

After restarting Homebridge, Dummy 1 is restored and displayed in the Homebridge UI.

Toggling the displayed switch does not result in the registered onOff.on or onOff.off handler being invoked.

Additional reproduction

The same behavior occurs with another independently implemented Matter plugin using the documented structure:

typescript
clusters: {
  onOff: {
    onOff: true,
  },
},

handlers: {
  onOff: {
    on: async () => { /* ... */ },
    off: async () => { /* ... */ },
  },
},

Homebridge reports that both handlers are successfully registered, but toggling the accessory from the Homebridge UI does not reach either handler.

This suggests the issue is in the Homebridge UI-to-Matter control path rather than in homebridge-dummy's handler registration.

Notes

This issue is separate from the issue where newly registered Matter accessories do not appear in the Homebridge UI until Homebridge is restarted.

In this case the accessory has already been restored, is visible in the UI, and its Matter command handlers have been registered successfully. The issue is specifically that operating the visible UI control does not result in those handlers being executed.

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