generated from homebridge/homebridge-plugin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Section 5 Smart Plugs
Ben edited this page Oct 26, 2025
·
1 revision
Matter Specification § 5 - Devices that control power and fluid flow.
| Property | Value |
|---|---|
| Device Type | api.matter.deviceTypes.OnOffOutlet |
| Description | A plug-in unit (smart plug) capable of being switched on or off. |
| Matter Specification | § 5.1 |
Controls the power state of the outlet.
| Attribute | Type | Range/Values | Description |
|---|---|---|---|
onOff |
boolean |
true, false
|
Power state (true=on, false=off) |
const isOn = accessory.clusters.onOff.onOffHandlers
handlers: {
onOff: {
/**
* Called when user turns outlet ON via Home app
*/
on: async () => {
// Control your physical device
await myOutletAPI.turnOn()
// State automatically updated by Homebridge
},
/**
* Called when user turns outlet OFF via Home app
*/
off: async () => {
// Control your physical device
await myOutletAPI.turnOff()
// State automatically updated by Homebridge
},
},
}