Matter Accessory Event Types
Events that can be emitted by Matter accessories during their lifecycle.
Listen for when a Matter accessory is readyconst accessory: MatterAccessory = { ... };api.matter?.publishExternalAccessories('plugin-name', [accessory]);const internal = accessory as any;internal._eventEmitter?.on(MatterAccessoryEventTypes.READY, (port: number) => { console.log(`Accessory ready on port ${port}`);}); Copy
Listen for when a Matter accessory is readyconst accessory: MatterAccessory = { ... };api.matter?.publishExternalAccessories('plugin-name', [accessory]);const internal = accessory as any;internal._eventEmitter?.on(MatterAccessoryEventTypes.READY, (port: number) => { console.log(`Accessory ready on port ${port}`);});
Emitted when the Matter server is ready and the accessory is available on the network. This is the main event to listen for to know when an external accessory is ready.
HAP Equivalent: AccessoryEventTypes.ADVERTISED
AccessoryEventTypes.ADVERTISED
The port number the Matter server is listening on
Matter Accessory Event Types
Events that can be emitted by Matter accessories during their lifecycle.
Example