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:
Matter.GetConfig
to obtain the component's configurationMatter.SetConfig
to update the component's configurationMatter.GetStatus
to obtain the component's statusMatter.GetSetupCode
to obtain the component's setup code
Methods
Matter.SetConfig
Properties:
Property | Type | Description |
---|---|---|
| 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
Property | Type | Description |
---|---|---|
| string | Textual representation of the QR code that is normally used to join the device. |
| 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 istrue
. See the the status and config sections for details.
Configuration
The configuration of the Matter component enables or disables the server.
Properties:
Property | Type | Description |
---|---|---|
| boolean | Set |
Status
The status of the Matter component shows its current commissioning state.
Property | Type | Description |
---|---|---|
| number | The number of Matter fabrics that the device has joined. |
| boolean |
|
Matter.SetConfig example
- Matter.SetConfig HTTP GET Request
- Matter.SetConfig Curl Request
- Matter.SetConfig Mos Request
http://192.168.33.1/rpc/Matter.SetConfig?config={"enable":true}
curl -X POST -d '{"id":1,"method":"Matter.SetConfig","params":{"config":{"enable":true}}}' http://${SHELLY}/rpc
mos --port ${PORT} call Matter.SetConfig '{"config":{"enable":true}}'
Response
- Matter.SetConfig HTTP GET Response
- Matter.SetConfig Curl Response
- Matter.SetConfig Mos Response
{
"restart_required": false
}
{
"id": 1,
"params": {
"restart_required": false
}
}
{
"restart_required": false
}
Matter.GetConfig example
- Matter.GetConfig HTTP GET Request
- Matter.GetConfig Curl Request
- Matter.GetConfig Mos Request
http://192.168.33.1/rpc/Matter.GetConfig?
curl -X POST -d '{"id":1,"method":"Matter.GetConfig","params":{}}' http://${SHELLY}/rpc
mos --port ${PORT} call Matter.GetConfig '{}'
Response
- Matter.GetConfig HTTP GET Response
- Matter.GetConfig Curl Response
- Matter.GetConfig Mos Response
{
"enable": true
}
{
"id": 1,
"params": {
"enable": true
}
}
{
"enable": true
}
Matter.GetStatus example
- Matter.GetStatus HTTP GET Request
- Matter.GetStatus Curl Request
- Matter.GetStatus Mos Request
http://192.168.33.1/rpc/Matter.GetStatus?
curl -X POST -d '{"id":1,"method":"Matter.GetStatus","params":{}}' http://${SHELLY}/rpc
mos --port ${PORT} call Matter.GetStatus '{}'
Response
- Matter.GetStatus HTTP GET Response
- Matter.GetStatus Curl Response
- Matter.GetStatus Mos Response
{
"num_fabrics": 0,
"commissionable": true
}
{
"id": 1,
"params": {
"num_fabrics": 0,
"commissionable": true
}
}
{
"num_fabrics": 0,
"commissionable": true
}
Matter.GetSetupCode example
- Matter.GetSetupCode HTTP GET Request
- Matter.GetSetupCode Curl Request
- Matter.GetSetupCode Mos Request
http://192.168.33.1/rpc/Matter.GetSetupCode?
curl -X POST -d '{"id":1,"method":"Matter.GetSetupCode","params":{}}' http://${SHELLY}/rpc
mos --port ${PORT} call Matter.GetSetupCode '{}'
Response
- Matter.GetSetupCode HTTP GET Response
- Matter.GetSetupCode Curl Response
- Matter.GetSetupCode Mos Response
{
"qr_code": "MT:00000O-O03.3QG5.000",
"manual_code": "00576700759"
}
{
"id": 1,
"params": {
"qr_code": "MT:00000O-O03.3QG5.000",
"manual_code": "00576700759"
}
}
{
"qr_code": "MT:00000O-O03.3QG5.000",
"manual_code": "00576700759"
}