Skip to main content
Version: 1.0

Matter

The Matter component provides Matter standard connectivity for supported Shelly devices.

The Matter component uses Matter as RPC namespace and implements the following methods:

Methods

Matter.SetConfig

Properties:

PropertyTypeDescription

config

object

Configuration that the method takes

Find more about the config properties in config section

Matter.GetConfig

Find the Matter.GetConfig response properties in config section

Matter.GetStatus

Find more about the status response properties in status section

Matter.GetSetupCode

Request

This method takes no parameters.

Response

PropertyTypeDescription

qr_code

string

Textual representation of the QR code that is normally used to join the device.

manual_code

string

Manual pairing code, which can be used in certain situations next to or instead of the QR code.

Notes:

  • These codes can be obtained from the Shelly Cloud Application or the device's web interface. On some devices, there is standard Matter sticker attached with both codes.
  • The QR and the manual pairing codes are both used for commissioning (joining, pairing) the device into a Matter network. Most Matter network controllers allow to scan or enter the code manually.
  • The device can be paired only when the component is enabled and the commissionable property is true. See the the status and config sections for details.

Configuration

The configuration of the Matter component enables or disables the server.

Properties:

PropertyTypeDescription

enable

boolean

Set true to enable.

Status

The status of the Matter component shows its current commissioning state.

PropertyTypeDescription

num_fabrics

number

The number of Matter fabrics that the device has joined.

commissionable

boolean

true if the device can be joined to an existing Matter fabric. false means that the device is either already joined, or the commissioning window is closed due to timeout. In the latter case, the device should be restarted before adding to a fabric.

Matter.SetConfig example

http://192.168.33.1/rpc/Matter.SetConfig?config={"enable":true}

Response

{
"restart_required": false
}

Matter.GetConfig example

http://192.168.33.1/rpc/Matter.GetConfig?

Response

{
"enable": true
}

Matter.GetStatus example

http://192.168.33.1/rpc/Matter.GetStatus?

Response

{
"num_fabrics": 0,
"commissionable": true
}

Matter.GetSetupCode example

http://192.168.33.1/rpc/Matter.GetSetupCode?

Response

{
"qr_code": "MT:00000O-O03.3QG5.000",
"manual_code": "00576700759"
}